diff --git a/dataset.schema.json b/dataset.schema.json new file mode 100644 index 0000000..ea29397 --- /dev/null +++ b/dataset.schema.json @@ -0,0 +1,43 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema", + "type": "object", + "patternProperties": { + ".+": { + "type": "object", + "properties": { + "title": { "type": "string" }, + "slug": { "type": "string" }, + "stars": { "type": "integer" }, + "forks": { "type": "integer" }, + "data": { "type": "object" }, + "owner": { "type": "object" }, + "owner_name": { "type": "string" }, + "owner_slug": { "type": "string" }, + "s": { "type": "integer" }, + "e": { "type": "integer" }, + "i": { "type": "integer" }, + "a": { "type": "integer" }, + "t": { "type": "integer" }, + "l": { "type": "integer" }, + "tech": { "type": "array", "items": { "type": "string" } } + }, + "required": [ + "title", + "slug", + "stars", + "forks", + "data", + "owner", + "owner_name", + "owner_slug", + "s", + "e", + "i", + "a", + "t", + "l", + "tech" + ] + } + } +} \ No newline at end of file diff --git a/security_rules_schema.json b/security_rules_schema.json new file mode 100644 index 0000000..f87b95b --- /dev/null +++ b/security_rules_schema.json @@ -0,0 +1,74 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "patternProperties": { + "^\\d+$": { + "type": "object", + "additionalProperties": false, + "properties": { + "status": { + "type": "string", + "enum": [ + "disregarded", + "observed", + "not applicable", + "unknown" + ] + }, + "argument": { + "type": "string" + }, + "artifacts": { + "type": "array", + "items": [ + { + "type": "object", + "additionalProperties": false, + "properties": { + "file": { + "type": "string" + }, + "lines": { + "type": "array", + "items": [ + { + "type": "integer" + } + ] + } + }, + "required": [ + "file", + "lines" + ] + } + ] + } + }, + "required": [ + "status", + "argument" + ] + } + }, + "required": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10", + "11", + "12", + "13", + "14", + "15", + "16", + "17", + "18" + ] +} \ No newline at end of file