mapcomplete/Docs/Schemas/ExtraLinkConfigJson.schema.json

89 lines
1.8 KiB
JSON
Raw Normal View History

2022-02-14 04:56:34 +01:00
{
"type": "object",
"properties": {
"icon": {
"type": "string"
},
"text": {},
"href": {
"type": "string"
},
"newTab": {
"type": "boolean"
},
"requirements": {
"type": "array",
"items": {
"enum": [
"iframe",
"no-iframe",
"no-welcome-message",
"welcome-message"
],
"type": "string"
}
}
},
"required": [
"href"
],
"definitions": {
"TagConfigJson": {
"description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag",
"anyOf": [
{
"$ref": "#/definitions/{and:TagConfigJson[];}"
},
{
"type": "object",
"properties": {
"or": {
"type": "array",
"items": {
"$ref": "#/definitions/TagConfigJson"
}
}
},
"required": [
"or"
]
},
{
"type": "string"
}
]
},
"{and:TagConfigJson[];}": {
2022-02-14 04:56:34 +01:00
"type": "object",
"properties": {
"and": {
"type": "array",
"items": {
"$ref": "#/definitions/TagConfigJson"
2022-02-14 04:56:34 +01:00
}
}
},
"required": [
"and"
],
"additionalProperties": false
},
"{or:TagConfigJson[];}": {
"type": "object",
"properties": {
2022-02-14 04:56:34 +01:00
"or": {
"type": "array",
"items": {
"$ref": "#/definitions/TagConfigJson"
2022-02-14 04:56:34 +01:00
}
}
},
"required": [
"or"
],
2022-02-14 04:56:34 +01:00
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}