apitte-skeleton icon indicating copy to clipboard operation
apitte-skeleton copied to clipboard

Deserialization in requests is not working

Open vanam opened this issue 3 years ago • 2 comments

Hi, I have trouble deserializing a datetime object from request body.

I added birthDate field to CreateUserReqDto. Should I deserialize it manually?

In a documentation I found that DTOs should inherit Apitte\Core\Mapping\Request\BasicEntity and presumably override normalize method (which is not mentioned in the documentation). But it doesn't work.

I guess the same problem is going to be with other non-primitive types.

vanam avatar Mar 25 '21 16:03 vanam