mirror of
https://github.com/tiennm99/is-amazing.git
synced 2026-10-11 08:59:58 +00:00
Create domain-schema.json
This commit is contained in:
1 file changed
+26
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user