mirror of
https://github.com/tiennm99/is-amazing.git
synced 2026-10-11 08:59:58 +00:00
52 lines
983 B
JSON
52 lines
983 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"subdomain": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string",
|
|
"format": "email"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["A", "CNAME", "TXT", "MX"]
|
|
}
|
|
},
|
|
"required": ["subdomain", "email"],
|
|
"additionalProperties": false,
|
|
"if": {
|
|
"anyOf": [
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"const": "CNAME"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"not": {
|
|
"required": ["type"]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"then": {
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"pattern": "^(https?://)?(?:[a-zA-Z0-9-]+\\.){1,}(?:[a-zA-Z0-9-]{2,})\\/?$"
|
|
}
|
|
},
|
|
"required": ["url"]
|
|
},
|
|
"else": {}
|
|
}
|
|
}
|