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
If a value object is used as query parameter the generated openapi spec will lead swagger ui to pass each property ob the value object as single parameter.
VO
finalreadonlyclass Person
{
publicfunction__construct(
publicstring$firstName,
publicstring$lastName,
) {
}
}
controller action
public function personAction(
Person $person
): PersonResponse {
}
generated ur by swagger ui: path?firstName=foo&lastName=bar
expected uri: path?person[firstName]=foo&person[lastName]=bar | path?person={"firstName":"foo", "lastName":"bar"}
I am pretty sure the generated uris are not correct but cannot say which of the correctish ones should be expected.
The text was updated successfully, but these errors were encountered:
If a value object is used as query parameter the generated openapi spec will lead swagger ui to pass each property ob the value object as single parameter.
VO
controller action
generated ur by swagger ui:
path?firstName=foo&lastName=bar
expected uri:
path?person[firstName]=foo&person[lastName]=bar
|path?person={"firstName":"foo", "lastName":"bar"}
I am pretty sure the generated uris are not correct but cannot say which of the correctish ones should be expected.
The text was updated successfully, but these errors were encountered: