Skip to content

generate column hints from nested Pydantic models #2411

@rudolfix

Description

@rudolfix

Background
With #2165 completed we can generate column hints for nested tables from Pydantic models. The goal is to modify make_hints and apply_hints to generate nested_hints containing column definitions found in nested Pydantic models.

Requirements

    • modify or add a new function to pydantic.py that will recursively find nested tables (that correspond to lists of Pydantic models)
    • use the above to generate nested hints (only columns I assume) in make_hints and apply_hints.
    • if nested_hints are already provided, merge hints from Pydantic with provided hints (enough to replace columns)
    • write tests and docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    integrationIntegration with external libraries

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions