From e0a114c3a1b5fbb582d6913d8effd2ffea04089f Mon Sep 17 00:00:00 2001 From: jeffdefacto Date: Wed, 6 May 2026 09:50:58 -0700 Subject: [PATCH 1/2] make operating status optional Signed-off-by: jeffdefacto --- schema/places/place.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/schema/places/place.yaml b/schema/places/place.yaml index 3c741aea2..0ae5351c0 100644 --- a/schema/places/place.yaml +++ b/schema/places/place.yaml @@ -137,4 +137,3 @@ properties: This is not an indication of 'opening hours' or that the place is open/closed at the current time-of-day or day-of-week. type: string enum: ["open", "permanently_closed", "temporarily_closed"] - required: [operating_status] From 1065dc33e9e24423a6baefb6111b7a097531cd59 Mon Sep 17 00:00:00 2001 From: jeffdefacto Date: Wed, 6 May 2026 10:00:50 -0700 Subject: [PATCH 2/2] Make operating status optional --- .../src/overture/schema/places/place.py | 8 +++----- .../tests/place_baseline_schema.json | 3 +-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/overture-schema-places-theme/src/overture/schema/places/place.py b/packages/overture-schema-places-theme/src/overture/schema/places/place.py index b7ac4d415..f086933c3 100644 --- a/packages/overture-schema-places-theme/src/overture/schema/places/place.py +++ b/packages/overture-schema-places-theme/src/overture/schema/places/place.py @@ -205,10 +205,10 @@ class Place(OvertureFeature[Literal["places"], Literal["place"]], Named): ), ] - # Required + # Optional operating_status: Annotated[ - OperatingStatus, + OperatingStatus | None, Field( description=textwrap.dedent(""" 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): set to 0. """).strip(), ), - ] - - # Optional + ] = None categories: Categories | None = None basic_category: Annotated[ diff --git a/packages/overture-schema-places-theme/tests/place_baseline_schema.json b/packages/overture-schema-places-theme/tests/place_baseline_schema.json index a9e0c3620..b8752ff24 100644 --- a/packages/overture-schema-places-theme/tests/place_baseline_schema.json +++ b/packages/overture-schema-places-theme/tests/place_baseline_schema.json @@ -530,8 +530,7 @@ "required": [ "theme", "type", - "version", - "operating_status" + "version" ], "type": "object" },