Skip to content

Commit

Permalink
Merge pull request #385 from pvretano/issue-369
Browse files Browse the repository at this point in the history
Value passing in an execute request.
  • Loading branch information
bpross-52n authored Mar 4, 2024
2 parents 1788f27 + c22bb71 commit 1b28bb8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
14 changes: 12 additions & 2 deletions core/requirements/core/REQ_process-execute-inputs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@
identifier:: /req/core/process-execute-inputs
[.component,class=part]
--
The server SHALL support process input values specified in-line in an execute request (i.e. by value).
How process input values can be specified in an execute request (by-value, by-reference or both) SHALL be controlled by the https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/openapi/schemas/processes-core/inputDescription.yaml[`valuePassing`] parameter that may be specified per input in the <<sc_process_description,process description>>.
--
[.component,class=part]
--
The default value of the https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/openapi/schemas/processes-core/inputDescription.yaml[`valuePassing`] parameter shall be `["byValue","byReference"]`.
--
[.component,class=part]
--
If an input value can be passed by value (https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/openapi/schemas/processes-core/inputDescription.yaml[`"byValue"`]), process input values SHALL be specified in-line in an execute request.
--
[[input_by_reference]]
[.component,class=part]
--
The server SHALL support process input values specified by reference (i.e. using a https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/openapi/schemas/common-core/link.yaml[link]).
If an input value can be passed by reference (https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/openapi/schemas/processes-core/inputDescription.yaml[`"byReference"`]), then input values shall be referenced in an execute request using a https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/openapi/schemas/common-core/link.yaml[link].
--
====
8 changes: 8 additions & 0 deletions openapi/schemas/processes-core/inputDescription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ allOf:
required:
- schema
properties:
valuePassing:
type: array
items:
type: string
enum:
- "byValue"
- "byReference"
default: ["byValue","byReference"]
minOccurs:
type: integer
default: 1
Expand Down

0 comments on commit 1b28bb8

Please sign in to comment.