mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-14 02:16:23 +00:00
Merge branch 'main' into patch-1
This commit is contained in:
3 files changed
+3
-16
No files matched your search
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"domain": "is-cool.dev",
|
||||
"subdomain": "*.akhil",
|
||||
|
||||
"owner": {
|
||||
"email": "codingicpc@gmail.com"
|
||||
},
|
||||
|
||||
"record": {
|
||||
"A": ["73.118.11.31"]
|
||||
},
|
||||
|
||||
"proxied": false
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
"subdomain": "sdheeraj",
|
||||
|
||||
"owner": {
|
||||
"email": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
|
||||
"OWL": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJfaWQiOiIxMzE4NDk3NjUiLCJ1c2VybmFtZSI6IjE3c2RoZWVyYWoiLCJlbWFpbCI6IjE3c2RoZWVyYWpAd2luZ2Fyci5ldS5vcmcifSwiZXhwaXJlc0luIjoiOTk5OXkiLCJpYXQiOjE3MjE1MzM2ODJ9.7wMG7oM75_RVLS7uWP0b0gqJOP_v9jsfxRq-UcqPlgM"
|
||||
},
|
||||
|
||||
"record": {
|
||||
|
||||
+2
-1
@@ -3,7 +3,7 @@ const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
|
||||
const requiredFields = {
|
||||
//owner: "object",
|
||||
owner: "object",
|
||||
record: "object"
|
||||
};
|
||||
|
||||
@@ -66,6 +66,7 @@ t("All files should have valid optional owner fields", (t) => {
|
||||
const data = fs.readJsonSync(path.join(domainsPath, file));
|
||||
|
||||
validateOptionalFields(t, data, optionalOwnerFields, file);
|
||||
validateOptionalFields(t, data.owner, optionalOwnerFields, file);
|
||||
|
||||
if (data.owner.email) {
|
||||
t.regex(data.owner.email, emailRegex, `${file}: Owner email should be a valid email address`);
|
||||
|
||||
Reference in new issue
Block a user