Skip to content

int field conceals zero #191

@lnobrega-canarie

Description

@lnobrega-canarie

A field with type int conceals the value zero.

If I want to have a zero value, I must type a zero in the field. It will be invisible, but the backend receives it.

If the field is mandatory and I leave it empty, the validation fails.

To reproduce:

fastapi dev int_test.py

https://github.com/lnobrega-canarie/pydantic-forms-ui/blob/int-test-py/backend/int_test.py

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions