Skip to content

Commit

Permalink
Merge pull request #419 from geoadmin/feat-PB-613-spec-point-item-geo…
Browse files Browse the repository at this point in the history
…metry

PB-613: adapt spec for item geometry
  • Loading branch information
benschs authored Jun 19, 2024
2 parents 54d7058 + f9cf00f commit 27eef5c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
14 changes: 7 additions & 7 deletions spec/components/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,13 @@ components:
example: smr200-200-4-2019
type: string
itemGeometry:
# oneOf:
# - $ref: "#/components/schemas/geoJsonPoint"
# - $ref: "#/components/schemas/geoJsonLineString"
$ref: "#/components/schemas/geoJsonPolygon"
# - $ref: "#/components/schemas/geoJsonMultiPoint"
# - $ref: "#/components/schemas/geoJsonMultiLineString"
# - $ref: "#/components/schemas/geoJsonMultiPolygon"
oneOf:
- $ref: "#/components/schemas/geoJsonPoint"
- $ref: "#/components/schemas/geoJsonLineString"
- $ref: "#/components/schemas/geoJsonPolygon"
- $ref: "#/components/schemas/geoJsonMultiPoint"
- $ref: "#/components/schemas/geoJsonMultiLineString"
- $ref: "#/components/schemas/geoJsonMultiPolygon"
geoJsonPoint:
title: GeoJSON Point
type: object
Expand Down
8 changes: 7 additions & 1 deletion spec/static/spec/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,13 @@ components:
example: smr200-200-4-2019
type: string
itemGeometry:
$ref: "#/components/schemas/geoJsonPolygon"
oneOf:
- $ref: "#/components/schemas/geoJsonPoint"
- $ref: "#/components/schemas/geoJsonLineString"
- $ref: "#/components/schemas/geoJsonPolygon"
- $ref: "#/components/schemas/geoJsonMultiPoint"
- $ref: "#/components/schemas/geoJsonMultiLineString"
- $ref: "#/components/schemas/geoJsonMultiPolygon"
geoJsonPoint:
title: GeoJSON Point
type: object
Expand Down
8 changes: 7 additions & 1 deletion spec/static/spec/v1/openapitransactional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2500,7 +2500,13 @@ components:
example: smr200-200-4-2019
type: string
itemGeometry:
$ref: "#/components/schemas/geoJsonPolygon"
oneOf:
- $ref: "#/components/schemas/geoJsonPoint"
- $ref: "#/components/schemas/geoJsonLineString"
- $ref: "#/components/schemas/geoJsonPolygon"
- $ref: "#/components/schemas/geoJsonMultiPoint"
- $ref: "#/components/schemas/geoJsonMultiLineString"
- $ref: "#/components/schemas/geoJsonMultiPolygon"
geoJsonPoint:
title: GeoJSON Point
type: object
Expand Down

0 comments on commit 27eef5c

Please sign in to comment.