Skip to content

Add pydantic based validation to clinvar_api models #227

@holtgrewe

Description

@holtgrewe

Is your feature request related to a problem? Please describe.
The submission schema has certain validations (e.g., minimal and maximal number of items). The schema validation results are hard to read, so using pydantic validations would improve ergonomics.

Describe the solution you'd like
Implement the validation where necessary. When a field is "required" then this is already reflected by the type annotations and the field being non-Optional.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions