Skip to content

Pydantic model: validators not taken into account #412

Description

@payno

Currently, for ewoks-orange widgets, when a task is provided with a pydantic model, its typing is taken into account when checking link types.

However, when a field validator exists — as in the darfix example — only the declared field types are taken into account, even if the validator effectively "extends" the set of accepted types.

It would be good to take validators into account as well (implicitly if possible, or otherwise by allowing them to be redefined).

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