Skip to content

Commit 5e8ff19

Browse files
authored
Merge pull request #810 from hubmapconsortium/Derek-Furst/disallow-change-sample-category
updated provenance schema to make samples.organ and samples.sample_ca…
2 parents 9b054ed + 38e28ed commit 5e8ff19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/schema/provenance_schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ ENTITIES:
915915
sample_category:
916916
type: string
917917
indexed: true
918+
immutable: true
918919
required_on_create: true # Only require for cerate via POST, not update via PUT
919920
description: "A code representing the type of specimen. Must be an organ, block, section, or suspension"
920921
before_property_create_validators:
@@ -954,6 +955,7 @@ ENTITIES:
954955
organ:
955956
type: string
956957
indexed: true
958+
immutable: true
957959
description: "Organ code specifier, only set if sample_type == organ. Valid values found in: [organ types](https://github.com/hubmapconsortium/search-api/blob/main/src/search-schema/data/definitions/enums/organ_types.yaml)"
958960
organ_other:
959961
type: string

0 commit comments

Comments
 (0)