Skip to content

Newest Pydantic generates error for some files #1174

Closed

Description

@rd-andreas-tollkoetter

Describe the bug
Huge error caused by Pydantic; too huge for my terminal to contain, so I can't copy it here.

PydanticUserError: `Parameter` is not fully defined; you should define `Header`, then call `Parameter.model_rebuild()`.

OpenAPI Spec File
catalog_database_registration_v1.yaml.zip

Desktop (please complete the following information):

  • OS: macOS 14.6
  • Python Version: 3.12.7
  • openapi-python-client version 0.21.7

Additional context
This is new in v0.21.7 and does not happen in v0.21.6.

Activity

  1. changed the title [-]v0.21.7 generates error for some files[/-] [+]Newest Pydantic generates error for some files[/+] on Dec 2, 2024
  2. rd-andreas-tollkoetter commented on Dec 2, 2024

    @rd-andreas-tollkoetter
    Author

    After doing some more experiments, I found that this is not caused by openapi-python-client itself but by Pydantic 2.10 (instead of 2.9). So it is unclear whether this is a new feature in Pydantic that now reports some before hidden error, or a bug in Pydantic that will be fixed.

  3. texhnolyze commented on Dec 3, 2024

    @texhnolyze

    This is also discussed in: #1171

  4. dbanty commented on Dec 24, 2024

    @dbanty
    Collaborator

    It was a breaking change in Pydantic. #1176 adapts to it, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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