Commit 2576082a90
Unsigned
Layout: unified · split
lib/schema.json added +77
| @@ -0,0 +1,77 @@ | |||
| 1 | { | ||
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", | ||
| 3 | "type": "object", | ||
| 4 | "properties": { | ||
| 5 | "categories": { | ||
| 6 | "type": "array", | ||
| 7 | "items": { | ||
| 8 | "type": "object", | ||
| 9 | "properties": { | ||
| 10 | "name": { "type": "string" }, | ||
| 11 | "sections": { | ||
| 12 | "type": "array", | ||
| 13 | "items": { | ||
| 14 | "type": "object", | ||
| 15 | "properties": { | ||
| 16 | "name": { "type": "string" }, | ||
| 17 | "services": { | ||
| 18 | "type": "array", | ||
| 19 | "items": { | ||
| 20 | "type": "object", | ||
| 21 | "properties": { | ||
| 22 | "name": { "type": "string" }, | ||
| 23 | "description": { "type": "string" }, | ||
| 24 | "url": { "type": "string" }, | ||
| 25 | "github": { "type": "string", "nullable": true }, | ||
| 26 | "icon": { "type": "string", "nullable": true }, | ||
| 27 | "followWith": { "type": "string", "nullable": true }, | ||
| 28 | "securityAudited": { "type": "boolean", "nullable": true }, | ||
| 29 | "openSource": { "type": "boolean", "nullable": true }, | ||
| 30 | "acceptsCrypto": { "type": "boolean", "nullable": true }, | ||
| 31 | "tosdrId": { "type": "number", "nullable": true } | ||
| 32 | }, | ||
| 33 | "required": ["name", "description", "url"], | ||
| 34 | "additionalProperties": false | ||
| 35 | } | ||
| 36 | }, | ||
| 37 | "intro": { "type": "string", "nullable": true }, | ||
| 38 | "notableMentions": { | ||
| 39 | "oneOf": [ | ||
| 40 | { | ||
| 41 | "type": "array", | ||
| 42 | "items": { | ||
| 43 | "type": "object", | ||
| 44 | "properties": { | ||
| 45 | "name": { "type": "string" }, | ||
| 46 | "description": { "type": "string" }, | ||
| 47 | "url": { "type": "string" } | ||
| 48 | }, | ||
| 49 | "required": ["name", "url"], | ||
| 50 | "additionalProperties": false | ||
| 51 | } | ||
| 52 | }, | ||
| 53 | { "type": "string" } | ||
| 54 | ], | ||
| 55 | "nullable": true | ||
| 56 | }, | ||
| 57 | "furtherInfo": { "type": "string", "nullable": true }, | ||
| 58 | "wordOfWarning": { "type": "string", "nullable": true }, | ||
| 59 | "alternativeTo": { | ||
| 60 | "type": "array", | ||
| 61 | "items": { "type": "string" }, | ||
| 62 | "nullable": true | ||
| 63 | } | ||
| 64 | }, | ||
| 65 | "required": ["name", "services"], | ||
| 66 | "additionalProperties": false | ||
| 67 | } | ||
| 68 | } | ||
| 69 | }, | ||
| 70 | "required": ["name", "sections"], | ||
| 71 | "additionalProperties": false | ||
| 72 | } | ||
| 73 | } | ||
| 74 | }, | ||
| 75 | "required": ["categories"], | ||
| 76 | "additionalProperties": false | ||
| 77 | } | ||