mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Allow validation severity to be overridden with url params
This commit is contained in:
8
API.md
8
API.md
@@ -55,6 +55,12 @@ of iD (e.g. `https://ideditor-release.netlify.app`), the following parameters ar
|
||||
* __`rtl=true`__ - Force iD into right-to-left mode (useful for testing).
|
||||
* __`source`__ - Prefills the changeset source. Pass a url encoded string.<br/>
|
||||
_Example:_ `source=Bing%3BMapillary`
|
||||
* __`validationDisable`__ - The issues identified by these types/subtypes will be disabled (i.e. Issues will not be shown at all). Each parameter value should contain a urlencoded, comma-separated list of type/subtype match rules. An asterisk `*` may be used as a wildcard.<br/>
|
||||
_Example:_ `validationDisable=crossing_ways/highway*,crossing_ways/tunnel*`
|
||||
* __`validationWarning`__ - The issues identified by these types/subtypes will be treated as warnings (i.e. Issues will be surfaced to the user but not block changeset upload). Each parameter value should contain a urlencoded, comma-separated list of type/subtype match rules. An asterisk `*` may be used as a wildcard.<br/>
|
||||
_Example:_ `validationWarning=crossing_ways/highway*,crossing_ways/tunnel*`
|
||||
* __`validationError`__ - The issues identified by these types/subtypes will be treated as errors (i.e. Issues will be surfaced to the user but will block changeset upload). Each parameter value should contain a urlencoded, comma-separated list of type/subtype match rules. An asterisk `*` may be used as a wildcard.<br/>
|
||||
_Example:_ `validationError=crossing_ways/highway*,crossing_ways/tunnel*`
|
||||
* __`walkthrough=true`__ - Start the walkthrough automatically
|
||||
|
||||
##### iD on openstreetmap.org (Rails Port)
|
||||
@@ -377,4 +383,4 @@ A "name" field must be included:
|
||||
"label": "Name",
|
||||
"placeholder": "Common name (if any)"
|
||||
}
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user