Skip to content

How to refine for ValidUUID? #135

Answered by Iltotore
sergeda asked this question in Q&A
Discussion options

You must be logged in to vote

Since the standard UUID data type is always valid, there's no ValidUUID constraint for it. By default, ValidUUID is only implemented for String.

You can implement it yourself (a Constraint instance that always returns true) but in the case you sent you probably don't need ValidUUID at all.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sergeda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants