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.

@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)

@leseb leseb force-pushed the rm-strong-typing-openapi-gen branch 4 times, most recently from cdbce6c to e339650 Compare October 30, 2025 13:14
leseb added a commit to leseb/llama-stack that referenced this pull request Oct 30, 2025
While working on llamastack#3944 I
realized that the batches API wasn't generated.

Signed-off-by: Sébastien Han <[email protected]>
ashwinb pushed a commit that referenced this pull request Oct 30, 2025
# What does this PR do?

While working on #3944 I
realized that the batches API wasn't generated.

Signed-off-by: Sébastien Han <[email protected]>
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]>
@leseb leseb force-pushed the rm-strong-typing-openapi-gen branch from e339650 to dd67339 Compare October 30, 2025 14:27
cdoern pushed a commit to cdoern/llama-stack that referenced this pull request Oct 30, 2025
While working on llamastack#3944 I
realized that the batches API wasn't generated.

Signed-off-by: Sébastien Han <[email protected]>
Signed-off-by: Charlie Doern <[email protected]>
@leseb leseb marked this pull request as draft October 30, 2025 16:56
Signed-off-by: Sébastien Han <[email protected]>
@leseb leseb force-pushed the rm-strong-typing-openapi-gen branch from fe54754 to f59b570 Compare October 31, 2025 08:41
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