oatpp-swagger icon indicating copy to clipboard operation
oatpp-swagger copied to clipboard

To use "application/x-www-form-urlencoded" with readBodyDtoAsync

Open remioukrat opened this issue 2 years ago • 1 comments

If we want to a consume DTO like this info->addConsumes<Object<MyDTO>>("application/x-www-form-urlencoded");

when we try to read DTO like this return request->readBodyToDtoAsync<Object<MyDTO>>(controller->getDefaultObjectMapper()).callbackTo(&MyClass::MyCallback);

There is a problem with the bodyDecoder and the callback is not called.

remioukrat avatar Dec 20 '22 08:12 remioukrat