Skip to content

Commit

Permalink
#588 Biosample unique keys only
Browse files Browse the repository at this point in the history
see also #589, but that may only have poetry config changes
  • Loading branch information
turbomam committed Jan 27, 2023
1 parent 5384989 commit 2db2eeb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/schema/nmdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ classes:

Biosample:

unique_keys:
samp_name_unique_key:
notes:
- "id is already required to be unique because it is the identifier in Biosample's parent class, NamedThing. Remember, notes like this could be exposed to end users. CJM suggested YAML # comment"
unique_key_slots:
- samp_name

is_a: MaterialEntity
in_subset:
- sample subset
Expand Down

0 comments on commit 2db2eeb

Please sign in to comment.