Skip to content

How to handle when the starting field value is present and an invalid param is sent #83

@paulcsmith

Description

@paulcsmith

Let's say you have an age : Int32 field.

You have a record with age as 32. You then fill out an HTML form and set age to thirty two. Avram will correctly say that this is invalid. The problem is that because it is invalid age.value will be the old value 32. I wonder what we should do? Is this correct behavior? We can't set it to "thirty two" because it is the wrong type. Maybe it should be nil? Or maybe this is just a weird edge case where there is no "correct" way to handle it

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarify apiRename/remove/add something to make the API easier to understanddiscussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions