Replies: 1 comment 2 replies
-
Have you tried aide? I also help maintain it. I think it should tick most of your boxes. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Hi team 👋
I’ve been using Axum to build backend services and really appreciate its modular design, performance, and Rust-idiomatic architecture. That said, I’d like to suggest an improvement in Axum's developer tooling, especially around schema validation and OpenAPI integration.
💡 Background & Motivation
In recent projects, I explored Elysia.js—a Bun-based fullstack framework—and was impressed by its schema-first approach. It offers:
openapi-typescript
)This paradigm significantly improves DX, and makes frontend-backend collaboration much smoother.
🔎 How this relates to Axum
Rust has one major advantage: a powerful type system. In Axum, we often use typed structs with
serde
to parse requests, which is conceptually similar to Zod-based validation in TS.However, there’s no unified mechanism to extract those Rust types into OpenAPI schemas—unless we manually duplicate everything using crates like
utoipa
,schemars
, orsalvo_openapi
.And although these third-party crates work, the current developer experience feels awkward:
🧩 Suggestion
I believe Axum could benefit from a companion crate (or official pattern) that enables:
serde
,schemars
, orserde_valid
)openapi-typescript
or Rust → TS bridges)This would make Axum more attractive for fullstack use cases and help bridge the backend-frontend gap.
🧭 Philosophy
📚 References
Thanks again for the amazing work on Axum 🙌
Would love to hear your thoughts and happy to contribute if there's alignment!
Beta Was this translation helpful? Give feedback.
All reactions