Skip to content

Commit 99a0874

Browse files
authored
Merge pull request #598 from openstreetmap/schema-builder-v5
upgrade to schema-builder v5
2 parents 041e6f1 + ad24670 commit 99a0874

23 files changed

+14
-62
lines changed

data/fields/address.json

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"addr:suburb",
2626
"addr:unit"
2727
],
28-
"icon": "address",
2928
"label": "Address",
3029
"strings": {
3130
"placeholders": {

data/fields/building/levels_building.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"key": "building:levels",
33
"type": "number",
44
"minValue": 0,
5-
"label": "Building Levels",
6-
"placeholder": "2, 4, 6...",
5+
"label": "{building/levels}",
6+
"placeholder": "{building/levels}",
77
"prerequisiteTag": {
88
"key": "building",
99
"valueNot": "no"

data/fields/colour.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"key": "colour",
3-
"type": "text",
3+
"type": "colour",
44
"label": "Color"
55
}

data/fields/contact/webcam.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"key": "contact:webcam",
33
"type": "url",
4-
"icon": "website",
54
"label": "Webcam URL",
65
"placeholder": "http://example.com/"
76
}

data/fields/ele.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"key": "ele",
33
"type": "number",
4-
"icon": "elevation",
54
"label": "Elevation (Meters)",
65
"geometry": [
76
"line",

data/fields/ele_node.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"key": "ele",
33
"type": "number",
4-
"icon": "elevation",
54
"label": "Elevation (Meters)",
65
"universal": true,
76
"geometry": [

data/fields/note.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"key": "note",
33
"type": "textarea",
44
"universal": true,
5-
"icon": "note",
65
"label": "Note",
76
"terms": [
87
"comment"

data/fields/payment_multi_fee.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"key": "payment:",
33
"type": "multiCombo",
4-
"label": "Payment Types",
4+
"label": "{payment_multi}",
55
"prerequisiteTag": {
66
"key": "fee",
77
"valueNot": "no"

data/fields/phone.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"key": "phone",
33
"type": "tel",
4-
"icon": "maki-telephone",
54
"label": "Telephone",
65
"placeholder": "+31 42 123 4567",
76
"terms": [

data/fields/restrictions.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"geometry": [
44
"vertex"
55
],
6-
"icon": "iD-restrictions",
76
"usage": "manual",
87
"reference": {
98
"rtype": "restriction"

data/fields/source.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"key": "source",
33
"type": "semiCombo",
4-
"icon": "source",
54
"universal": true,
65
"label": "Sources",
76
"snake_case": false,

data/fields/website.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"key": "website",
33
"type": "url",
4-
"icon": "website",
54
"placeholder": "https://example.com",
65
"label": "Website",
76
"terms": [

data/fields/wheelchair.json

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"no": "No"
99
}
1010
},
11-
"icon": "maki-wheelchair",
1211
"label": "Wheelchair Access",
1312
"terms": [
1413
"handicap access"

data/fields/wikidata.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"wikipedia"
66
],
77
"type": "wikidata",
8-
"icon": "wikipedia",
98
"universal": true,
109
"label": "Wikidata"
1110
}

data/fields/wikipedia.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"wikidata"
66
],
77
"type": "wikipedia",
8-
"icon": "wikipedia",
98
"universal": true,
109
"label": "Wikipedia"
1110
}

data/presets/highway/motorway_link-US-CA.json

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Motorway Link",
2+
"name": "{highway/motorway_link}",
33
"icon": "iD-highway-motorway-link",
44
"fields": [
55
"destination_oneway",
@@ -34,14 +34,6 @@
3434
"tags": {
3535
"highway": "motorway_link"
3636
},
37-
"terms": [
38-
"exit",
39-
"ramp",
40-
"road",
41-
"street",
42-
"on ramp",
43-
"off ramp"
44-
],
4537
"locationSet": {
4638
"include": [
4739
"ca",

data/presets/highway/primary_link-US-CA.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Primary Link",
2+
"name": "{highway/primary_link}",
33
"icon": "iD-highway-primary-link",
44
"fields": [
55
"destination_oneway",
@@ -38,13 +38,6 @@
3838
"tags": {
3939
"highway": "primary_link"
4040
},
41-
"terms": [
42-
"on ramp",
43-
"off ramp",
44-
"ramp",
45-
"road",
46-
"street"
47-
],
4841
"locationSet": {
4942
"include": [
5043
"ca",

data/presets/highway/trunk_link-US-CA.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Trunk Link",
2+
"name": "{highway/trunk_link}",
33
"icon": "iD-highway-trunk-link",
44
"fields": [
55
"{highway/motorway_link-US-CA}"
@@ -13,13 +13,6 @@
1313
"tags": {
1414
"highway": "trunk_link"
1515
},
16-
"terms": [
17-
"on ramp",
18-
"off ramp",
19-
"ramp",
20-
"road",
21-
"street"
22-
],
2316
"locationSet": {
2417
"include": [
2518
"ca",

interim/source_strings.yaml

-15
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,6 @@ en:
444444
terms: '[translate with synonyms or related terms for ''Underground Levels'', separated by commas]'
445445
building/levels_building:
446446
# building:levels=*
447-
label: Building Levels
448-
# building/levels_building field placeholder
449-
placeholder: 2, 4, 6...
450-
terms: '[translate with synonyms or related terms for ''Building Levels'', separated by commas]'
451447
building/material:
452448
# building:material=*
453449
label: Material
@@ -2183,8 +2179,6 @@ en:
21832179
terms: '[translate with synonyms or related terms for ''Payment Types'', separated by commas]'
21842180
payment_multi_fee:
21852181
# payment:=*
2186-
label: Payment Types
2187-
terms: '[translate with synonyms or related terms for ''Payment Types'', separated by commas]'
21882182
phases:
21892183
# phases=*
21902184
label: Phases
@@ -6405,9 +6399,6 @@ en:
64056399
terms: <translate with synonyms or related terms for 'Motorway Link', separated by commas>
64066400
highway/motorway_link-US-CA:
64076401
# highway=motorway_link | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
6408-
name: Motorway Link
6409-
# 'terms: exit,ramp,road,street,on ramp,off ramp'
6410-
terms: <translate with synonyms or related terms for 'Motorway Link', separated by commas>
64116402
highway/passing_place:
64126403
# highway=passing_place | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
64136404
name: Passing Place
@@ -6450,9 +6441,6 @@ en:
64506441
terms: <translate with synonyms or related terms for 'Primary Link', separated by commas>
64516442
highway/primary_link-US-CA:
64526443
# highway=primary_link | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
6453-
name: Primary Link
6454-
# 'terms: on ramp,off ramp,ramp,road,street'
6455-
terms: <translate with synonyms or related terms for 'Primary Link', separated by commas>
64566444
highway/raceway:
64576445
# highway=raceway | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
64586446
name: Motorsport Racetrack
@@ -6604,9 +6592,6 @@ en:
66046592
terms: <translate with synonyms or related terms for 'Trunk Link', separated by commas>
66056593
highway/trunk_link-US-CA:
66066594
# highway=trunk_link | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
6607-
name: Trunk Link
6608-
# 'terms: on ramp,off ramp,ramp,road,street'
6609-
terms: <translate with synonyms or related terms for 'Trunk Link', separated by commas>
66106595
highway/turning_circle:
66116596
# highway=turning_circle | Translate the primary name. Optionally, add equivalent synonyms on newlines in order of preference (press the Return key).
66126597
name: Turning Circle

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2+
"type": "module",
23
"name": "@openstreetmap/id-tagging-schema",
3-
"version": "3.5.1",
4+
"version": "5.0.0-dev",
45
"description": "The OpenStreetMap tagging model used by the iD editor",
56
"homepage": "https://github.com/openstreetmap/id-tagging-schema#readme",
67
"bugs": "https://github.com/openstreetmap/id-tagging-schema/issues",
@@ -19,7 +20,7 @@
1920
"translations": "node scripts/translations.js"
2021
},
2122
"devDependencies": {
22-
"@ideditor/schema-builder": "~4.0.6",
23+
"@ideditor/schema-builder": "~5.1.1",
2324
"prettier": "~2.7.1"
2425
}
2526
}

scripts/build.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
2-
const schemaBuilder = require('@ideditor/schema-builder');
1+
import schemaBuilder from '@ideditor/schema-builder';
32

43
schemaBuilder.buildDev();

scripts/dist.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const schemaBuilder = require('@ideditor/schema-builder');
1+
import schemaBuilder from '@ideditor/schema-builder';
22

33
schemaBuilder.buildDist({
44
taginfoProjectInfo: {

scripts/test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
const schemaBuilder = require('@ideditor/schema-builder');
1+
import schemaBuilder from '@ideditor/schema-builder';
2+
23
schemaBuilder.validate();

0 commit comments

Comments
 (0)