Skip to content

Invalid uuid validated #59

@datafoo

Description

@datafoo

A uuid with characters outside the hexadecimal characters is wrongly validated.

Example: a462cc9d-4322-4c96-a195-f8e1b00881fg

iex(1)> Vex.Validators.Uuid.validate("a462cc9d-4322-4c96-a195-f8e1b00881fg", format: :default)
:ok
iex(2)> UUID.info("a462cc9d-4322-4c96-a195-f8e1b00881fg")
{:error,
 "Invalid argument; Not a valid UUID: a462cc9d-4322-4c96-a195-f8e1b00881fg"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions