Update domain-schema.json

This commit is contained in:
Joab authored and GitHub committed 2023-12-30 00:27:43 +08:00
1 parent 7121c54c51
commit c94de9b448
1 file changed
+22 -19
+22 -19
View File
@@ -1,23 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"subdomain": {
"type": "string"
"type": "array",
"items": {
"type": "object",
"properties": {
"subdomain": {
"type": "string"
},
"url": {
"type": "string",
"pattern": "^(https?://)?(?:[a-zA-Z0-9-]+\\.){1,}(?:[a-zA-Z0-9-]{2,})\\/?$"
},
"email": {
"type": "string",
"format": "email"
},
"type": {
"type": "string",
"enum": ["A", "CNAME", "TXT", "MX"]
}
},
"url": {
"type": "string",
"pattern": "^(https?://)?(?:[a-zA-Z0-9-]+\\.){1,}(?:[a-zA-Z0-9-]{2,})\\/?$"
},
"email": {
"type": "string",
"format": "email"
},
"type": {
"type": "string",
"enum": ["A", "CNAME", "TXT", "MX"]
}
},
"required": ["subdomain", "url", "email"],
"additionalProperties": false
"required": ["subdomain", "url", "email"],
"additionalProperties": false
}
}