Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Add :blank boolean option. #2

Open
nicolasdespres opened this issue May 21, 2013 · 0 comments
Open

Add :blank boolean option. #2

nicolasdespres opened this issue May 21, 2013 · 0 comments

Comments

@nicolasdespres
Copy link
Owner

Should be used like that:

StringSchema.new(blank: false).validate?("")  #=> false
StringSchema.new(blank: true).validate?("")  #=> true

Must:

  • Use ActiveSupport blank? method.
  • How to we convert it in json-schema.org?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant