mirror of
https://github.com/tiennm99/is-amazing.git
synced 2026-10-14 02:17:52 +00:00
Update domain-schema.json
This commit is contained in:
1 file changed
+22
-19
@@ -1,23 +1,26 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"type": "object",
|
"type": "array",
|
||||||
"properties": {
|
"items": {
|
||||||
"subdomain": {
|
"type": "object",
|
||||||
"type": "string"
|
"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": {
|
"required": ["subdomain", "url", "email"],
|
||||||
"type": "string",
|
"additionalProperties": false
|
||||||
"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
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user