Skip to content

Commit

Permalink
Remove deprecated connector_ids (#284)
Browse files Browse the repository at this point in the history
* remove connector_ids

* updating missed counterexample

* fix test after sync from dev
  • Loading branch information
ibnt1 authored Oct 10, 2024
1 parent d1b4b5a commit db8126e
Show file tree
Hide file tree
Showing 40 changed files with 45 additions and 100 deletions.
6 changes: 5 additions & 1 deletion counterexamples/transportation/segment/bad-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ properties:
version: 1
subtype: road
class: sidewalk
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"type": "segment",
"version": 4,
"subtype": "rail",
"connector_ids": ["fooConnector", "bazConnector", "fooConnector"],
"connectors": [
{
"connector_id": "fooConnector",
Expand Down
3 changes: 0 additions & 3 deletions counterexamples/transportation/segment/bad-connector.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
},
"properties": {
"ext_expected_errors": [
"got number, want string",
"got boolean, want string",
"got string, want object",
"got number, want object",
"got boolean, want object"
Expand All @@ -17,7 +15,6 @@
"type": "segment",
"version": 3,
"subtype": "rail",
"connector_ids": ["bazConnector", "qux", 1, false],
"connectors": [{"connector_id": "foo", "at": 0.0}, {"connector_id": "bar", "at": 1.0}, "bazConnector", "qux", 1, false]
}
}
2 changes: 0 additions & 2 deletions counterexamples/transportation/segment/bad-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ properties:
subtype: road
class: secondary
version: 0
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
connectors:
- connector_id: overture:transportation:connector:123
at: 0
- connector_id: overture:transportation:connector:678
at: 1
destinations:
- labels:
- value: Seattle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ properties:
subtype: road
class: secondary
version: 0
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
connectors:
- connector_id: overture:transportation:connector:123
at: 0
- connector_id: overture:transportation:connector:678
at: 1
destinations:
- labels:
- value: Seattle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ properties:
subtype: road
class: secondary
version: 0
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
connectors:
- connector_id: overture:transportation:connector:123
at: 0
- connector_id: overture:transportation:connector:678
at: 1
destinations:
- labels:
- value: Seattle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ properties:
subtype: road
class: secondary
version: 0
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
connectors:
- connector_id: overture:transportation:connector:123
at: 0
- connector_id: overture:transportation:connector:678
at: 1
destinations:
- labels:
- value:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ properties:
subtype: road
class: secondary
version: 0
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
connectors:
- connector_id: overture:transportation:connector:123
at: 0
- connector_id: overture:transportation:connector:678
at: 1
destinations:
- labels:
- value: Seattle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ properties:
subtype: road
class: secondary
version: 0
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
connectors:
- connector_id: overture:transportation:connector:123
at: 0
- connector_id: overture:transportation:connector:678
at: 1
destinations:
- labels:
- value: Seattle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ properties:
subclass: link
subclass_rules:
- value: link
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ properties:
version: 1
subtype: road
class: secondary
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
access_restrictions:
- access_type: allowed
when: {vehicle: [{dimension: axle_count, comparison: greater_than, value: {is_foo: 5}}]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 2
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 2
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 2
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ properties:
version: 2
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
2 changes: 0 additions & 2 deletions examples/transportation/docusaurus/access-restriction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ properties:
version: 4
subtype: road
class: motorway
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
theme: transportation
type: segment
version: 1
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
theme: transportation
type: segment
version: 2
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
4 changes: 0 additions & 4 deletions examples/transportation/docusaurus/simple-road.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ properties:
version: 5
subtype: road
class: residential
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ properties:
version: 5
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ properties:
version: 5
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ properties:
version: 5
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ properties:
version: 5
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ properties:
subtype: road
class: secondary
version: 0
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
connectors:
- connector_id: overture:transportation:connector:123
at: 0
- connector_id: overture:transportation:connector:678
at: 1
destinations:
- when:
heading: forward
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 4
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 5
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector, bazConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 6
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ properties:
version: 6
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
2 changes: 0 additions & 2 deletions examples/transportation/segment/road/road-with-lr-name.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
2 changes: 0 additions & 2 deletions examples/transportation/segment/road/road-with-lr-width.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
2 changes: 0 additions & 2 deletions examples/transportation/segment/road/road-with-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ properties:
version: 1
subtype: road
class: motorway
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
2 changes: 0 additions & 2 deletions examples/transportation/segment/road/road.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ properties:
subclass: link
subclass_rules:
- value: link
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
Expand Down
Loading

0 comments on commit db8126e

Please sign in to comment.