Skip to content

Commit

Permalink
Merge pull request #59 from HDRUK/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
calmacx authored Sep 20, 2024
2 parents 30e1d7a + acdc4f0 commit 74505ae
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 74505ae

Please sign in to comment.