Skip to content

uuid4 doesn't works with google uuid.UUID #900

Open
@polRk

Description

@polRk
  • [+] I have looked at the documentation here first?
  • [+] I have looked at the examples provided that may showcase my question here?

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

Got an error: ["3dcf8eb3-4489-4777-af93-2ba289316e77"] is not valid value for uuid.UUID

Code sample, to showcase or reproduce:

type getContactRequest struct {
	ID uuid.UUID `uri:"id" binding:"required,uuid4"`
}

If i pass

type getContactRequest struct {
	ID string `uri:"id" binding:"required,uuid4"`
}
``` - It works

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions