-
Notifications
You must be signed in to change notification settings - Fork 0
uuid
Majid Ahmaditabar edited this page Dec 11, 2021
·
4 revisions
- The field under validation must be a valid RFC 4122 universally unique identifier (UUID).
data = %{
uuid_1: "56b2724e-9074-4dc3-9803-4bb13c92ee0e",
uuid_2: "56b2-9074-4dc3-9803-4bb13c9", ---> not UUID
}
rules = [
%{
field: "uuid_1",
validate: ["uuid"]
},
%{
field: "uuid_2",
validate: ["uuid"]
},
]