Skip to content

Commit a1f1f34

Browse files
jeffdefactosethfitz
authored andcommitted
Make operating status optional
1 parent f224efd commit a1f1f34

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

packages/overture-schema-places-theme/src/overture/schema/places/place.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ class Place(OvertureFeature[Literal["places"], Literal["place"]], Named):
205205
),
206206
]
207207

208-
# Required
208+
# Optional
209209

210210
operating_status: Annotated[
211-
OperatingStatus,
211+
OperatingStatus | None,
212212
Field(
213213
description=textwrap.dedent("""
214214
An indication of whether a place is: in continued operation, in a temporary
@@ -221,9 +221,7 @@ class Place(OvertureFeature[Literal["places"], Literal["place"]], Named):
221221
set to 0.
222222
""").strip(),
223223
),
224-
]
225-
226-
# Optional
224+
] = None
227225

228226
categories: Categories | None = None
229227
basic_category: Annotated[

packages/overture-schema-places-theme/tests/place_baseline_schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,7 @@
530530
"required": [
531531
"theme",
532532
"type",
533-
"version",
534-
"operating_status"
533+
"version"
535534
],
536535
"type": "object"
537536
},

0 commit comments

Comments
 (0)