Skip to content

Commit

Permalink
PB-676: remove duplicate YAML key from spec.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adk-swisstopo committed Jun 20, 2024
1 parent 27eef5c commit 2c2b6ee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions spec/components/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion spec/static/spec/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion spec/static/spec/v1/openapitransactional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2c2b6ee

Please sign in to comment.