-
Notifications
You must be signed in to change notification settings - Fork 29
feat(openenum): add is_open boolean slot to enum expressions #261
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -650,6 +650,29 @@ slots: | |
| exact_mappings: | ||
| - cdisc:PermissibleValue | ||
|
|
||
| is_open: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A boolean feels right here. |
||
| domain: enum_expression | ||
|
noelmcloughlin marked this conversation as resolved.
|
||
| range: boolean | ||
| description: >- | ||
| Whether the enumeration is open, meaning that values outside of the set of | ||
| permissible values are allowed. If true, the enumeration is open and data values | ||
| that are not in the set of permissible values are permitted (though they SHOULD be | ||
| drawn from the permissible values if available). If false (runtime default), the | ||
| enumeration is closed and data values MUST be drawn from the set of permissible values. | ||
| ifabsent: false | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drop |
||
| comments: | ||
|
noelmcloughlin marked this conversation as resolved.
|
||
| - An open enumeration is analogous to the `allow-other="yes"` construct in the OSCAL Metamodel. | ||
| - When an enum is open, the permissible values are advisory - they document the recommended | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This contradicts the description above. Open means the value set isn't exhaustive, not that other constraints vanish — a slot |
||
| or expected values but do not constrain the range. In JSON Schema this maps to a plain string. | ||
| see_also: | ||
| - https://pages.nist.gov/metaschema/specification/syntax/constraints/#allow-other | ||
| - https://github.com/linkml/linkml/issues/127 | ||
| - https://github.com/linkml/linkml/pull/3712 | ||
| in_subset: | ||
| - SpecificationSubset | ||
| # BasicSubset | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Drop the commented-out |
||
| status: testing | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth a |
||
|
|
||
| enum_uri: | ||
| aliases: | ||
| - public ID | ||
|
|
@@ -2782,6 +2805,7 @@ classes: | |
| - code_set_version | ||
| - pv_formula | ||
| - permissible_values | ||
| - is_open | ||
| - include | ||
| - minus | ||
| - inherits | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.