From 4f5ae70a07b65a3a7f4fde047fc33ad3c5f2f8db Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sun, 21 Feb 2021 19:45:41 -0500 Subject: [PATCH] skip q parameter declaration if records --- pygeoapi/openapi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pygeoapi/openapi.py b/pygeoapi/openapi.py index c8b49b8..578a627 100644 --- a/pygeoapi/openapi.py +++ b/pygeoapi/openapi.py @@ -485,6 +485,10 @@ def get_oas_30(cfg): LOGGER.debug('Provider specified not to advertise property') # noqa continue + if field == 'q' and ptype == 'record': + LOGGER.debug('q parameter already declared, skipping') + continue + if type == 'date': schema = { 'type': 'string',