From d80d43c8ed2c453b00ee3e804d5c5a798305caee Mon Sep 17 00:00:00 2001 From: Joab <89288499+Joabutt@users.noreply.github.com> Date: Sat, 30 Dec 2023 01:19:35 +0800 Subject: [PATCH] Create domain-schema.json --- .github/workflows/domain-schema.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..caab21b --- /dev/null +++ b/.github/workflows/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 + } +}