Start validation documentation (re: #6100)

Add subtypes to close_nodes and unsquare_way validations
This commit is contained in:
Quincy Morgan
2019-10-09 12:43:38 +02:00
parent ffdc4d8442
commit d57807478e
3 changed files with 90 additions and 0 deletions
+2
View File
@@ -149,6 +149,7 @@ export function validationCloseNodes(context) {
issues.push(new validationIssue({
type: type,
subtype: 'detached',
severity: 'warning',
message: function(context) {
var entity = context.hasEntity(this.entityIds[0]),
@@ -216,6 +217,7 @@ export function validationCloseNodes(context) {
return new validationIssue({
type: type,
subtype: 'vertices',
severity: 'warning',
message: function(context) {
var entity = context.hasEntity(this.entityIds[0]);
+1
View File
@@ -71,6 +71,7 @@ export function validationUnsquareWay(context) {
return [new validationIssue({
type: type,
subtype: 'building',
severity: 'warning',
message: function(context) {
var entity = context.hasEntity(this.entityIds[0]);