From dc8a9244762fe3a99074aec3ef24dc3874668523 Mon Sep 17 00:00:00 2001 From: DerekFurstPitt Date: Thu, 12 Dec 2024 15:27:48 -0500 Subject: [PATCH] updated ingest_dataset_type and ingest_organ provenance to make required on create. Also added entries for entity-api-schema.yaml for these values --- entity-api-spec.yaml | 6 ++++++ src/schema/provenance_schema.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/entity-api-spec.yaml b/entity-api-spec.yaml index e51684c7..878910d7 100644 --- a/entity-api-spec.yaml +++ b/entity-api-spec.yaml @@ -764,6 +764,12 @@ components: creation_action: type: string description: 'The associated action that represents the creation of that dataset' + intended_dataset_type: + type: string + description: 'The dataset type of the intended datasets that will be uploaded as part of the Upload.' + intended_organ: + type: string + description: 'The organ code representing the organ type that the data contained in the upload will be registered/associated with.' Upload: type: object properties: diff --git a/src/schema/provenance_schema.yaml b/src/schema/provenance_schema.yaml index f87ab52f..9c3d5836 100644 --- a/src/schema/provenance_schema.yaml +++ b/src/schema/provenance_schema.yaml @@ -1193,6 +1193,7 @@ ENTITIES: - validate_in_admin_group intended_dataset_type: type: string + required_on_create: true indexed: true description: The dataset type of the intended datasets that will be uploaded as part of the Upload. before_property_create_validators: @@ -1200,6 +1201,7 @@ ENTITIES: before_property_update_validators: - validate_intended_dataset_type intended_organ: + required_on_create: true type: string indexed: true description: The organ code representing the organ type that the data contained in the upload will be registered/associated with.