Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FastAPI schema when new Spec is registered #133

Open
DiamondJoseph opened this issue Aug 9, 2024 · 0 comments
Open

Update FastAPI schema when new Spec is registered #133

DiamondJoseph opened this issue Aug 9, 2024 · 0 comments

Comments

@DiamondJoseph
Copy link
Contributor

DiamondJoseph commented Aug 9, 2024

Current handling allows for dataclasses and BaseModels annotated with @uses_tagged_union to be deserialised using the Pydantic TypeAdapter that knows about the Spec/Region discriminated union.

However, the routes into the Service are not currently updated when their usage of Spec as return or input type is updated by registering a new subclass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant