You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we built an API application using actix and have a bunch of python applications that interact with the API. As the interface is subject to frequent changes, we are looking for some tooling that allows us to generate some Python code that implements the interface and types of the endpoints of our API application, so we can actually validate/enforce the python applications to be in sync with the actix API app.
One potential solution to this I could imaging is generating OpenAPI specs using e.g. apistos or paperclip and subsequently generate pydantic classes based on the OpenAPI specs.
Haven't really tried that approach yet and hoped to maybe learn about a few other options before implementing the one option I'm aware of.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there 👋
we built an API application using actix and have a bunch of python applications that interact with the API. As the interface is subject to frequent changes, we are looking for some tooling that allows us to generate some Python code that implements the interface and types of the endpoints of our API application, so we can actually validate/enforce the python applications to be in sync with the actix API app.
One potential solution to this I could imaging is generating OpenAPI specs using e.g. apistos or paperclip and subsequently generate pydantic classes based on the OpenAPI specs.
Haven't really tried that approach yet and hoped to maybe learn about a few other options before implementing the one option I'm aware of.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions