Skip to content

Deserialization in requests is not working #252

@vanam

Description

@vanam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage: Now

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions