Skip to content

Make Validator::complete required #496

Closed
@dmontagu

Description

@dmontagu

Removing the need for complete() is hard, it might even be impossible, definitely not with the hassle now.

Making complete required is very simple and probably worthwhile, feel free to do it here or create an issue.

Originally posted by @samuelcolvin in #494 (review)

The reason to do this is that it's easy to add a new validator type in pydantic core and forget that you need to implement this method if it references other validators (otherwise your DefinitionRefValidator-produced loc's will be wrong)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions