Skip to content

Commit f62645b

Browse files
authored
Only display configured properties (#2335)
1 parent a4dc75b commit f62645b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pygeoapi/api/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,10 @@ def get_collection_schema(api: API, request: Union[APIRequest, Any],
10761076
}
10771077

10781078
for k, v in p.fields.items():
1079+
if p.properties:
1080+
if k not in p.properties:
1081+
continue
1082+
10791083
schema['properties'][k] = v
10801084
if v['type'] == 'float':
10811085
schema['properties'][k]['type'] = 'number'

0 commit comments

Comments
 (0)