From 8dd189aeb67cb156d18299b03d4bac10efbc8ddc Mon Sep 17 00:00:00 2001 From: Calum Macdonald Date: Tue, 3 Oct 2023 10:41:21 +0100 Subject: [PATCH] update some shite --- hdr_schemata/models/GWDM/1.0/schema.json | 11 ++++++----- hdr_schemata/models/GWDM/base/__init__.py | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/hdr_schemata/models/GWDM/1.0/schema.json b/hdr_schemata/models/GWDM/1.0/schema.json index d65fc2b..e157e92 100644 --- a/hdr_schemata/models/GWDM/1.0/schema.json +++ b/hdr_schemata/models/GWDM/1.0/schema.json @@ -1379,6 +1379,7 @@ "type": "null" } ], + "default": null, "description": "Spatial and Temporal coverage", "title": "Coverage" }, @@ -1401,7 +1402,9 @@ "$ref": "#/$defs/Accessibility" } ], - "description": "Accessibility information." + "default": null, + "description": "Accessibility information.", + "title": "Accessibility" }, "linkage": { "anyOf": [ @@ -1417,6 +1420,7 @@ "title": "Linkage" }, "observations": { + "default": null, "description": "Obsservations", "items": { "$ref": "#/$defs/Observation" @@ -1443,10 +1447,7 @@ }, "required": [ "required", - "summary", - "coverage", - "accessibility", - "observations" + "summary" ], "title": "Gwdm10", "type": "object" diff --git a/hdr_schemata/models/GWDM/base/__init__.py b/hdr_schemata/models/GWDM/base/__init__.py index 4b043b7..8bdc15b 100644 --- a/hdr_schemata/models/GWDM/base/__init__.py +++ b/hdr_schemata/models/GWDM/base/__init__.py @@ -32,6 +32,7 @@ class Config: ) coverage: Optional[Coverage] = Field( + None, description='Spatial and Temporal coverage', title='Coverage', ) @@ -43,7 +44,7 @@ class Config: ) accessibility: Accessibility = Field( - ..., + None, description='Accessibility information.', title='Accessibility', ) @@ -55,7 +56,7 @@ class Config: ) observations: List[Observation] = Field( - ..., + None, description='Obsservations', title='Observations', )