From 1f7455fdad592c6c5baa5e3335a58c095e484de1 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Mon, 3 Sep 2018 18:45:30 +0100 Subject: [PATCH] Add missing error types 73, 74 and 75 --- data/core.yaml | 9 +++++++++ dist/locales/en.json | 12 ++++++++++++ modules/util/keepRight/errorSchema.json | 16 ++++++++++++++-- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index ac4e1a4da..0e4416504 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -981,6 +981,15 @@ en: _72: title: 'node without tags' description: 'This node is not member of any way and doesn''t have any tags.' + _73: + title: 'tracktype with no highway tag' + description: 'This way has a "tracktype" tag but no "highway" tag.' + _74: + title: 'empty tag' + description: 'This {var1} has an empty tag: "{var2}".' + _75: + title: 'name without tags' + description: 'This {var1} has a name ("{var2}") but no other tags.' _90: title: 'motorways without ref' description: 'This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag.' diff --git a/dist/locales/en.json b/dist/locales/en.json index 670a7108c..9a7e04efb 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -1198,6 +1198,18 @@ "title": "node without tags", "description": "This node is not member of any way and doesn't have any tags." }, + "_73": { + "title": "tracktype with no highway tag", + "description": "This way has a \"tracktype\" tag but no \"highway\" tag." + }, + "_74": { + "title": "empty tag", + "description": "This {var1} has an empty tag: \"{var2}\"." + }, + "_75": { + "title": "name without tags", + "description": "This {var1} has a name (\"{var2}\") but no other tags." + }, "_90": { "title": "motorways without ref", "description": "This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag." diff --git a/modules/util/keepRight/errorSchema.json b/modules/util/keepRight/errorSchema.json index 2788ede1a..11c008312 100644 --- a/modules/util/keepRight/errorSchema.json +++ b/modules/util/keepRight/errorSchema.json @@ -35,8 +35,7 @@ }, "_70": { "title": "missing tags", - "description": "This (node|way|relation) has an empty tag: "([\\w:]+)="", - "regex": true + "description": "" }, "_71": { "title": "", @@ -46,6 +45,19 @@ "title": "", "description": "This node is not member of any way and does not have any tags" }, + "_73": { + "title": "", + "description": "This way has a tracktype tag but no highway tag" + }, + "_74": { + "title": "missing tags", + "description": "This (node|way|relation) has an empty tag: "([\\w:]+)="", + "regex": true + }, + "_75": { + "description": "This (node|way|relation) has a name \\((.+)\\) but no other tag", + "regex": true + }, "_90": { "title": "motorways without ref", "description": "This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag"