From b14baafd0c2aba640a3b6a213b11f0d732561a13 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 24 Jun 2024 06:47:32 -0400 Subject: [PATCH] fix OpenAPI --- pygeoapi/api/itemtypes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pygeoapi/api/itemtypes.py b/pygeoapi/api/itemtypes.py index df054c9d0..5101e106a 100644 --- a/pygeoapi/api/itemtypes.py +++ b/pygeoapi/api/itemtypes.py @@ -1481,6 +1481,9 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str, else: schema = type_ + if schema.get('format') is None: + schema.pop('format', None) + path_ = f'{collection_name_path}/items' paths[path_]['get']['parameters'].append({ 'name': field,