We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa79e6c commit 9f9665eCopy full SHA for 9f9665e
pygeoapi/openapi.py
@@ -725,7 +725,7 @@ def get_post_resource(res):
725
newres[newkey] = res[list(res.keys())[0]]
726
727
# remove temporal extent to prevent type conversion issues
728
- if 'temporal' in newres[newkey]['extents'].keys():
+ if 'extents' in newres[newkey].keys() and 'temporal' in newres[newkey]['extents'].keys(): # noqa
729
del newres[newkey]['extents']['temporal']
730
731
return newres
0 commit comments