8000 Add missing required options to JSON output · symfony/symfony@d738b92 · GitHub
[go: up one dir, main page]

Skip to content

Commit d738b92

Browse files
committed
Add missing required options to JSON output
1 parent 7203a45 commit d738b92

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Symfony/Component/Form/Console/Descriptor/JsonDescriptor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ protected function describeResolvedFormType(ResolvedFormTypeInterface $resolvedF
2929
'overridden' => $this->overriddenOptions,
3030
'parent' => $this->parentOptions,
3131
'extension' => $this->extensionOptions,
32+
'required' => $this->requiredOptions,
3233
);
3334
$this->sortOptions($formOptions);
3435

src/Symfony/Component/Form/Tests/Fixtures/Descriptor/resolved_form_type_1.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"csrf_token_id",
5757
"csrf_token_manager"
5858
]
59-
}
59+
},
60+
"required": []
6061
},
6162
"parent_types": [
6263
"Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType"

0 commit comments

Comments
 (0)
0