Skip to content
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

Limit input representation as per process description #725

Open
fmigneault opened this issue Oct 3, 2024 · 0 comments
Open

Limit input representation as per process description #725

fmigneault opened this issue Oct 3, 2024 · 0 comments
Assignees
Labels
process/OAP-Part1: Core OGC API - Processes - Part 1: Core triage/conformance Issue related to fixing/ensuring compliance to specifications. triage/feature New requested feature.

Comments

@fmigneault
Copy link
Collaborator

Description

OGC API - Processes v2.0 introduced a concept of valuePassing.

inputs:
  input:
    schema: {}
    valuePassing: ["byValue", "byReference"]

This can be used to limit which input structures can be submitted (i.e.: {"value": "..."} or {"href": "..."}.
A process that desires to handle only one representation could be deployed with a valuePassing override.
When executing the process, the submitted value would have to align with the allowed valuePassing (default all).

Since Weaver does a lot of automatic handling to map CWL inputs from submitted execution inputs, this would be implemented only by a pre-check of the submitted inputs to validate that they respect the structure. This should be done around the same place where allowed formats/media-types are validated.

Extra Consideration

A collection input would need to be considered like a byReference, or define a custom byCollection definition?

References

@fmigneault fmigneault added triage/feature New requested feature. triage/conformance Issue related to fixing/ensuring compliance to specifications. process/OAP-Part1: Core OGC API - Processes - Part 1: Core labels Oct 3, 2024
@fmigneault fmigneault self-assigned this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
process/OAP-Part1: Core OGC API - Processes - Part 1: Core triage/conformance Issue related to fixing/ensuring compliance to specifications. triage/feature New requested feature.
Projects
None yet
Development

No branches or pull requests

1 participant