Skip to content

Commit

Permalink
Merge pull request #26 from linkml/linkml-issue-177
Browse files Browse the repository at this point in the history
Adding recommended field
  • Loading branch information
cmungall authored Jun 26, 2021
2 parents 0221b5e + bdea123 commit 419e3f6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions model/schema/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,17 @@ slots:
inherited: true
description: true means that the slot must be present in the loaded definition

recommended:
domain: slot_definition
range: boolean
inherited: true
description: true means that the slot should be present in the loaded definition, but this is not required
comments:
- This is to be used where not all data is expected to conform to having a required field
- If a slot is recommended, and it is not populated, applications must not treat this as an error. Applications may use this to inform the user of missing data
see_also:
- https://github.com/linkml/linkml/issues/177

inlined:
domain: slot_definition
range: boolean
Expand Down Expand Up @@ -1031,6 +1042,7 @@ classes:
- readonly
- ifabsent
- required
- recommended
- inlined
- inlined_as_list
- key
Expand Down

0 comments on commit 419e3f6

Please # to comment.