Skip to content
Majid Ahmaditabar edited this page Dec 10, 2021 · 2 revisions

uuid

  • The field under validation must be a valid RFC 4122 universally unique identifier (UUID).

data = {
 "uuid_1": "56b2724e-9074-4dc3-9803-4bb13c92ee0e",

}

rules = {
  "uuid_1": ["required", "uuid"],
}

validate = PyValidations.make(data, rules)
Clone this wiki locally