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
Is your feature request related to a problem? Please describe.
In case there is no rule to be applied to a schema, the library still forces the developer to write a rule.
Describe the solution you'd like
The rules property for each schema should be optional, and default to an empty array.
import*asKryptonianfrom"kryptonian";// ThisKryptonian.Kalel.string({message: ""});// Instead of thisKryptonian.Kalel.string({rules: [].message: ""});
Describe alternatives you've considered
None.
Additional context
This would require a tiny amount of handling in the source-code, but could potentially reduce the amount of code needed to be written in the developer side.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In case there is no rule to be applied to a schema, the library still forces the developer to write a rule.
Describe the solution you'd like
The
rules
property for each schema should be optional, and default to an empty array.Describe alternatives you've considered
None.
Additional context
This would require a tiny amount of handling in the source-code, but could potentially reduce the amount of code needed to be written in the developer side.
The text was updated successfully, but these errors were encountered: