Create domain-schema.json

This commit is contained in:
Joab authored and GitHub committed 2023-12-27 19:13:44 +08:00
1 parent 24298a8084
commit 90228d6673
1 file changed
+23
+23
View File
@@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"subdomain": {
"type": "string"
},
"url": {
"type": "string",
"pattern": "^(https?://)?(?:[a-zA-Z-]+\\.){1,}(?:[a-zA-Z-]{2,})+$"
},
"email": {
"type": "string",
"format": "email"
},
"type": {
"type": "string",
"enum": ["A", "AAAA", "CNAME", "TXT", "MX", "SRV", "URI"]
}
},
"required": ["subdomain", "url", "email"],
"additionalProperties": false
}