Skip to content

Commit 3c4f235

Browse files
fix: enforce strict schema validation (#8)
Added 'additionalProperties: false' to app, categories, and project schemas to prevent extra properties. Removed unused 'metadata' field from Moonlight app JSON files to align with updated schemas.
1 parent ed8984a commit 3c4f235

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

apps/moonlight/moonlight-android.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@
2626
"featured": true,
2727
"compatibility": {
2828
"sunshine": ">=0.1.0"
29-
},
30-
"metadata": {
31-
"license": "GPL-3.0"
3229
}
3330
}

apps/moonlight/moonlight-qt.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"featured": true,
1717
"compatibility": {
1818
"sunshine": ">=0.1.0"
19-
},
20-
"metadata": {
21-
"license": "GPL-3.0"
2219
}
2320
}

schemas/app.schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Schema for featured applications in the LizardByte app directory",
55
"type": "object",
66
"required": ["id", "name", "category", "description", "platforms"],
7+
"additionalProperties": false,
78
"properties": {
89
"id": {
910
"type": "string",
@@ -81,6 +82,7 @@
8182
},
8283
"compatibility": {
8384
"type": "object",
85+
"additionalProperties": false,
8486
"properties": {
8587
"sunshine": {
8688
"type": "string",

schemas/categories.schema.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
"description": "Schema for project-specific category definitions",
55
"type": "object",
66
"required": ["categories"],
7+
"additionalProperties": false,
78
"properties": {
89
"categories": {
910
"type": "array",
1011
"items": {
1112
"type": "object",
1213
"required": ["id", "name", "description"],
14+
"additionalProperties": false,
1315
"properties": {
1416
"id": {
1517
"type": "string",

schemas/project.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Schema for project-specific configuration",
55
"type": "object",
66
"required": ["id", "name"],
7+
"additionalProperties": false,
78
"properties": {
89
"id": {
910
"type": "string",

0 commit comments

Comments
 (0)