We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type
Currently, to define a property type we use the enforce statement, like so
attribute :uri, enforce: [:URI, :existence, :unique]
The problem is that the validators (existence and uniqueness) are mixed with the property range (URI)
The proposition would be to add the 'type' argument and transform it like the following
attribute :URI, type: :URI , enforce: [:existence, :unique]
It will still be backward compatible because we it's only a redirection, i.e type: :uri will be added to the enforce clause in the back
type: :uri
enforce
The text was updated successfully, but these errors were encountered:
implemented in #27
Sorry, something went wrong.
syphax-bouazzouni
Successfully merging a pull request may close this issue.
Requirement
Currently, to define a property type we use the enforce statement, like so
The problem is that the validators (existence and uniqueness) are mixed with the property range (URI)
The proposition would be to add the 'type' argument and transform it like the following
It will still be backward compatible because we it's only a redirection, i.e
type: :uri
will be added to theenforce
clause in the backThe text was updated successfully, but these errors were encountered: