From 90228d6673cad6322a73e0d6ae6efeb9d0d925ff Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Wed, 27 Dec 2023 19:13:44 +0800 Subject: [PATCH] Create domain-schema.json --- .github/workflows/domain-schema.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/domain-schema.json diff --git a/.github/workflows/domain-schema.json b/.github/workflows/domain-schema.json new file mode 100644 index 0000000..73b5898 --- /dev/null +++ b/.github/workflows/domain-schema.json @@ -0,0 +1,23 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object", + "properties": { + "subdomain": { + "type": "string" + }, + "url": { + "type": "string", + "pattern": "^(https?://)?(?:[a-zA-Z-]+\\.){1,}(?:[a-zA-Z-]{2,})+$" + }, + "email": { + "type": "string", + "format": "email" + }, + "type": { + "type": "string", + "enum": ["A", "AAAA", "CNAME", "TXT", "MX", "SRV", "URI"] + } + }, + "required": ["subdomain", "url", "email"], + "additionalProperties": false +}