From 12a6b7fd32e8815743401327d7db22c1542dc3ba Mon Sep 17 00:00:00 2001 From: Panagiotis Vretanos Date: Wed, 19 Jun 2024 11:01:11 -0400 Subject: [PATCH] Patch definition for input crs. --- .../kvp-execute/REQ_bbox-crs-input-value.adoc | 4 +-- openapi/parameters/common-crs/bbox-crs.yaml | 27 +++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/core/requirements/kvp-execute/REQ_bbox-crs-input-value.adoc b/core/requirements/kvp-execute/REQ_bbox-crs-input-value.adoc index 1dec4333..ccac2d39 100644 --- a/core/requirements/kvp-execute/REQ_bbox-crs-input-value.adoc +++ b/core/requirements/kvp-execute/REQ_bbox-crs-input-value.adoc @@ -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. -- ==== diff --git a/openapi/parameters/common-crs/bbox-crs.yaml b/openapi/parameters/common-crs/bbox-crs.yaml index 2b22389b..cfed659d 100644 --- a/openapi/parameters/common-crs/bbox-crs.yaml +++ b/openapi/parameters/common-crs/bbox-crs.yaml @@ -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