You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -368,6 +368,11 @@ See the [location-conflation](https://github.com/ideditor/location-conflation) p
368
368
}
369
369
```
370
370
371
+
Alternatively, a string can be used to reference the `locationSet` from another field or preset:
372
+
```json
373
+
"locationSet": "{presets/man_made/crane}"
374
+
```
375
+
371
376
##### `replacement`
372
377
373
378
The ID of a preset that is preferable to this one. iD's validator will flag features matching this preset and recommend that the user upgrade the tags.
@@ -677,6 +682,11 @@ See the [location-conflation](https://github.com/ideditor/location-conflation) p
677
682
}
678
683
```
679
684
685
+
Alternatively, a string can be used to reference the `locationSet` from another field or preset:
686
+
```json
687
+
"locationSet": "{fields/crane/type}"
688
+
```
689
+
680
690
##### `urlFormat`
681
691
682
692
For `identifier` fields, the permalink URL of the external record. It must contain a `{value}` placeholder where the tag value will be inserted. For example:
Copy file name to clipboardExpand all lines: schemas/field.json
+30-21Lines changed: 30 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -311,29 +311,38 @@
311
311
}
312
312
},
313
313
"locationSet": {
314
-
"description": "An object specifying the IDs of regions where this field is or isn't valid. See: https://github.com/ideditor/location-conflation",
315
-
"type": "object",
316
-
"minProperties": 1,
317
-
"properties": {
318
-
"include": {
319
-
"type": "array",
320
-
"minItems": 1,
321
-
"uniqueItems": true,
322
-
"items": {
323
-
"type": "string"
324
-
}
314
+
"oneOf": [
315
+
{
316
+
"description": "An object specifying the IDs of regions where this field is or isn't valid. See: https://github.com/ideditor/location-conflation",
317
+
"type": "object",
318
+
"minProperties": 1,
319
+
"properties": {
320
+
"include": {
321
+
"type": "array",
322
+
"minItems": 1,
323
+
"uniqueItems": true,
324
+
"items": {
325
+
"type": "string"
326
+
}
327
+
},
328
+
"exclude": {
329
+
"type": "array",
330
+
"minItems": 1,
331
+
"uniqueItems": true,
332
+
"items": {
333
+
"type": "string"
334
+
}
335
+
}
336
+
},
337
+
"additionalProperties": false
325
338
},
326
-
"exclude": {
327
-
"type": "array",
328
-
"minItems": 1,
329
-
"uniqueItems": true,
330
-
"items": {
331
-
"type": "string"
332
-
}
339
+
{
340
+
"description": "An string referencing another preset which has a locationSet",
341
+
"type": "string",
342
+
"pattern": "^\\{.+\\}$"
333
343
}
334
-
},
335
-
"additionalProperties": false
336
-
},
344
+
]
345
+
} ,
337
346
"urlFormat": {
338
347
"description": "Permalink URL for `identifier` fields. Must contain a {value} placeholder",
0 commit comments