You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can now remove array brackets when it has only one item. (#51)
and you can also move gui elements (e.g. "command") into the root object. (#52)
like this
{"minimum_required": "0.8.0",// no need for "gui""label": "test","command": "echo hello","components": [],// no need for array brakets [] for "help""help": {"label": "test","type": "url","url": "example.com",},}
Some new rules for
gui_definition.json
. They will make it easier for users to manage JSON files."gui"
object as root.Allow comments
C-style comments (
// ...
and/* ... */
) improve readability.Allow an object instead of an array of an object.
The array brackets
[]
(and the indnetation for them) are redundant when it has only one item.Allow the
"gui"
object as root.The root braces
{}
and the keygui
are redundant when there is only the"gui"
object.Allow trailing commas at the end of objects and arrays.
When managing json files in git, adding a trailing comma at the end of objects and arrays makes the commit history cleaner.
The text was updated successfully, but these errors were encountered: