Skip to content

Remove Pydantic RootModels from types module #1737

Closed

Description

@maxisbey

Summary

Remove the use of Pydantic RootModel wrappers in the types module where they add complexity without clear benefit.

Motivation

  • RootModels add indirection that makes the types harder to work with
  • Many of these could be replaced with simpler type aliases or direct types
  • The types should ideally be generated from the spec, and RootModels complicate that path

Related

  • Part of broader types.py restructuring for v2

AI Disclaimer

Activity

  1. added
    v2Affects the v2 line (2.x on main)
    enhancementRequest for a new feature that's not currently supported
    P1Significant bug affecting many users, highly requested feature
    breaking changeWill break existing deployments when updated without changes
    on Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1Significant bug affecting many users, highly requested featurebreaking changeWill break existing deployments when updated without changesenhancementRequest for a new feature that's not currently supportedv2Affects the v2 line (2.x on main)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions