Create domain-schema.json

This commit is contained in:
Joab authored and GitHub committed 2023-12-30 01:19:35 +08:00
1 parent 455131bdff
commit d80d43c8ed
1 file changed
+26
+26
View File
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"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"]
}
},
"required": ["subdomain", "url", "email"],
"additionalProperties": false
}
}