Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a value instead of an array of a value. #51

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Conversation

matyalatte
Copy link
Owner

Tuw now allows a value instead of an array of a value in JSON files. You can remove array brackets [] and indentations if an array has only one item.

{
    "gui": {
        "label": "You don't need brackets now!",
        "command": "echo %-%",
        "components": {
            "type": "text",
            "label": "Type 'Hello!'",
            "platforms": "win"
        }
    }
}

@matyalatte matyalatte changed the base branch from main to dev October 18, 2024 23:10
@matyalatte matyalatte merged commit 0db6aa5 into dev Oct 21, 2024
9 checks passed
@matyalatte matyalatte deleted the single_val_for_array branch October 21, 2024 11:36
@matyalatte matyalatte mentioned this pull request Oct 26, 2024
4 tasks
@matyalatte matyalatte mentioned this pull request Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant