Feature Request: Built-in OpenAPI/Swagger Documentation Generation #173
youssefmzouri
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Traditionally the mojo frameworks always left OpenAPI to plugins. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to suggest adding native OpenAPI documentation generation to mojo.js, similar to what FastAPI or NestJS provide.
Currently, we have to maintain API documentation separately from our route definitions, which leads to outdated docs, code duplication, and many teams just skipping documentation altogether. Other frameworks solve this by generating OpenAPI specs automatically from route definitions.
This would include automatic OpenAPI 3.0 generation, built-in Swagger UI, and optional request/response validation. The feature should be opt-in to maintain backward compatibility and have minimal runtime overhead.
Question for the community:
I'd be happy to help develop this if there's interest from maintainers and the community!
Beta Was this translation helpful? Give feedback.
All reactions