Sprint Goal #1 Feedback about using the OGC API - Connected Systems Parts 1& 2 YAML files #1
Replies: 3 comments 1 reply
-
|
The redoc examples seem complete and working. However, when I tried to download the openAPI yaml file for code generation I ran into some problems.
Overall, It seems there is some disconnect between github and schemas.opengis. I assume the GitHub version is the most up to date and maybe the files should be consolidated into one place and ideally have bundle provided (much easier for quick viewing and for code generation as you only need to add one file not a whole file structure) |
Beta Was this translation helpful? Give feedback.
-
This is a general issue with the repository structure, there are so many relative imports mixed with absolute ones, mixed with local ones, mixed with ones from "bundler" classes that sometimes get optimized out by tools that it gets really complicated. This causes huge troubles as can be seen here: https://github.com/52North/connected-systems-pygeoapi/blob/3a20a04d932aa3e2b00dfcb8bf09093e5bfc89e8/tools/bundler/bundler.js#L64 |
Beta Was this translation helpful? Give feedback.
-
Follow-up: bundled OpenAPI files now exist, but the developer path to them remains unclearI did some follow-up research after this discussion and found that the repository already contains prior work addressing part of the problem raised here. Two earlier issues requested self-contained OpenAPI bundle files because the modular YAML entry files rely on numerous relative
A later issue established automated bundle generation:
As a result, the published
This means the remaining problem is no longer primarily that the bundle files do not exist. The remaining problem is that developers arriving through the official [OGC API – Connected Systems web page](https://ogcapi.ogc.org/connectedsystems/) are not clearly directed to them. The official web page currently presents one ReDoc link for Part 1 and one for Part 2 under Developer-friendly OpenAPI definitions. Those ReDoc views load the modular OpenAPI entry files rather than the published bundled artifacts:
The modular files are appropriate for specification maintenance and component reuse, but the entry files depend on additional paths, parameters, requests, responses, schemas, and related resources. A developer who downloads only the YAML associated with the current ReDoc view may therefore receive an entry file rather than a complete, readily consumable API definition. This creates an avoidable gap between:
I opened a follow-on issue proposing that the existing two ReDoc views use the corresponding bundled OpenAPI 3.1 files and provide a visible download action for the exact files being displayed:
The intent is not to add more links or complexity to the [OGC API – Connected Systems web page](https://ogcapi.ogc.org/connectedsystems/). The recommendation is to preserve its existing simple Part 1 and Part 2 presentation while making the two ReDoc views the clear developer gateway:
In summary, [#78](opengeospatial/ogcapi-connected-systems#78), [#79](opengeospatial/ogcapi-connected-systems#79), and [#137](opengeospatial/ogcapi-connected-systems#137) successfully addressed bundle creation and automated generation. The new [#186](opengeospatial/ogcapi-connected-systems#186) addresses the remaining bundle discoverability, access, and developer-experience problem. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
CSAPI Sprint Goal #1 for OGC Code Sprint 26:
Confirm that the OpenAPI bundle definition YAML files for OGC CSAPI Parts 1 & 2 work as intended and can be used to autogenerate useful code without issues
Please post here any and all feedback you have relating to the CSAPI parts 1 & 2 yaml files. Opinions, testimonials, experiences, complaints, concerns, issues, challenges, recommendations and ideas of all kinds are welcome.
Beta Was this translation helpful? Give feedback.
All reactions