Skip to content

Conversation

@leseb
Copy link
Collaborator

@leseb leseb commented Oct 28, 2025

What does this PR do?

Removes the need for the strong_typing and pyopenapi packages and purely use Pydantic for schema generation.

NOTE: still needs more love but heading in the right direction, will resume tomorrow.

Removes the need for the strong_typing and pyopenapi packages and purely
use Pydantic for schema generation.

Signed-off-by: Sébastien Han <[email protected]>
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 28, 2025
@ashwinb
Copy link
Contributor

ashwinb commented Oct 28, 2025

This is amazing, thanks for it. It will reduce a lot of random complexity in the openapi generator.

@ashwinb
Copy link
Contributor

ashwinb commented Oct 28, 2025

The only comment I have is the removal of json_schema_type and not keeping some equivalent marker annotation.

In the current implementation, we use this annotations implicitly to generate a top-level "component schema" in the YAML. If we make every BaseModel be a top-level component schema, the yaml becomes harder to consume in a few places due to annoying indirection. Simple things which are just used once in the API are often best situated as inline objects
(so no $ref pointing to something else but just an inline type: object)

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

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants