2022-02-14 04:56:34 +01:00
export default {
2022-07-18 00:30:57 +02: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" : {
2023-06-21 17:13:09 +02:00
"description" : "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" ,
2022-07-18 00:30:57 +02:00
"anyOf" : [
{
2023-06-21 17:13:09 +02:00
"$ref" : "#/definitions/{and:TagConfigJson[];}"
2022-04-04 04:54:06 +02:00
} ,
2022-07-18 00:30:57 +02:00
{
"type" : "object" ,
"properties" : {
"or" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/TagConfigJson"
}
2022-04-04 04:54:06 +02:00
}
2022-07-18 00:30:57 +02:00
} ,
"required" : [
"or"
]
} ,
{
"type" : "string"
2022-04-04 04:54:06 +02:00
}
2022-07-18 00:30:57 +02:00
]
2022-04-04 04:54:06 +02:00
} ,
2023-06-21 17:13:09 +02:00
"{and:TagConfigJson[];}" : {
2022-07-18 00:30:57 +02:00
"type" : "object" ,
"properties" : {
"and" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/TagConfigJson"
}
2022-02-14 04:56:34 +01:00
}
2022-07-18 00:30:57 +02:00
} ,
"required" : [
"and"
]
2022-04-04 04:54:06 +02:00
} ,
2023-06-21 17:13:09 +02:00
"{or:TagConfigJson[];}" : {
2022-07-18 00:30:57 +02:00
"type" : "object" ,
"properties" : {
"or" : {
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/TagConfigJson"
}
}
} ,
"required" : [
"or"
]
}
} ,
"$schema" : "http://json-schema.org/draft-07/schema#"
2022-02-14 04:56:34 +01:00
}