organize and add count

This commit is contained in:
SX-9 2025-02-16 10:50:42 +07:00
commit 2b6f3e630a
6 changed files with 6 additions and 7 deletions

72
scripts/schema.json Normal file
View file

@ -0,0 +1,72 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"description": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"username": {
"type": "string"
}
},
"required": ["username"],
"additionalProperties": {
"type": "string"
}
},
"record": {
"type": "object",
"properties": {
"ALIAS": {
"type": "string"
},
"A": {
"type": "array",
"items": {
"type": "string",
"format": "ipv4"
}
},
"AAAA": {
"type": "array",
"items": {
"type": "string",
"format": "ipv6"
}
},
"CNAME": {
"type": "string"
},
"MX": {
"type": "array",
"items": {
"type": "string"
}
},
"TXT": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [],
"anyOf": [
{ "required": ["ALIAS"] },
{ "required": ["A"] },
{ "required": ["AAAA"] },
{ "required": ["CNAME"] },
{ "required": ["MX"] },
{ "required": ["TXT"] },
{ "required": ["SRV"] }
]
},
"proxied": {
"type": "boolean"
}
},
"required": ["owner", "record"]
}