diff --git a/.github/workflows/domain-schema.json b/.github/workflows/domain-schema.json index 451301c..caab21b 100644 --- a/.github/workflows/domain-schema.json +++ b/.github/workflows/domain-schema.json @@ -1,23 +1,26 @@ { "$schema": "http://json-schema.org/draft-07/schema", - "type": "object", - "properties": { - "subdomain": { - "type": "string" + "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"] + } }, - "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 + "required": ["subdomain", "url", "email"], + "additionalProperties": false + } }