Skip to content

Commit

Permalink
add settings.json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Jan 6, 2024
1 parent 7b1ef31 commit 058f91a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions schema/packs/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$id": "https://poptracker.github.io/schema/packs/settings.json",
"title": "PopTracker Pack settings",
"description": "Settings for a PopTracker pack.",
"type": "object",
"properties": {
"smooth_scaling": {
"description": "Sets scaling algorithm for items/icons. false = null = crisp, true = smooth",
"type": ["boolean", "null"],
"default": false
}
}
}
14 changes: 14 additions & 0 deletions schema/packs/strict/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$id": "https://poptracker.github.io/schema/packs/strict/settings.json",
"allOf": [
{
"$ref": "../settings.json"
},
{
"properties": {
"smooth_scaling": true
},
"additionalProperties": false
}
]
}

0 comments on commit 058f91a

Please sign in to comment.