From 7fb30a668e115158cd6fd330c2081345f4281c65 Mon Sep 17 00:00:00 2001 From: Netanel Cohen Date: Mon, 13 Jun 2022 17:57:35 +0300 Subject: [PATCH] fix: limit arrays to contain a string --- src/yaml/3dCatalog/3dMetadata.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/yaml/3dCatalog/3dMetadata.yaml b/src/yaml/3dCatalog/3dMetadata.yaml index 7a279dd..b9d557b 100644 --- a/src/yaml/3dCatalog/3dMetadata.yaml +++ b/src/yaml/3dCatalog/3dMetadata.yaml @@ -114,12 +114,14 @@ components: type: array items: type: string + minItems: 1 description: Layer sensors list example: ["OTHER"] footprint: - $ref: ../geojson.yaml#/components/schemas/Geometry - description: Geographic demarkatetion of the product - example: '{"type":"Polygon","coordinates":[[[1,2],[3,4],[5,6],[7,8],[1,2]]]}' + allOf: + - $ref: ../geojson.yaml#/components/schemas/Geometry + - description: Geographic demarkatetion of the product + - example: '{"type":"Polygon","coordinates":[[[1,2],[3,4],[5,6],[7,8],[1,2]]]}' heightRangeFrom: type: number format: double @@ -148,6 +150,7 @@ components: type: array items: type: string + minItems: 1 description: regions included in the layer classification: type: string @@ -191,6 +194,7 @@ components: - properties: links: type: array + minItems: 1 items: $ref: ../link.yaml#/components/schemas/Link metadata: