forked from MapComplete/MapComplete
		
	chore: regenerate json scheme metadata
This commit is contained in:
		
							parent
							
								
									71125c647f
								
							
						
					
					
						commit
						00698b25ca
					
				
					 23 changed files with 617 additions and 109 deletions
				
			
		|  | @ -6,7 +6,7 @@ | |||
|       "type": "string" | ||||
|     }, | ||||
|     "options": { | ||||
|       "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|       "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|       "type": "array", | ||||
|       "items": { | ||||
|         "type": "object", | ||||
|  | @ -54,6 +54,10 @@ | |||
|           "question" | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "#": { | ||||
|       "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|       "type": "string" | ||||
|     } | ||||
|   }, | ||||
|   "required": [ | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ export default { | |||
|       "type": "string" | ||||
|     }, | ||||
|     "options": { | ||||
|       "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|       "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|       "type": "array", | ||||
|       "items": { | ||||
|         "type": "object", | ||||
|  | @ -54,6 +54,10 @@ export default { | |||
|           "question" | ||||
|         ] | ||||
|       } | ||||
|     }, | ||||
|     "#": { | ||||
|       "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|       "type": "string" | ||||
|     } | ||||
|   }, | ||||
|   "required": [ | ||||
|  |  | |||
|  | @ -368,7 +368,7 @@ | |||
|       } | ||||
|     }, | ||||
|     "filter": { | ||||
|       "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", | ||||
|       "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", | ||||
|       "anyOf": [ | ||||
|         { | ||||
|           "type": "array", | ||||
|  | @ -437,6 +437,10 @@ | |||
|         "theme-only" | ||||
|       ], | ||||
|       "type": "string" | ||||
|     }, | ||||
|     "#": { | ||||
|       "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", | ||||
|       "type": "string" | ||||
|     } | ||||
|   }, | ||||
|   "required": [ | ||||
|  | @ -654,7 +658,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -703,7 +706,6 @@ | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -773,6 +775,10 @@ | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -1047,7 +1053,26 @@ | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -1143,7 +1168,26 @@ | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -1304,7 +1348,7 @@ | |||
|           "type": "string" | ||||
|         }, | ||||
|         "options": { | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|           "type": "array", | ||||
|           "items": { | ||||
|             "type": "object", | ||||
|  | @ -1352,6 +1396,10 @@ | |||
|               "question" | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -368,7 +368,7 @@ export default { | |||
|       } | ||||
|     }, | ||||
|     "filter": { | ||||
|       "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", | ||||
|       "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", | ||||
|       "anyOf": [ | ||||
|         { | ||||
|           "type": "array", | ||||
|  | @ -437,6 +437,10 @@ export default { | |||
|         "theme-only" | ||||
|       ], | ||||
|       "type": "string" | ||||
|     }, | ||||
|     "#": { | ||||
|       "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", | ||||
|       "type": "string" | ||||
|     } | ||||
|   }, | ||||
|   "required": [ | ||||
|  | @ -650,7 +654,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -697,7 +700,6 @@ export default { | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -767,6 +769,10 @@ export default { | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -1036,7 +1042,26 @@ export default { | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -1131,7 +1156,26 @@ export default { | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -1290,7 +1334,7 @@ export default { | |||
|           "type": "string" | ||||
|         }, | ||||
|         "options": { | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|           "type": "array", | ||||
|           "items": { | ||||
|             "type": "object", | ||||
|  | @ -1338,6 +1382,10 @@ export default { | |||
|               "question" | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -488,7 +488,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -537,7 +536,6 @@ | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -607,6 +605,10 @@ | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -881,7 +883,26 @@ | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -977,7 +998,26 @@ | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -1138,7 +1178,7 @@ | |||
|           "type": "string" | ||||
|         }, | ||||
|         "options": { | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|           "type": "array", | ||||
|           "items": { | ||||
|             "type": "object", | ||||
|  | @ -1186,6 +1226,10 @@ | |||
|               "question" | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -1724,7 +1768,7 @@ | |||
|           } | ||||
|         }, | ||||
|         "filter": { | ||||
|           "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", | ||||
|           "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "type": "array", | ||||
|  | @ -1793,6 +1837,10 @@ | |||
|             "theme-only" | ||||
|           ], | ||||
|           "type": "string" | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -484,7 +484,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -531,7 +530,6 @@ export default { | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -601,6 +599,10 @@ export default { | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -870,7 +872,26 @@ export default { | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -965,7 +986,26 @@ export default { | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -1124,7 +1164,7 @@ export default { | |||
|           "type": "string" | ||||
|         }, | ||||
|         "options": { | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|           "type": "array", | ||||
|           "items": { | ||||
|             "type": "object", | ||||
|  | @ -1172,6 +1212,10 @@ export default { | |||
|               "question" | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -1704,7 +1748,7 @@ export default { | |||
|           } | ||||
|         }, | ||||
|         "filter": { | ||||
|           "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter", | ||||
|           "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "type": "array", | ||||
|  | @ -1773,6 +1817,10 @@ export default { | |||
|             "theme-only" | ||||
|           ], | ||||
|           "type": "string" | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -297,7 +297,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  |  | |||
|  | @ -293,7 +293,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  |  | |||
|  | @ -24,7 +24,6 @@ | |||
|             } | ||||
|           }, | ||||
|           "required": [ | ||||
|             "class", | ||||
|             "path" | ||||
|           ] | ||||
|         }, | ||||
|  | @ -94,6 +93,10 @@ | |||
|           "type": "string" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "#": { | ||||
|       "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|       "type": "string" | ||||
|     } | ||||
|   }, | ||||
|   "required": [ | ||||
|  | @ -310,7 +313,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  |  | |||
|  | @ -24,7 +24,6 @@ export default { | |||
|             } | ||||
|           }, | ||||
|           "required": [ | ||||
|             "class", | ||||
|             "path" | ||||
|           ] | ||||
|         }, | ||||
|  | @ -94,6 +93,10 @@ export default { | |||
|           "type": "string" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "#": { | ||||
|       "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|       "type": "string" | ||||
|     } | ||||
|   }, | ||||
|   "required": [ | ||||
|  | @ -306,7 +309,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  |  | |||
|  | @ -317,7 +317,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  |  | |||
|  | @ -313,7 +313,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  |  | |||
|  | @ -3,7 +3,26 @@ | |||
|   "type": "object", | ||||
|   "properties": { | ||||
|     "question": { | ||||
|       "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|       "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|       "anyOf": [ | ||||
|         { | ||||
|           "$ref": "#/definitions/Record<string,string>" | ||||
|         }, | ||||
|         { | ||||
|           "type": "string" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "questionHint": { | ||||
|       "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|       "anyOf": [ | ||||
|         { | ||||
|           "$ref": "#/definitions/Record<string,string>" | ||||
|         }, | ||||
|         { | ||||
|           "type": "string" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "freeform": { | ||||
|       "description": "Allow freeform text input from the user", | ||||
|  | @ -303,7 +322,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -352,7 +370,6 @@ | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -422,6 +439,10 @@ | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -3,7 +3,26 @@ export default { | |||
|   "type": "object", | ||||
|   "properties": { | ||||
|     "question": { | ||||
|       "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|       "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|       "anyOf": [ | ||||
|         { | ||||
|           "$ref": "#/definitions/Record<string,string>" | ||||
|         }, | ||||
|         { | ||||
|           "type": "string" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "questionHint": { | ||||
|       "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|       "anyOf": [ | ||||
|         { | ||||
|           "$ref": "#/definitions/Record<string,string>" | ||||
|         }, | ||||
|         { | ||||
|           "type": "string" | ||||
|         } | ||||
|       ] | ||||
|     }, | ||||
|     "freeform": { | ||||
|       "description": "Allow freeform text input from the user", | ||||
|  | @ -299,7 +318,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -346,7 +364,6 @@ export default { | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -416,6 +433,10 @@ export default { | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -242,7 +242,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -291,7 +290,6 @@ | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -361,6 +359,10 @@ | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -238,7 +238,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -285,7 +284,6 @@ export default { | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -355,6 +353,10 @@ export default { | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -81,7 +81,6 @@ | |||
|                   } | ||||
|                 }, | ||||
|                 "required": [ | ||||
|                   "class", | ||||
|                   "path" | ||||
|                 ] | ||||
|               }, | ||||
|  |  | |||
|  | @ -81,7 +81,6 @@ export default { | |||
|                   } | ||||
|                 }, | ||||
|                 "required": [ | ||||
|                   "class", | ||||
|                   "path" | ||||
|                 ] | ||||
|               }, | ||||
|  |  | |||
|  | @ -245,7 +245,6 @@ | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -294,7 +293,6 @@ | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -364,6 +362,10 @@ | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -638,7 +640,26 @@ | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -734,7 +755,26 @@ | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -895,7 +935,7 @@ | |||
|           "type": "string" | ||||
|         }, | ||||
|         "options": { | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|           "type": "array", | ||||
|           "items": { | ||||
|             "type": "object", | ||||
|  | @ -943,6 +983,10 @@ | |||
|               "question" | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -241,7 +241,6 @@ export default { | |||
|                       } | ||||
|                     }, | ||||
|                     "required": [ | ||||
|                       "class", | ||||
|                       "path" | ||||
|                     ] | ||||
|                   }, | ||||
|  | @ -288,7 +287,6 @@ export default { | |||
|                 } | ||||
|               }, | ||||
|               "required": [ | ||||
|                 "class", | ||||
|                 "path" | ||||
|               ] | ||||
|             }, | ||||
|  | @ -358,6 +356,10 @@ export default { | |||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  | @ -627,7 +629,26 @@ export default { | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -722,7 +743,26 @@ export default { | |||
|       "type": "object", | ||||
|       "properties": { | ||||
|         "question": { | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|           "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "questionHint": { | ||||
|           "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like", | ||||
|           "anyOf": [ | ||||
|             { | ||||
|               "$ref": "#/definitions/Record<string,string>" | ||||
|             }, | ||||
|             { | ||||
|               "type": "string" | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "freeform": { | ||||
|           "description": "Allow freeform text input from the user", | ||||
|  | @ -881,7 +921,7 @@ export default { | |||
|           "type": "string" | ||||
|         }, | ||||
|         "options": { | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.", | ||||
|           "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```", | ||||
|           "type": "array", | ||||
|           "items": { | ||||
|             "type": "object", | ||||
|  | @ -929,6 +969,10 @@ export default { | |||
|               "question" | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|         "#": { | ||||
|           "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer", | ||||
|           "type": "string" | ||||
|         } | ||||
|       }, | ||||
|       "required": [ | ||||
|  |  | |||
|  | @ -983,7 +983,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -1349,7 +1348,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -1763,7 +1761,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -2218,7 +2215,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -2590,7 +2586,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -2960,7 +2955,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -3330,7 +3324,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -3700,7 +3693,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -4070,7 +4062,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -4448,7 +4439,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -4821,7 +4811,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -5191,7 +5180,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -5561,7 +5549,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -5935,7 +5922,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -6305,7 +6291,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -6675,7 +6660,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -7096,7 +7080,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -7580,7 +7563,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -7977,7 +7959,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -8372,7 +8353,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -8767,7 +8747,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -9162,7 +9141,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -9557,7 +9535,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -9961,7 +9938,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -10359,7 +10335,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -10754,7 +10729,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -11149,7 +11123,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -11548,7 +11521,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -11943,7 +11915,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -12338,7 +12309,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -12742,7 +12712,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -13140,7 +13109,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -13535,7 +13503,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -13930,7 +13897,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -14329,7 +14295,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -14724,7 +14689,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -15119,7 +15083,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -15534,7 +15497,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -16018,7 +15980,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -16415,7 +16376,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -16810,7 +16770,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -17205,7 +17164,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -17600,7 +17558,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -17995,7 +17952,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -18280,8 +18236,32 @@ | |||
|       "tagRenderings", | ||||
|       "question" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "questionHint" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -18452,7 +18432,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -18921,6 +18900,16 @@ | |||
|     "type": "object", | ||||
|     "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "mappings", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -19105,8 +19094,33 @@ | |||
|       "override", | ||||
|       "question" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "override", | ||||
|       "questionHint" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -19291,7 +19305,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -19787,6 +19800,17 @@ | |||
|     "type": "object", | ||||
|     "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "override", | ||||
|       "mappings", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -19984,8 +20008,33 @@ | |||
|       "override", | ||||
|       "question" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "override", | ||||
|       "questionHint" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -20170,7 +20219,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -20666,6 +20714,17 @@ | |||
|     "type": "object", | ||||
|     "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "override", | ||||
|       "mappings", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -20880,8 +20939,33 @@ | |||
|       "renderings", | ||||
|       "question" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "renderings", | ||||
|       "questionHint" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -21066,7 +21150,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -21562,6 +21645,17 @@ | |||
|     "type": "object", | ||||
|     "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "renderings", | ||||
|       "mappings", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -21760,8 +21854,34 @@ | |||
|       "override", | ||||
|       "question" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "renderings", | ||||
|       "override", | ||||
|       "questionHint" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -21960,7 +22080,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -22483,6 +22602,18 @@ | |||
|     "type": "object", | ||||
|     "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "tagRenderings", | ||||
|       "renderings", | ||||
|       "override", | ||||
|       "mappings", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -22717,7 +22848,7 @@ | |||
|         ] | ||||
|       } | ||||
|     ], | ||||
|     "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter" | ||||
|     "description": "All the extra questions for filtering.\nIf a string is given, mapComplete will search in 'filters.json' for the appropriate filter or will try to parse it as `layername.filterid` and us that one" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|  | @ -22735,7 +22866,7 @@ | |||
|       "options" | ||||
|     ], | ||||
|     "type": "array", | ||||
|     "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer." | ||||
|     "description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer.\n\nAn example which searches by name:\n\n```\n{\n      \"id\": \"shop-name\",\n      \"options\": [\n        {\n          \"fields\": [\n            {\n              \"name\": \"search\",\n              \"type\": \"string\"\n            }\n          ],\n          \"osmTags\": \"name~i~.*{search}.*\",\n          \"question\": {\n            \"en\": \"Only show shops with name {search}\",\n          }\n        }\n      ]\n    }\n    ```" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|  | @ -22889,6 +23020,15 @@ | |||
|     "type": "string", | ||||
|     "description": "If name is `search`, use  \"_first_comment~.*{search}.*\" as osmTags" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "filter", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments or to disable a check\n\n\"ignore-possible-duplicate\": disables a check in `DetectDuplicateFilters` which complains that a filter can be replaced by a filter from the `filters`-library-layer" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  | @ -23340,6 +23480,14 @@ | |||
|     "type": "string", | ||||
|     "description": "If set, synchronizes whether or not this layer is enabled.\n\nno: Do not sync at all, always revert to default\nlocal: keep selection on local storage\ntheme-only: sync via OSM, but this layer will only be toggled in this theme\nglobal: all layers with this ID will be synced accross all themes" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments and/or to disable some checks\n\nno-question-hint-check: disables a check in MiscTagRenderingChecks which complains about 'div', 'span' or 'class=subtle'-HTML elements in the tagRendering" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "layers", | ||||
|  |  | |||
|  | @ -8,8 +8,30 @@ | |||
|     "path": [ | ||||
|       "question" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "questionHint" | ||||
|     ], | ||||
|     "type": [ | ||||
|       { | ||||
|         "$ref": "#/definitions/Record<string,string>" | ||||
|       }, | ||||
|       { | ||||
|         "type": "string" | ||||
|       } | ||||
|     ], | ||||
|     "description": "A hint which is shown in subtle text under the question.\nThis can give some extra information on what the answer should ook like" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "freeform" | ||||
|  | @ -152,7 +174,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  | @ -567,6 +588,14 @@ | |||
|     "type": "object", | ||||
|     "description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "mappings", | ||||
|       "#" | ||||
|     ], | ||||
|     "type": "string", | ||||
|     "description": "Used for comments or to disable a validation\n\nignore-image-in-then: normally, a `then`-clause is not allowed to have an `img`-html-element as icons are preferred. In some cases (most notably title-icons), this is allowed" | ||||
|   }, | ||||
|   { | ||||
|     "path": [ | ||||
|       "id" | ||||
|  |  | |||
|  | @ -251,7 +251,6 @@ | |||
|           } | ||||
|         }, | ||||
|         "required": [ | ||||
|           "class", | ||||
|           "path" | ||||
|         ] | ||||
|       }, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue