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.
It would be great to be able to check if a string is included in a set of values, and prevent other values from being used.
Describe the solution you'd like
Create a rule that will check if all values are in the set of authorized values.
import*asKryptonianfrom"kryptonian";Kryptonian.Kalel.string({message: "It should be a stirng",rules: [Kryptonian.Kalel.String.oneOf({message: "It should be one of the following values: Haskell, Elm or Roc",values: ["Haskell","Elm","Roc"]})]});// Omiting the messageKryptonian.Kalel.string({message: "It should be a stirng",rules: [Kryptonian.Kalel.String.oneOf({values: ["Haskell","Elm","Roc"]})]});
Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It would be great to be able to check if a string is included in a set of values, and prevent other values from being used.
Describe the solution you'd like
Create a rule that will check if all values are in the set of authorized values.
Describe alternatives you've considered
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: