Skip to content

Commit

Permalink
Extract objects into refs
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <[email protected]>
  • Loading branch information
kolchfa-aws committed Sep 5, 2024
1 parent d4e7a3b commit 92a19f6
Showing 1 changed file with 34 additions and 19 deletions.
53 changes: 34 additions & 19 deletions spec/schemas/_common.query_dsl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,22 @@ components:
- coerce
- ignore_malformed
- strict
GeoShape:
type: object
properties:
type:
type: string
coordinates:
type: array
GeoShapeField:
type: object
properties:
shape:
$ref: '#/components/schemas/GeoShape'
relation:
$ref: '_common.yaml#/components/schemas/GeoShapeRelation'
required:
- shape
GeoDistanceQuery:
allOf:
- $ref: '#/components/schemas/QueryBase'
Expand Down Expand Up @@ -675,19 +691,7 @@ components:
- type: object
properties:
field:
type: object
properties:
shape:
type: object
properties:
type:
type: string
coordinates:
type: array
relation:
$ref: '_common.yaml#/components/schemas/GeoShapeRelation'
required:
- shape
$ref: '#/components/schemas/GeoShapeField'
ignore_unmapped:
$ref: '#/components/schemas/IgnoreUnmapped'
required:
Expand Down Expand Up @@ -1980,6 +1984,22 @@ components:
type: string
required:
- query
XyShape:
type: object
properties:
type:
type: string
coordinates:
type: array
XyShapeField:
type: object
properties:
shape:
$ref: '#/components/schemas/XyShape'
relation:
$ref: '_common.yaml#/components/schemas/GeoShapeRelation'
required:
- shape
XyShapeQuery:
x-version-added: 2.4
allOf:
Expand All @@ -1990,12 +2010,7 @@ components:
type: object
properties:
shape:
type: object
properties:
type:
type: string
coordinates:
type: array
$ref: '#/components/schemas/XyShape'
relation:
$ref: '_common.yaml#/components/schemas/GeoShapeRelation'
required:
Expand Down

0 comments on commit 92a19f6

Please sign in to comment.