Skip to content

improve OpenAPI examples for per-content-type process deployment#998

Open
fmigneault wants to merge 1 commit into
masterfrom
oas-examples-media-types
Open

improve OpenAPI examples for per-content-type process deployment#998
fmigneault wants to merge 1 commit into
masterfrom
oas-examples-media-types

Conversation

@fmigneault

Copy link
Copy Markdown
Collaborator

Changes

API rendering used to return the examples in mixed order/combination per request body content-type because they were are combined under one schema.

Now, they properly offer all media-types (some of which were missing), and picking one will offer corresponding OGC/CWL representations.

For now, JSON/YAML are still returned together. Otherwise we would need to create even more schema class combinations to actually represent each one separately. We keep it relatively simple with that simplification.

{AACEE60A-E1FC-4015-B920-AEC0F21842D8} {D373D01D-D4E0-4BA6-B3C8-36A29375D7AD} {4CC53AA4-1057-4F62-B5F7-3B9039279011} {CB9918FD-5941-4868-AA4B-D5F27CE20DAD}

@fmigneault fmigneault self-assigned this Jul 17, 2026
@fmigneault
fmigneault requested a review from Nazim-crim July 17, 2026 23:35
@github-actions github-actions Bot added ci/doc Issue related to documentation of the package process/wps3 Issue related to WPS 3.x (REST-JSON) processes support feature/oas Issues related to OpenAPI specifications. labels Jul 17, 2026
Comment on lines +7595 to +7596
ContentType.APP_YAML,
ContentType.APP_JSON,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldnt this be already covered with

ContentType.APP_CWL_JSON,
ContentType.APP_CWL_YAML,

Why do we need those two

Comment on lines +7647 to +7655
header = DeployHeadersOGC(description="Headers employed for process deployment.")
querystring = FormatQuery()
body = DeployBodyOGC()


class PostProcessesEndpointCWL(PostProcessesEndpoint):
header = DeployHeadersCWL(description="Headers employed for process deployment.")
querystring = FormatQuery()
body = DeployBodyCWL()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description could reflect if its CWL or OGC headers for more context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/doc Issue related to documentation of the package feature/oas Issues related to OpenAPI specifications. process/wps3 Issue related to WPS 3.x (REST-JSON) processes support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants