Skip to content

Commit

Permalink
Merge pull request #58 from HDRUK/hotfix/datasettype-in-gwdm
Browse files Browse the repository at this point in the history
fix gwmd datasettype
  • Loading branch information
calmacx authored Sep 20, 2024
2 parents fb822b4 + 57b4470 commit acdc4f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
17 changes: 2 additions & 15 deletions hdr_schemata/models/GWDM/2.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1585,7 +1572,7 @@
"datasetType": {
"anyOf": [
{
"$ref": "#/$defs/DatasetType"
"$ref": "#/$defs/CommaSeparatedValues"
},
{
"type": "null"
Expand Down Expand Up @@ -1640,7 +1627,7 @@
"datasetSubType": {
"anyOf": [
{
"$ref": "#/$defs/DatasetType"
"$ref": "#/$defs/CommaSeparatedValues"
},
{
"type": "null"
Expand Down
8 changes: 4 additions & 4 deletions hdr_schemata/models/GWDM/v2_0/Summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand All @@ -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__)


0 comments on commit acdc4f0

Please sign in to comment.