Skip to content

Allow blank example #49

@nonotest

Description

@nonotest

Hello I can't get the allow_blank validator to work.
Would it be possible to add an example in the doc?

For example:

params do
   requires :foo, type: :string, allow_blank: :true
end

but sending an empty string still fails the requires validation

thanks!

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