From 2c2b6ee2e9394ea15e61387df961ce1ad89360f8 Mon Sep 17 00:00:00 2001 From: Adrien Kunysz Date: Thu, 20 Jun 2024 15:23:50 +0200 Subject: [PATCH] PB-676: remove duplicate YAML key from spec. As far as YAML is concerned, each key in a Map must be unique. The "example" Map has two keys named "title". This change removes one of the two duplicate keys. An alternative fix would involve turning this into a list of examples. However the OpenAPI validator we use does not seem to support it at this time. --- spec/components/schemas.yaml | 2 -- spec/static/spec/v1/openapi.yaml | 1 - spec/static/spec/v1/openapitransactional.yaml | 1 - 3 files changed, 4 deletions(-) diff --git a/spec/components/schemas.yaml b/spec/components/schemas.yaml index 9f0a2429..08a7ff9e 100644 --- a/spec/components/schemas.yaml +++ b/spec/components/schemas.yaml @@ -1430,8 +1430,6 @@ components: $ref: "#/components/schemas/queryProp" description: Define which properties to query and the operations to apply example: - title: - eq: "Swissregio" title: contains: "Swiss" created: diff --git a/spec/static/spec/v1/openapi.yaml b/spec/static/spec/v1/openapi.yaml index ea3facf8..75fa0610 100644 --- a/spec/static/spec/v1/openapi.yaml +++ b/spec/static/spec/v1/openapi.yaml @@ -1977,7 +1977,6 @@ components: description: Define which properties to query and the operations to apply example: title: - eq: "Swissregio" contains: "Swiss" created: lte: "2021-01-01T00:00:00.000Z" diff --git a/spec/static/spec/v1/openapitransactional.yaml b/spec/static/spec/v1/openapitransactional.yaml index f32cdafa..01b93f7b 100644 --- a/spec/static/spec/v1/openapitransactional.yaml +++ b/spec/static/spec/v1/openapitransactional.yaml @@ -3098,7 +3098,6 @@ components: description: Define which properties to query and the operations to apply example: title: - eq: "Swissregio" contains: "Swiss" created: lte: "2021-01-01T00:00:00.000Z"