Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 49 additions & 2 deletions 1/1.21.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,16 +384,17 @@
"type": {
"type": "string",
"description": "The type of the setting",
"enum": ["boolean", "positive_integer", "string", "select", "color", "integer", "untranslated"],
"enum": ["boolean", "positive_integer", "string", "select", "color", "integer", "untranslated", "number"],
"minLength": 1
},
"default": {
"type": ["boolean", "integer", "string"],
"type": ["boolean", "integer", "string", "number"],
"description": "The default value of the setting."
},
"potentialValues": {},
"min": {},
"max": {},
"step": {},
"allowTransparency": {},
"if": {
"$ref": "#/definitions/if"
Expand Down Expand Up @@ -576,6 +577,52 @@
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "number"
}
}
},
"then": {
"properties": {
"default": {
"type": "number"
},
"min": {
"type": "number",
"description": "The minimum value of the number."
},
"max": {
"type": "number",
"description": "The maximum value of the number."
},
"step": {
"type": ["number", "string"],
"description": "The step value of the number.",
"allOf": [
{
"if": {
"type": "number"
},
"then": {
"minimum": 0
}
},
{
"if": {
"type": "string"
},
"then": {
"enum": ["any"]
}
}
]
}
}
}
}
],
"required": ["name", "id", "type", "default"],
Expand Down