-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent schemas in DRU extension since OpenAPI restructure #319
Comments
When I worked on #306, I updated all of the reference from Processes - Part 1, but not those from Part 2. Note that the top-level metanorma document for Part 2 will have to be moved to the root alongside Part 1 & 3 to avoid errors referencing above it. |
@fmigneault thanks for your patience. The schemas should now be correct in the root openapi location 62f3743. Also, I have modified the ogcapi-processes.yaml to include Part 2, but did not push the generated json bundle yet. |
@gfenoy Would it be possible to include the
|
Thanks @fmigneault for feebcaks on opengeospatial#319
@fmigneault it defenetely makes sense to add these content types, so I added them 24077f6. As @jerstlouis said in this comment implementers can then comment content-types not supported. Note that, on case there is only one content-types remaining, then the |
@fmigneault an updated version is available here: GeoLabs@26e325b. We are now able to have the select list for Deploy and Undeploy from there https://app.swaggerhub.com/apis/ZOO-Project/the-zoo_project_wps_ogc_api_processing_development_server/0.1#/. Still, there is this error when you select it, probably due to the wrong example we inserted to fake an empty object to get to select list... To be continued. |
@gfenoy Otherwise, a minimalistic CWL schema could be defined. Minimally, it has |
@fmigneault it seems you read my mind. Indeed, I am searching for the schema of the application/cwl+json but I am unable to find any official one unfortunately. On the other hand, I have worked on this new version here: https://app.swaggerhub.com/apis/ZOO-Project/the-zoo_project_wps_ogc_api_processing_development_server/Part-2-Deploy-Replace-UndeployProcess This time we don't have any error when loading another content type for the requestBody parameter, we even provide an example for each content types (all using the exact same CWL file). Nevertheless, the minimal schema for CWL would be helpful to have something relevant when there is no example defined within the API. |
I have finally used https://raw.githubusercontent.com/common-workflow-language/cwl-v1.2/1.2.1_proposed/CommonWorkflowLanguage.yml as schema for application/cwl+json there: 16ba65b. I hope it is correct, feedbacks are welcome. |
With b47410e we get back to the trick using the schema object with an example field. You can find here: https://app.swaggerhub.com/apis/ZOO-Project/the-zoo_project_wps_ogc_api_processing_development_server/GIT_2023-oas3#/DRU/replace the latest bundle generated with swagger-cli bundle. |
@gfenoy |
@fmigneault Thanks a ton for the help! The work on providing the schema for CWL you handle should solve this issue, once we will update to make reference to it (cf. #329) I think we should be fine. |
Closed by #327 |
Since #306, both of these files exist at the same time:
Although their names are the same, their contents are entirely different.
Multiple other items under https://github.com/opengeospatial/ogcapi-processes/tree/master/extensions/deploy_replace_undeploy/standard/openapi have not been moved at all.
Having both locations with inconsistent schemas makes it very confusing for referencing this extension.
The text was updated successfully, but these errors were encountered: