Skip to content

Commit

Permalink
draft - add entityId as string
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnt1 committed Aug 29, 2023
1 parent 1671f3a commit 363d603
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions counterexamples/bad-entityId.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "featureWithBadEntityId",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 1]
},
"properties": {
"entityId": "1423"
}
}
2 changes: 2 additions & 0 deletions examples/admins/locality/admin-named-locality.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
id: capitolHillFeatureId
geometry:
coordinates:
- -122.3183680
- 47.6238307
type: Point
properties:
entityId: 08628d542fffffff0100000000052a6f
context: seattleId
localityType: neighborhood
names:
Expand Down
6 changes: 6 additions & 0 deletions schema/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ title: Overture Maps Feature Schema Common Definitions
description: Common schema definitions shared by all themes
"$defs":
propertyDefinitions:
entityId:
description: >-
Optional stable identifier for the feature. 128 bits represented as 32 hex characters.
type: string
pattern: ^[0-9a-f]{32}$
level:
description: Z-order of the feature where 0 is visual level
type: integer
Expand Down Expand Up @@ -241,6 +246,7 @@ description: Common schema definitions shared by all themes
^ext.*$:
description: "Additional top-level properties must be prefixed with `ext`."
properties:
entityId: { "$ref": "#/$defs/propertyDefinitions/entityId" }
theme: { "$ref": "#/$defs/propertyDefinitions/theme" }
type: { "$ref": "#/$defs/propertyDefinitions/featureType" }
version: { "$ref": "#/$defs/propertyDefinitions/featureVersion" }
Expand Down

0 comments on commit 363d603

Please sign in to comment.