Skip to content

[Form] Add support for displaying nested options in DebugCommand #59871

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

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Feb 27, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

Addressing #59618 (comment)

$ bin/console debug:form FooType baz --format=json

being baz a nested option of the FooType, output example in JSON format:

{
    "required": false,
    "default": [],
    "is_lazy": false,
    "has_normalizer": false,
    "has_nested_options": true,
    "nested_options": {
        "foo": {
            "required": true,
            "default": true,
            "is_lazy": false,
            "has_normalizer": false,
            "has_nested_options": false
        },
        "bar": {
            "required": false,
            "default": true,
            "is_lazy": false,
            "has_normalizer": false,
            "has_nested_options": false
        }
    }
}

The new additions here are the has_nested_options and nested_options entries.

Cheers!

@alexandre-daubois
Copy link
Member

I've been a bit quick 🙂 Low-deps failures are related to this PR it seems

@OskarStark OskarStark changed the title [Form] Add support for displaying nested options in DebugCommand [Form] Add support for displaying nested options in DebugCommand Feb 27, 2025
@yceruto yceruto force-pushed the form_command_nested branch from 8bb0fb9 to 2a6d2d4 Compare February 27, 2025 12:33
@yceruto
Copy link
Member Author

yceruto commented Feb 27, 2025

I've been a bit quick 🙂 Low-deps failures are related to this PR it seems

It should be good now 👍

@fabpot
Copy link
Member

fabpot commented Mar 1, 2025

Thank you @yceruto.

@fabpot fabpot merged commit 959bbc6 into symfony:7.3 Mar 1, 2025
9 of 11 checks passed
@yceruto yceruto deleted the form_command_nested branch March 1, 2025 16:11
@fabpot fabpot mentioned this pull request May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants