Skip to content

Commit a464698

Browse files
authored
Merge pull request #807 from hubmapconsortium/Derek-Furst/disallow-change-sample-category
Derek furst/disallow change sample category
2 parents afb43aa + 38e28ed commit a464698

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:
@@ -982,6 +983,7 @@ ENTITIES:
982983
organ:
983984
type: string
984985
indexed: true
986+
immutable: true
985987
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)"
986988
organ_other:
987989
type: string

0 commit comments

Comments
 (0)