Skip to content

Commit

Permalink
Merge pull request #55 from tschaub/array-length
Browse files Browse the repository at this point in the history
Validation for array length
  • Loading branch information
cportele authored Mar 4, 2018
2 parents 7f9a386 + 8b41212 commit 9a0017c
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions core/openapi/parameters/bbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ description: >-
required: false
schema:
type: array
minItems: 4
maxItems: 4
items:
type: number
minItems: 4
maxItems: 4
minimum: -180
maximum: 180
style: form
Expand Down
4 changes: 2 additions & 2 deletions core/openapi/schemas/bbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ properties:
bbox:
description: west, north, east, south edges of the bounding box
type: array
minItems: 4
maxItems: 4
items:
minItems: 4
maxItems: 4
type: number
minimum: -180
maximum: 180
Expand Down
4 changes: 2 additions & 2 deletions core/openapi/schemas/linestringGeoJSON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ properties:
- LineString
coordinates:
type: array
minItems: 2
items:
type: array
minItems: 2
items:
type: number
minItems: 2
type: number
4 changes: 2 additions & 2 deletions core/openapi/schemas/multilinestringGeoJSON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ properties:
type: array
items:
type: array
minItems: 2
items:
type: array
minItems: 2
items:
type: number
minItems: 2
type: number
4 changes: 2 additions & 2 deletions core/openapi/schemas/multipointGeoJSON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ properties:
type: array
items:
type: array
minItems: 2
items:
type: number
minItems: 2
type: number
6 changes: 3 additions & 3 deletions core/openapi/schemas/multipolygonGeoJSON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ properties:
type: array
items:
type: array
minItems: 4
items:
type: array
minItems: 4
minItems: 2
items:
type: number
minItems: 2
type: number
4 changes: 2 additions & 2 deletions core/openapi/schemas/pointGeoJSON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ properties:
- Point
coordinates:
type: array
minItems: 2
items:
type: number
minItems: 2
type: number
4 changes: 2 additions & 2 deletions core/standard/clause_7_core.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,10 @@ in: query
required: false
schema:
type: array
minItems: 4
maxItems: 4
items:
type: number
minItems: 4
maxItems: 4
minimum: -180
maximum: 180
style: form
Expand Down
12 changes: 6 additions & 6 deletions docs/17-069.html
Original file line number Diff line number Diff line change
Expand Up @@ -2435,10 +2435,10 @@ <h4 id="_parameter_bbox"><a class="anchor" href="#_parameter_bbox"></a>7.9.3. Pa
required: false
schema:
type: array
minItems: 4
maxItems: 4
items:
type: number
minItems: 4
maxItems: 4
minimum: -180
maximum: 180
style: form
Expand Down Expand Up @@ -4252,10 +4252,10 @@ <h2 id="oas30_example"><a class="anchor" href="#oas30_example"></a>Annex B: Open
required: false
schema:
type: array
minItems: 4
maxItems: 4
items:
type: number
minItems: 4
maxItems: 4
minimum: -180
maximum: 180
style: form
Expand Down Expand Up @@ -4321,9 +4321,9 @@ <h2 id="oas30_example"><a class="anchor" href="#oas30_example"></a>Annex B: Open
bbox:
description: west, north, east, south edges of the bounding box
type: array
minItems: 4
maxItems: 4
items:
minItems: 4
maxItems: 4
type: number
minimum: -180
maximum: 180
Expand Down
8 changes: 4 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ components:
required: false
schema:
type: array
minItems: 4
maxItems: 4
items:
type: number
minItems: 4
maxItems: 4
minimum: -180
maximum: 180
style: form
Expand Down Expand Up @@ -292,9 +292,9 @@ components:
bbox:
description: west, north, east, south edges of the bounding box
type: array
minItems: 4
maxItems: 4
items:
minItems: 4
maxItems: 4
type: number
minimum: -180
maximum: 180
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ near:
required: false
schema:
type: array
minItems: 2
maxItems: 2
items:
type: number
minItems: 2
maxItems: 2
minimum: -180
maximum: 180
style: form
Expand Down
12 changes: 6 additions & 6 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ parameters:
However, in cases where the box spans the antimeridian the first value
(west-most box edge) is larger than the third value (east-most box edge).
type: array
minItems: 4
maxItems: 4
items:
type: number
minItems: 4
maxItems: 4
minimum: -180
maximum: 180
collectionFormat: csv
Expand Down Expand Up @@ -267,9 +267,9 @@ definitions:
bbox:
description: west, north, east, south edges of the bounding box
type: array
minItems: 4
maxItems: 4
items:
minItems: 4
maxItems: 4
type: number
minimum: -180
maximum: 180
Expand Down Expand Up @@ -367,12 +367,12 @@ definitions:
type: array
items:
type: array
minItems: 4
items:
type: array
minItems: 4
minItems: 2
items:
type: number
minItems: 2
building:
type: object
required:
Expand Down

0 comments on commit 9a0017c

Please sign in to comment.