geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
474 stars 255 forks source link

Openapi rendering: several errors #156

Closed justb4 closed 5 years ago

justb4 commented 5 years ago

Error as below:

image

Also when pasting the generated openapi.yml doc into the Swagger editor at https://editor.swagger.io/ several semantic errors are shown (and also the above bbox error).

Some fiddling revealed that there are two main issues in openapi doc generation, openapi.py:

With these two changes also the bbox error disappeared. It was probably not bbox-related....Also it would be good to pin versions of swagger-ui in the html template: now 3.2.2 released May 21, 2019.

justb4 commented 5 years ago

Should thus also fix this error, some may have seen:

image

justb4 commented 5 years ago

All rendering and semantic validation on https://editor.swagger.io/ now ok! Closing.