Skip to content

Commit

Permalink
upgrade to schema-builder v5
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Sep 29, 2022
1 parent d5fece1 commit 4df0dd3
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 18 deletions.
1 change: 0 additions & 1 deletion data/fields/address.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"addr:suburb",
"addr:unit"
],
"icon": "address",
"label": "Address",
"strings": {
"placeholders": {
Expand Down
2 changes: 1 addition & 1 deletion data/fields/colour.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"key": "colour",
"type": "text",
"type": "colour",
"label": "Color"
}
1 change: 0 additions & 1 deletion data/fields/contact/webcam.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"key": "contact:webcam",
"type": "url",
"icon": "website",
"label": "Webcam URL",
"placeholder": "http://example.com/"
}
1 change: 0 additions & 1 deletion data/fields/ele.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"key": "ele",
"type": "number",
"icon": "elevation",
"label": "Elevation (Meters)",
"geometry": [
"line",
Expand Down
1 change: 0 additions & 1 deletion data/fields/ele_node.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"key": "ele",
"type": "number",
"icon": "elevation",
"label": "Elevation (Meters)",
"universal": true,
"geometry": [
Expand Down
1 change: 0 additions & 1 deletion data/fields/note.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"key": "note",
"type": "textarea",
"universal": true,
"icon": "note",
"label": "Note",
"terms": [
"comment"
Expand Down
1 change: 0 additions & 1 deletion data/fields/phone.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"key": "phone",
"type": "tel",
"icon": "maki-telephone",
"label": "Telephone",
"placeholder": "+31 42 123 4567",
"terms": [
Expand Down
1 change: 0 additions & 1 deletion data/fields/restrictions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"geometry": [
"vertex"
],
"icon": "iD-restrictions",
"usage": "manual",
"reference": {
"rtype": "restriction"
Expand Down
1 change: 0 additions & 1 deletion data/fields/source.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"key": "source",
"type": "semiCombo",
"icon": "source",
"universal": true,
"label": "Sources",
"snake_case": false,
Expand Down
1 change: 0 additions & 1 deletion data/fields/website.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"key": "website",
"type": "url",
"icon": "website",
"placeholder": "https://example.com",
"label": "Website",
"terms": [
Expand Down
1 change: 0 additions & 1 deletion data/fields/wheelchair.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"no": "No"
}
},
"icon": "maki-wheelchair",
"label": "Wheelchair Access",
"terms": [
"handicap access"
Expand Down
1 change: 0 additions & 1 deletion data/fields/wikidata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"wikipedia"
],
"type": "wikidata",
"icon": "wikipedia",
"universal": true,
"label": "Wikidata"
}
1 change: 0 additions & 1 deletion data/fields/wikipedia.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"wikidata"
],
"type": "wikipedia",
"icon": "wikipedia",
"universal": true,
"label": "Wikipedia"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"type": "module",
"name": "@openstreetmap/id-tagging-schema",
"version": "3.5.1",
"description": "The OpenStreetMap tagging model used by the iD editor",
Expand All @@ -19,7 +20,7 @@
"translations": "node scripts/translations.js"
},
"devDependencies": {
"@ideditor/schema-builder": "~4.0.6",
"@ideditor/schema-builder": "~5.0.0",
"prettier": "~2.7.1"
}
}
3 changes: 1 addition & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const schemaBuilder = require('@ideditor/schema-builder');
import schemaBuilder from '@ideditor/schema-builder';

schemaBuilder.buildDev();
2 changes: 1 addition & 1 deletion scripts/dist.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const schemaBuilder = require('@ideditor/schema-builder');
import schemaBuilder from '@ideditor/schema-builder';

schemaBuilder.buildDist({
taginfoProjectInfo: {
Expand Down
3 changes: 2 additions & 1 deletion scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
const schemaBuilder = require('@ideditor/schema-builder');
import schemaBuilder from '@ideditor/schema-builder';

schemaBuilder.validate();

0 comments on commit 4df0dd3

Please sign in to comment.