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.