Skip to content

Model can't be used since datapoint_uri validation doesn't return a value #51

@Villux

Description

@Villux

@validator("datapoint_uri", always=True)
def validate_datapoint_uri(cls, value):
if len(value) < 10:
raise ValidationError("datapoint_uri need to be at least 10 char length.")

I think pydantic validator should return the value at the end of the function? Now the model can be used only for validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions