-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow narrowing of inherited types #535
Conversation
Codecov Report
@@ Coverage Diff @@
## main #535 +/- ##
==========================================
+ Coverage 81.01% 81.27% +0.26%
==========================================
Files 19 19
Lines 3597 3631 +34
Branches 991 1008 +17
==========================================
+ Hits 2914 2951 +37
+ Misses 451 449 -2
+ Partials 232 231 -1
Continue to review full report at Codecov.
|
If I understand correctly, the goal is to be able to re-specify the type of a record field with a narrower range of allowed types than the the field in record it inherits from. This seems reasonable, since the inherited type will still be a valid shape of the parent type. Implementation comments:
|
I'm also curious, what is the specific motivation is to add this now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comments
It would help with common-workflow-language/cwltool#1665 |
|
Good point, I've added documentation about that. |
564b414
to
206fa70
Compare
No description provided.