Skip to content

Deserializing char with ' ' #2

@ericgamamuller

Description

@ericgamamuller

Hello,
When using a char field with [TextField(__, 1)] attribute the parser considers spaces ' ' as empty '' and raises a format exception.
I'm currently using a custom formatter to avoid this.

Additionally, I liked the exception used on Custom Formatters and missed the exception when testing without custom, it would help troubleshot this kind of formatting errors because it points to the exact field that raised the exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions