Merge pull request #3095 from kingthorin/schema-validate

Update schema.json and implement minor compliance change in apps.json
main
Elbert Alias 5 years ago committed by GitHub
commit a2e0b3b989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,19 +1,25 @@
{ {
"title": "Wappalyzer Schema", "title": "Wappalyzer Schema",
"definitions": {
"non-empty-non-blank-sting": {
"type": "string",
"pattern": "^(?!\\s*$).+"
}
},
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"required": ["categories","apps"],
"properties": { "properties": {
"$schema": { "$schema": {
"type": "string" "type": "string"
}, },
"categories": { "categories": {
"type": "object", "type": "object",
"required": true, "minProperties": 64,
"additionalProperties": false, "additionalProperties": false,
"patternProperties": { "patternProperties": {
"^[0-9]+$": { "^[0-9]+$": {
"type": "object", "type": "object",
"required": true,
"properties": { "properties": {
"priority": { "priority": {
"type": "number" "type": "number"
@ -27,89 +33,124 @@
}, },
"apps": { "apps": {
"type": "object", "type": "object",
"required": true,
"additionalProperties": { "additionalProperties": {
"additionalProperties": false, "additionalProperties": false,
"required": ["cats","website"],
"properties": { "properties": {
"cats": { "cats": {
"type": "array", "type": "array",
"items": { "items": {
"type": "number" "type": "number"
}, },
"required": true "minItems": 1
}, },
"cpe": { "cpe": {
"type": "string" "$ref": "#/definitions/non-empty-non-blank-sting"
}, },
"cookies": { "cookies": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": false,
"type": "string" "patternProperties": {
"^.+$": {
},
"additionalProperties": {
"type": "string"
}
} }
}, },
"js": { "js": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": false,
"type": "string" "patternProperties": {
"^.+$": {
},
"additionalProperties": {
"type": "string"
}
} }
}, },
"headers": { "headers": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": false,
"type": "string" "patternProperties": {
"^.+$": {
},
"additionalProperties": {
"type": "string"
}
} }
}, },
"html": { "html": {
"type": [ "oneOf": [
"string", {
"array" "type": "array",
], "items": {
"items": { "$ref": "#/definitions/non-empty-non-blank-sting"
"type": "string" }
} },
{
"$ref": "#/definitions/non-empty-non-blank-sting"
}
]
}, },
"excludes": { "excludes": {
"type": [ "oneOf": [
"string", {
"array" "type": "array",
], "items": {
"items": { "$ref": "#/definitions/non-empty-non-blank-sting"
"type": "string" }
} },
{
"$ref": "#/definitions/non-empty-non-blank-sting"
}
]
}, },
"implies": { "implies": {
"type": [ "oneOf": [
"string", {
"array" "type": "array",
], "items": {
"items": { "$ref": "#/definitions/non-empty-non-blank-sting"
"type": "string" }
} },
{
"$ref": "#/definitions/non-empty-non-blank-sting"
}
]
}, },
"meta": { "meta": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": false,
"type": "string" "patternProperties": {
"^.+$": {
},
"additionalProperties": {
"type": "string"
}
} }
}, },
"script": { "script": {
"type": [ "oneOf": [
"string", {
"array" "type": "array",
], "items": {
"items": { "$ref": "#/definitions/non-empty-non-blank-sting"
"type": "string" }
} },
{
"$ref": "#/definitions/non-empty-non-blank-sting"
}
]
}, },
"url": { "url": {
"type": "string" "$ref": "#/definitions/non-empty-non-blank-sting"
}, },
"website": { "website": {
"type": "string", "$ref": "#/definitions/non-empty-non-blank-sting"
"required": true
}, },
"icon": { "icon": {
"type": "string" "$ref": "#/definitions/non-empty-non-blank-sting"
} }
} }
} }

@ -1608,7 +1608,6 @@
32 32
], ],
"html": "<meta property=\"cf:app_domain\" content=\"app\\.clickfunnels\\.com\"", "html": "<meta property=\"cf:app_domain\" content=\"app\\.clickfunnels\\.com\"",
"env": "Clickfunnels",
"icon": "ClickFunnels.png", "icon": "ClickFunnels.png",
"website": "https://www.clickfunnels.com" "website": "https://www.clickfunnels.com"
}, },

Loading…
Cancel
Save