Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions counterexamples/divisions/division_area/bad-is-land.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
id: counterexample:division_area:bad-is-land
type: Feature
geometry:
type: LineString
coordinates: [[0, 1], [1, 2]]
properties:
theme: divisions
type: division_area
version: 0
subtype: country
division_id: counterexample:division_boundary:some-division
is_land: yes
country: ZZ
ext_expected_errors:
- "is_land/type]: got string, want boolean"
17 changes: 17 additions & 0 deletions counterexamples/divisions/division_area/bad-is-territorial.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
id: counterexample:division_area:bad-is-territorial
type: Feature
geometry:
type: LineString
coordinates: [[0, 1], [1, 2]]
properties:
theme: divisions
type: division_area
version: 0
subtype: country
division_id: counterexample:division_boundary:some-division
is_territorial: no
is_land: true
country: ZZ
ext_expected_errors:
- "is_territorial/type]: got string, want boolean"
14 changes: 14 additions & 0 deletions counterexamples/divisions/division_area/bad-missing-is-land.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
id: counterexample:division_area:bad-is-territorial
type: Feature
geometry:
type: LineString
coordinates: [[0, 1], [1, 2]]
properties:
theme: divisions
type: division_area
version: 0
subtype: country
division_id: counterexample:division_boundary:some-division
is_territorial: false
country: ZZ
18 changes: 18 additions & 0 deletions counterexamples/divisions/division_boundary/bad-is-land.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
id: counterexample:division_boundary:bad-is-land
type: Feature
geometry:
type: LineString
coordinates: [[0, 1], [1, 2]]
properties:
theme: divisions
type: division_boundary
version: 0
subtype: country
division_ids: ["example:division:country:left", "example:division:country:right"]
is_land: yes
is_territorial: false
class: land
country: ZZ
ext_expected_errors:
- "is_land/type]: got string, want boolean"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
id: counterexample:division_boundary:bad-is-territorial
type: Feature
geometry:
type: LineString
coordinates: [[0, 1], [1, 2]]
properties:
theme: divisions
type: division_boundary
version: 0
subtype: country
division_ids: ["example:division:country:left", "example:division:country:right"]
class: land
is_territorial: no
is_land: true
country: ZZ
ext_expected_errors:
- "is_territorial/type]: got string, want boolean"
17 changes: 17 additions & 0 deletions counterexamples/divisions/division_boundary/bad-not-both.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
id: example:division_boundary:is_land:country:us
type: Feature
geometry:
type: LineString
coordinates: [[0, 1], [1, 2]]
properties:
theme: divisions
type: division_boundary
version: 1
subtype: country
is_land: true
is_territorial: true
class: land
division_ids: ["example:division:country:left", "example:division:country:right"]
ext_expected_errors:
- "division_boundary.yaml#/properties/properties/oneOf]: oneOf failed, subschemas 0, 1 matched"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ properties:
type: division_boundary
version: 0
subtype: macroregion
is_territorial: true
is_land: false
division_ids: ["example:division:country:left", "example:division:country:right"]
ext_expected_errors:
- "missing property 'class'"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ properties:
type: division_boundary
version: 0
class: land
is_territorial: false
is_land: true
subtype: macrocounty
ext_expected_errors:
- "missing property 'division_ids'"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ properties:
type: division_boundary
version: 0
class: land
is_territorial: false
is_land: true
division_ids: ["example:division:country:left", "example:division:country:right"]
ext_expected_errors:
- "missing property 'subtype'"
2 changes: 2 additions & 0 deletions examples/divisions/division_area/country_land.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ properties:
version: 0
subtype: country
class: land
is_land: true
is_territorial: false
division_id: example:division:country:us
names:
primary: United States
Expand Down
2 changes: 2 additions & 0 deletions examples/divisions/division_area/country_maritime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ properties:
version: 0
subtype: country
class: maritime
is_territorial: true
is_land: false
division_id: example:division:country:fi
names:
primary: Suomi
Expand Down
Loading
Loading