awesome-privacy/lib/schema.json
Alicia Sykes 2fec6f757d Improves the validation script.
- Updates Python deps
- Only run pip install on first time
- Corrections to the schema
- Adds missing URL field to Picocrypt to avoid failure
- Improves the script, with neater output, proper error codes, colors,
  etc
2026-02-22 15:30:18 +00:00

85 lines
3.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"categories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"services": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"description": { "type": "string" },
"url": { "type": "string" },
"github": { "type": ["string", "null"] },
"icon": { "type": ["string", "null"] },
"followWith": { "type": ["string", "null"] },
"securityAudited": { "type": ["boolean", "null"] },
"openSource": { "type": ["boolean", "null"] },
"acceptsCrypto": { "type": ["boolean", "null"] },
"tosdrId": { "type": ["number", "null"] },
"iosApp": { "type": ["string", "null"] },
"androidApp": { "type": ["string", "null"] },
"discordInvite": { "type": ["string", "null"] },
"subreddit": { "type": ["string", "null"] }
},
"required": ["name", "description", "url"],
"additionalProperties": false
}
},
"intro": { "type": ["string", "null"] },
"notableMentions": {
"oneOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"description": { "type": "string" },
"url": { "type": "string" }
},
"required": ["name", "url"],
"additionalProperties": false
}
},
{ "type": "string" },
{ "type": "null" }
]
},
"furtherInfo": { "type": ["string", "null"] },
"wordOfWarning": { "type": ["string", "null"] },
"alternativeTo": {
"oneOf": [
{
"type": "array",
"items": { "type": "string" }
},
{ "type": "null" }
]
}
},
"required": ["name", "services"],
"additionalProperties": false
}
}
},
"required": ["name", "sections"],
"additionalProperties": false
}
}
},
"required": ["categories"],
"additionalProperties": false
}