fix OpenAPI parameter exposure (#355)

This commit is contained in:
Tom Kralidis
2020-01-31 09:45:20 -05:00
committed by GitHub
parent dd7aa3dd1a
commit 28593bd3fb
+6 -1
View File
@@ -340,7 +340,12 @@ def get_oas_30(cfg):
{'$ref': '{}#/components/parameters/datetime'.format(OPENAPI_YAML['oapif'])}) # noqa
for k2, v2 in p.fields.items():
if p.properties and k2 in p.properties:
add_parameter = True
if p.properties and k2 not in p.properties:
LOGGER.debug('Provider specified not to advertise property')
add_parameter = False
if add_parameter:
path_ = '{}/items'.format(collection_name_path)
if v2['type'] == 'date':