|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://tmhsdigital.github.io/Free-Game-Dev-Assets/data.schema.json", |
| 4 | + "title": "Free Game Dev Assets catalog (data.json)", |
| 5 | + "description": "The shape of data.json. The build checks every payload against this file, so a renamed or retyped field fails the build until the schema changes with it. New optional fields may appear in later versions: consumers should ignore keys they do not know.", |
| 6 | + "type": "object", |
| 7 | + "required": ["generatedAt", "version", "site", "categories", "guides", "featured", "stats", "filters", "entries"], |
| 8 | + "additionalProperties": false, |
| 9 | + "properties": { |
| 10 | + "generatedAt": { "type": "string", "description": "ISO 8601 build time" }, |
| 11 | + "version": { "type": "string", "pattern": "^v\\d{4}\\.\\d{2}\\.\\d{2}", "description": "Calendar version, vYYYY.MM.DD" }, |
| 12 | + "site": { |
| 13 | + "type": "object", |
| 14 | + "required": ["title", "tagline", "repo", "siteUrl"], |
| 15 | + "properties": { |
| 16 | + "title": { "type": "string" }, |
| 17 | + "tagline": { "type": "string" }, |
| 18 | + "repo": { "type": "string" }, |
| 19 | + "baseUrl": { "type": "string" }, |
| 20 | + "siteUrl": { "type": "string" } |
| 21 | + } |
| 22 | + }, |
| 23 | + "categories": { |
| 24 | + "type": "object", |
| 25 | + "additionalProperties": { |
| 26 | + "type": "object", |
| 27 | + "required": ["label"], |
| 28 | + "properties": { |
| 29 | + "label": { "type": "string" }, |
| 30 | + "blurb": { "type": "string" }, |
| 31 | + "view": { "enum": ["cards", "list"] } |
| 32 | + } |
| 33 | + } |
| 34 | + }, |
| 35 | + "guides": { |
| 36 | + "type": "array", |
| 37 | + "items": { |
| 38 | + "type": "object", |
| 39 | + "required": ["id", "title", "path"], |
| 40 | + "properties": { |
| 41 | + "id": { "type": "string" }, |
| 42 | + "title": { "type": "string" }, |
| 43 | + "path": { "type": "string" } |
| 44 | + } |
| 45 | + } |
| 46 | + }, |
| 47 | + "featured": { |
| 48 | + "type": "array", |
| 49 | + "items": { |
| 50 | + "$ref": "#/$defs/entryBase", |
| 51 | + "properties": { "need": { "type": "string" } }, |
| 52 | + "unevaluatedProperties": false |
| 53 | + } |
| 54 | + }, |
| 55 | + "stats": { |
| 56 | + "type": "object", |
| 57 | + "required": ["total", "active", "needsReview", "deprecated", "commercialOk", "commercialVaries", "categories"], |
| 58 | + "additionalProperties": { "type": "integer", "minimum": 0 } |
| 59 | + }, |
| 60 | + "filters": { |
| 61 | + "type": "object", |
| 62 | + "required": ["licenseFamilies", "formatGroups"], |
| 63 | + "properties": { |
| 64 | + "licenseFamilies": { "type": "object", "additionalProperties": { "type": "string" } }, |
| 65 | + "formatGroups": { |
| 66 | + "type": "object", |
| 67 | + "additionalProperties": { |
| 68 | + "type": "object", |
| 69 | + "required": ["label", "formats"], |
| 70 | + "properties": { |
| 71 | + "label": { "type": "string" }, |
| 72 | + "formats": { "$ref": "#/$defs/stringList" } |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + } |
| 77 | + }, |
| 78 | + "entries": { |
| 79 | + "type": "array", |
| 80 | + "items": { "$ref": "#/$defs/entryBase", "unevaluatedProperties": false } |
| 81 | + } |
| 82 | + }, |
| 83 | + "$defs": { |
| 84 | + "stringList": { "type": "array", "items": { "type": "string" } }, |
| 85 | + "entryBase": { |
| 86 | + "type": "object", |
| 87 | + "required": [ |
| 88 | + "id", "name", "url", "category", "subcategories", "license", "commercial", "attribution_required", |
| 89 | + "formats", "tags", "added", "verified", "status", "path", "page", "summary", "thumb", |
| 90 | + "licenseFamily", "attributionClass", "licenseRank" |
| 91 | + ], |
| 92 | + "properties": { |
| 93 | + "id": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" }, |
| 94 | + "name": { "type": "string" }, |
| 95 | + "url": { "type": "string" }, |
| 96 | + "category": { "type": "string" }, |
| 97 | + "subcategories": { "$ref": "#/$defs/stringList" }, |
| 98 | + "license": { "type": "string" }, |
| 99 | + "license_spdx": { "type": "string" }, |
| 100 | + "commercial": { "enum": [true, false, "varies", "unknown"] }, |
| 101 | + "attribution_required": { "enum": [true, false, "unknown"] }, |
| 102 | + "attribution_string": { "type": "string" }, |
| 103 | + "publisher": { "type": "string" }, |
| 104 | + "formats": { "$ref": "#/$defs/stringList" }, |
| 105 | + "tags": { "$ref": "#/$defs/stringList" }, |
| 106 | + "added": { "type": ["string", "null"], "description": "YYYY-MM-DD the entry joined the catalog" }, |
| 107 | + "verified": { "type": ["string", "null"], "description": "YYYY-MM-DD the licence was last read at the source" }, |
| 108 | + "status": { "enum": ["active", "needs-review", "deprecated"] }, |
| 109 | + "path": { "type": "string" }, |
| 110 | + "page": { "type": "string" }, |
| 111 | + "summary": { "type": "string" }, |
| 112 | + "thumb": { |
| 113 | + "type": ["object", "null"], |
| 114 | + "required": ["path", "width", "height"], |
| 115 | + "additionalProperties": false, |
| 116 | + "properties": { |
| 117 | + "path": { "type": "string" }, |
| 118 | + "width": { "type": "integer", "minimum": 1 }, |
| 119 | + "height": { "type": "integer", "minimum": 1 }, |
| 120 | + "credit": { "type": "string" } |
| 121 | + } |
| 122 | + }, |
| 123 | + "grid_dimensions": { "type": "string" }, |
| 124 | + "camera_perspective": { "type": "string" }, |
| 125 | + "hardware_tags": { "$ref": "#/$defs/stringList" }, |
| 126 | + "maintenance": { "enum": ["archived", "inactive"] }, |
| 127 | + "engine_lock": { "type": "string" }, |
| 128 | + "ue_versions": { "type": "string" }, |
| 129 | + "licenseFamily": { "type": "string" }, |
| 130 | + "attributionClass": { "type": "string" }, |
| 131 | + "licenseRank": { "type": "integer", "minimum": 0 } |
| 132 | + } |
| 133 | + } |
| 134 | + } |
| 135 | +} |
0 commit comments