Skip to content

Tiny Suggestion #84

Description

@OSonntag

I have a tiny suggestion. the rule boolean allows none boolean types to pass like 'true' or 1.

Thats totally fine, but in most cases you want the real boolean to show up in your server code. At the moment you can set booleanStrict as rule (but most devs will forget that i think, and suddenly someone write false data into a document db).

So why not allowing boolean the values 'true' 'on' 1 and so forth but when the v.data() method is called those values will automatically be converted to real booleans unless you specifiy the rule booleanPreserveType

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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