Skip to content

Commit

Permalink
allow gwdm observations to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
calmacx committed Oct 3, 2023
1 parent 9435db9 commit b0decdf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions hdr_schemata/models/GWDM/1.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion hdr_schemata/models/GWDM/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Config:
title='Linkage',
)

observations: List[Observation] = Field(
observations: Optional[List[Observation]] = Field(
None,
description='Obsservations',
title='Observations',
Expand Down

0 comments on commit b0decdf

Please sign in to comment.