diff --git a/hdr_schemata/models/GWDM/1.0/schema.json b/hdr_schemata/models/GWDM/1.0/schema.json index e157e92..814340b 100644 --- a/hdr_schemata/models/GWDM/1.0/schema.json +++ b/hdr_schemata/models/GWDM/1.0/schema.json @@ -1420,13 +1420,20 @@ "title": "Linkage" }, "observations": { + "anyOf": [ + { + "items": { + "$ref": "#/$defs/Observation" + }, + "type": "array" + }, + { + "type": "null" + } + ], "default": null, "description": "Obsservations", - "items": { - "$ref": "#/$defs/Observation" - }, - "title": "Observations", - "type": "array" + "title": "Observations" }, "structuralMetadata": { "anyOf": [ diff --git a/hdr_schemata/models/GWDM/base/__init__.py b/hdr_schemata/models/GWDM/base/__init__.py index 8bdc15b..4275bbb 100644 --- a/hdr_schemata/models/GWDM/base/__init__.py +++ b/hdr_schemata/models/GWDM/base/__init__.py @@ -55,7 +55,7 @@ class Config: title='Linkage', ) - observations: List[Observation] = Field( + observations: Optional[List[Observation]] = Field( None, description='Obsservations', title='Observations',