Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Type pydantic.types.UUID4 is unknown. #328

Closed
genme opened this issue May 25, 2023 · 1 comment
Closed

ValueError: Type pydantic.types.UUID4 is unknown. #328

genme opened this issue May 25, 2023 · 1 comment

Comments

@genme
Copy link

genme commented May 25, 2023

import uuid

import pydantic
from dataclasses_avroschema.avrodantic import AvroBaseModel

class Request(AvroBaseModel):
    request_id: pydantic.UUID4

Request(request_id=uuid.uuid4()).serialize()

# ValueError: Type <class 'pydantic.types.UUID4'> is unknown.
@marcosschroh
Copy link
Owner

Hi @genme

Pydantic custom fields are not supported at the moment. In next releases I will add it.

marcosschroh added a commit that referenced this issue Jul 6, 2023
---------

Co-authored-by: Marcos Schroh <marcos.schroh@kpn.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants