diff --git a/hdr_schemata/models/GWDM/2.0/schema.json b/hdr_schemata/models/GWDM/2.0/schema.json index 809db11..c7d624a 100644 --- a/hdr_schemata/models/GWDM/2.0/schema.json +++ b/hdr_schemata/models/GWDM/2.0/schema.json @@ -570,19 +570,6 @@ "title": "DatasetLinkage", "type": "object" }, - "DatasetType": { - "anyOf": [ - { - "maxLength": 100, - "minLength": 2, - "type": "string" - }, - { - "type": "null" - } - ], - "title": "DatasetType" - }, "DeliveryLeadTimeV2": { "enum": [ "Less than 1 week", @@ -1585,7 +1572,7 @@ "datasetType": { "anyOf": [ { - "$ref": "#/$defs/DatasetType" + "$ref": "#/$defs/CommaSeparatedValues" }, { "type": "null" @@ -1640,7 +1627,7 @@ "datasetSubType": { "anyOf": [ { - "$ref": "#/$defs/DatasetType" + "$ref": "#/$defs/CommaSeparatedValues" }, { "type": "null" diff --git a/hdr_schemata/models/GWDM/v2_0/Summary.py b/hdr_schemata/models/GWDM/v2_0/Summary.py index 8d3e880..983e35c 100644 --- a/hdr_schemata/models/GWDM/v2_0/Summary.py +++ b/hdr_schemata/models/GWDM/v2_0/Summary.py @@ -31,7 +31,7 @@ class Summary(BaseModel): contactPoint: Optional[EmailStr] = Field(None, **an.contactPoint.__dict__) - datasetType: Optional[DatasetType] = Field(None, **an.datasetType.__dict__) + datasetType: Optional[CommaSeparatedValues] = Field(None, **an.datasetType.__dict__) description: Optional[LongDescription] = Field(None, **an.description.__dict__) @@ -43,8 +43,8 @@ class Summary(BaseModel): populationSize: Optional[int] = Field(None, **an.populationSize.__dict__) - datasetSubType: Optional[DatasetType] = Field(None, **an.datasetSubType.__dict__) + datasetSubType: Optional[CommaSeparatedValues] = Field( + None, **an.datasetSubType.__dict__ + ) inPipeline: Optional[Pipeline] = Field("Not available", **an.inPipeline.__dict__) - -