News for hackers. Stuff that matters.
Re:Show HN: Rust Web Framework by DeathArrow on Wednesday October 23, 2024 @06:24AM (#41923604)
>I would kinda expect REST framework to be able to generate Swagger (aka OpenAPI) definitions out of the box.

Me too, but, as I understand, this is a MVC framework that is returning HTML, not a framework to build web APIs.

Re:Show HN: Rust Web Framework by throwaway313373 on Wednesday October 23, 2024 @08:38AM (#41924434)
It advertises "Built-in REST framework with JSON serialization" in the readme, that's why I asked.

Looks like it also supports some kind of models for JSON validation [0], it shouldn't be too hard to generate Swagger from them, just like FastAPI generates Swagger from Pydantic models.

[0] https://github.com/levkk/rwf/tree/main/examples/rest