-
Notifications
You must be signed in to change notification settings - Fork 429
Feature request: API Swagger documentation generator #2082
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
Comments
Hi @ran-isenberg! Thank you for opening this issue. I'm moving this topic to "On Hold" because I know @heitorlessa wants to get some ideas on this and he is out this week. Thank you. |
@ran-isenberg this issue already describes it #1236 |
hey Ran, I'm closing this in favour of generating it at runtime with a new route (Swagger UI + OpenAPI generated for you): #2421 It'd be great to get your feedback from a Pydantic customer perspective - I suspect we might need a new Event Handler implementation altogether to make Pydantic a first class citizen like FastAPI. |
|
Use case
I'd like to generate swagger JSON files describing my service out of my lambda handlers functions.
I've seen utilities such as FasTAPI do that but I want a more simplified and native lambda experience.
Solution/User Experience
A simple decorator is added to the function handler. In runtime it will not do anything and will not impact performance.
However, the utility will supply a CLI command that will generate the JSON output file so it can be committed into the repository.
Similar to FastAPI it can supports the following arguments:
We can create a wrapper around FastAPI or write it from scratch.
Alternative solutions
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: