diff --git a/domain-schema.json b/domain-schema.json new file mode 100644 index 0000000..caab21b --- /dev/null +++ b/domain-schema.json @@ -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 + } +}