From 674a3da9aa0b68eddaa279d73aa19362ada29930 Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Sat, 30 Dec 2023 01:17:13 +0800 Subject: [PATCH] Create domain-schema.json --- domain-schema.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 domain-schema.json 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 + } +}