Skip to content

Conversation

@leseb
Copy link
Collaborator

@leseb leseb commented Nov 4, 2025

What does this PR do?

Draft branch on top of #3944, which include FastAPI router, Path, Route object including a rework of all fields using Pydantic Fields.
With this the generation comes purely from Pydantic, the generator itself is 800~ lines of code.

The routers addition is helping the auto-generation too, by using common fields like prefix, responses, summary, description. All of that being picked up and auto-generated. No more :param sphinx style as docstrings, no more docstring parsing.

leseb added 6 commits November 4, 2025 10:02
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]>
Signed-off-by: Sébastien Han <[email protected]>
Signed-off-by: Sébastien Han <[email protected]>
Signed-off-by: Sébastien Han <[email protected]>
Signed-off-by: Sébastien Han <[email protected]>
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 Nov 4, 2025
@leseb leseb closed this Nov 4, 2025
@leseb leseb deleted the router branch November 4, 2025 17:26
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.

1 participant