-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* destinations schema * revert accidental change to unrelated counterexample * add eols * refactor destination schema proposal to model the data on the 'from' segment instead of the 'to'. * symbols independent of labels; updates to examples and counterexamples * update descriptions * revert road; minor touchoups * either labels or symbols myst be present * either labels or symbols must be present, but both is also valid, replace the required oneOf with anyOf * fix place->unknown; remove deprecated update_time from example * remove deprecated update_time from the new counterexamples * revert accidental added property * cleanup
- Loading branch information
Showing
9 changed files
with
340 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
counterexamples/transportation/segment/road/bad-road-destinations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
id: overture:transportation:segment:example:destinations:1 | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
subtype: road | ||
class: secondary | ||
version: 0 | ||
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678] | ||
destinations: | ||
- labels: | ||
- value: Seattle | ||
type: unknown | ||
- value: Seattle | ||
type: unknown | ||
- value: Redmond | ||
- value: | ||
foo: bar | ||
type: unknown | ||
- value: Bellevue | ||
type: other | ||
- value: Main Street | ||
type: street | ||
- value: I90 | ||
type: route | ||
symbols: | ||
- airport | ||
from: | ||
- segment_id: overture:transportation:segment:234 | ||
- segment_id: overture:transportation:segment:567 | ||
connector_id: overture:transportation:connector:567 | ||
foo: bar | ||
when: | ||
heading: forward | ||
to_connector_id: overture:transportation:connector:123 | ||
final_heading: backward | ||
- labels: | ||
- value: Kirkland | ||
type: unknown | ||
from: | ||
- segment_id: overture:transportation:segment:567 | ||
connector_id: overture:transportation:connector:567 | ||
ext_expected_errors: | ||
- "[I#/properties/destinations/0/label] items at index 0 and 1 are equal" |
27 changes: 27 additions & 0 deletions
27
...amples/transportation/segment/road/destinations/bad-road-destinations-bad-label-type.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
id: overture:transportation:segment:example:destinations:1 | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
subtype: road | ||
class: secondary | ||
version: 0 | ||
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678] | ||
destinations: | ||
- labels: | ||
- value: Seattle | ||
type: bad_type | ||
symbols: | ||
- airport | ||
when: | ||
heading: forward | ||
from_connector_id: overture:transportation:connector:123 | ||
to_connector_id: overture:transportation:connector:123 | ||
to_segment_id: overture:transportation:segment:567 | ||
final_heading: backward | ||
ext_expected_errors: | ||
- "[I#/properties/destinations/0/labels/0/type] [S#/$defs/propertyDefinitions/destinationLabelType/enum] value must be one of" |
29 changes: 29 additions & 0 deletions
29
...terexamples/transportation/segment/road/destinations/bad-road-destinations-duplicate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
id: overture:transportation:segment:example:destinations:1 | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
subtype: road | ||
class: secondary | ||
version: 0 | ||
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678] | ||
destinations: | ||
- labels: | ||
- value: Seattle | ||
type: unknown | ||
- value: Seattle | ||
type: unknown | ||
symbols: | ||
- airport | ||
when: | ||
heading: forward | ||
from_connector_id: overture:transportation:connector:123 | ||
to_connector_id: overture:transportation:connector:123 | ||
to_segment_id: overture:transportation:segment:567 | ||
final_heading: backward | ||
ext_expected_errors: | ||
- "[I#/properties/destinations/0/labels] items at index 0 and 1 are equal" |
27 changes: 27 additions & 0 deletions
27
...les/transportation/segment/road/destinations/bad-road-destinations-empty-label-value.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
id: overture:transportation:segment:example:destinations:1 | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
subtype: road | ||
class: secondary | ||
version: 0 | ||
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678] | ||
destinations: | ||
- labels: | ||
- value: | ||
type: unknown | ||
symbols: | ||
- airport | ||
when: | ||
heading: forward | ||
from_connector_id: overture:transportation:connector:123 | ||
to_connector_id: overture:transportation:connector:123 | ||
to_segment_id: overture:transportation:segment:567 | ||
final_heading: backward | ||
ext_expected_errors: | ||
- "[I#/properties/destinations/0/labels/0/value] [S#/$defs/propertyDefinitions/destinations/items/properties/labels/items/properties/value/type] expected string, but got null" |
27 changes: 27 additions & 0 deletions
27
...amples/transportation/segment/road/destinations/bad-road-destinations-invalid-symbol.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
id: overture:transportation:segment:example:destinations:1 | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
subtype: road | ||
class: secondary | ||
version: 0 | ||
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678] | ||
destinations: | ||
- labels: | ||
- value: Seattle | ||
type: unknown | ||
symbols: | ||
- bad_symbol | ||
when: | ||
heading: forward | ||
from_connector_id: overture:transportation:connector:123 | ||
to_connector_id: overture:transportation:connector:123 | ||
to_segment_id: overture:transportation:segment:567 | ||
final_heading: backward | ||
ext_expected_errors: | ||
- "[I#/properties/destinations/0] [S#/$defs/propertyDefinitions/destinationSignSymbol/enum] value must be one of ..." |
26 changes: 26 additions & 0 deletions
26
...transportation/segment/road/destinations/bad-road-destinations-missing-final_heading.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
id: overture:transportation:segment:example:destinations:1 | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
subtype: road | ||
class: secondary | ||
version: 0 | ||
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678] | ||
destinations: | ||
- labels: | ||
- value: Seattle | ||
type: unknown | ||
symbols: | ||
- airport | ||
when: | ||
heading: forward | ||
from_connector_id: overture:transportation:connector:123 | ||
to_connector_id: overture:transportation:connector:123 | ||
to_segment_id: overture:transportation:segment:567 | ||
ext_expected_errors: | ||
- "[I#/properties/destinations/0] [S#/$defs/propertyDefinitions/destinations/items/required] missing properties: 'final_heading'" |
41 changes: 41 additions & 0 deletions
41
examples/transportation/segment/road/destinations/road-destinations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
id: overture:transportation:segment:example:destinations:1 | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
subtype: road | ||
class: secondary | ||
version: 0 | ||
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678] | ||
destinations: | ||
- when: | ||
heading: forward | ||
from_connector_id: overture:transportation:connector:123 | ||
to_connector_id: overture:transportation:connector:123 | ||
to_segment_id: overture:transportation:segment:567 | ||
final_heading: backward | ||
labels: | ||
- value: Seattle | ||
type: unknown | ||
- value: Main Street | ||
type: street | ||
- value: I90 | ||
type: route_ref | ||
symbols: | ||
- motorway | ||
- airport | ||
- when: | ||
heading: backward | ||
from_connector_id: overture:transportation:connector:123 | ||
to_connector_id: overture:transportation:connector:123 | ||
to_segment_id: overture:transportation:segment:567 | ||
final_heading: backward | ||
labels: | ||
- value: Redmond | ||
type: unknown | ||
- value: I5 | ||
type: toward_route_ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters