You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support array of regular expressions to use for value validation. Either Attribute could accept a list of regular expressions here, or we could provide some way for the type to override the type to override that behavior (so at least String can take an array of regexes).
Validate that :values are valid
Validate that :default is valid
And make the part of check_option below less weird.
Weird part:
unlessself.type.valid_type?(definition) || definition.is_a?(::Regexp) || definition.is_a?(::String) || definition.is_a?(::Array)raiseAttributorException.new("Invalid example type (got: #{definition.class.name}). It must always match the type of the attribute (except if passing Regex that is allowed for some types)")end
The text was updated successfully, but these errors were encountered:
Weird part:
The text was updated successfully, but these errors were encountered: