Skip to content

Commit

Permalink
Patch definition for input crs.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvretano committed Jun 19, 2024
1 parent 2229a01 commit 12a6b7f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
4 changes: 2 additions & 2 deletions core/requirements/kvp-execute/REQ_bbox-crs-input-value.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ identifier:: /req/kvp-execute/bbox-crs-input-value
[.component,class=part]
--
A `inputCrs` input parameter SHALL have the following characteristics:
A `{bbox-input-name}` input parameter SHALL have the following characteristics:
[source,yaml]
----
include::../../../openapi/parameters/common-crs/bbox-crs.yaml[]
----
where the token `{bbox-input-name}` represents the identifier of a bbox input parameter and the token `inputCrs[{bbox-input-name}]` represents the identifier of a corresponding input that indicates which CRS is being used for the coordinates of the `{bbox-input-name}` parameter.
where the token `{bbox-input-name}` represents the identifier of a bbox input parameter and the token `{bbox-input-name}[crs]` represents the identifier of a corresponding input that indicates which CRS is being used for the coordinates of the `{bbox-input-name}` parameter.
--
====
27 changes: 13 additions & 14 deletions openapi/parameters/common-crs/bbox-crs.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: inputCrs
name: inputsCrs
description: |-
Asserts the CRS used for the coordinate values of a bounding
box input parameter.
box input parameter. The name `inputsCrs` is just a generic
name to avoid ambiguity. It is ignored since explode is set
to true.
in: query
description: |-
Asserts the CRS used for the coordinate values of a bounding
box input parameter.
required: false
schema:
schema:
type: object
required:
- {bbox-input-name}
properties:
{bbox-input-name}:
type: string
format: uri
enum:
- http://www.opengis.net/def/crs/OGC/1.3/CRS84
default:
- http://www.opengis.net/def/crs/OGC/1.3/CRS84
style: deepObject
patternProperties:
"^.+[crs]$":
type: string
format: uri # etc. other params...
explode: true
style: form

0 comments on commit 12a6b7f

Please sign in to comment.