Skip to content

Figure out how to add optional numbers for custom fields #80

Open
@AritroSaha10

Description

Possible in backend (just uses JSONSchema), but need to do some trickery with yup and the schema builder in order to allow optional/null numbers for certain fields. Since the value is "", it converts to NaN and trips the validation stuff.

Relevant reddit thread: https://www.reddit.com/r/reactjs/comments/13sdx7b/yup_how_to_skip_validation_when_value_is_empty/

This is really low priority because I seriously doubt we'd ever even need optional fields, let alone optional numerical fields

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions