okapi
okapi copied to clipboard
OpenAPI (AKA Swagger) document generation for Rust projects
works with https://github.com/GREsau/okapi/issues/160
https://github.com/Redocly/redoc
If I want to specify the full path to endpoints in `openapi_get_routes_spec` (or any other macro), I get the `expected identifier` error from Rust-analyzer. The Rust compiler itself doesn't complain,...
Hello! My goal is to produce an OpenApi spec using schemars. I have a code: ```rust let my_schemas: okapi::Map:: = ... // generated by schemars ^0.8 OpenApi { openapi: "3.0.0".to_string(),...
Enum fields like `allow_reserved` in `ParameterValue` is not following the serde rename: https://github.com/GREsau/okapi/blob/d3bc6583dd828d37dc22f010ca8d51bfd1866a0a/okapi/src/openapi3.rs#L276-L298 It needs `rename_all_fields` specified to work on the enum fields: https://serde.rs/container-attrs.html This causes it to fail OpenAPI...
I am trying to make an endpoint that receives a file in a multipart formdata, but when I try to put the type for the argument in the function I...
## Description This PR adds derive macro for the [`OpenApiResponderInner`](https://docs.rs/rocket_okapi/latest/rocket_okapi/response/trait.OpenApiResponderInner.html) trait. It's fully compatible with Rocket's [`Response`](https://api.rocket.rs/v0.5/rocket/derive.Responder) derive macro. Also, to reduce code generation, add `set_description` function to utils. This...
Just fixed a small typo in the README.md
Hi there. Is there any way i can tell openapi to take concrete type? For example, i created this route and when documentation generated, request body type of **data** argument...
[`#[schemars(extend(...))]`](https://graham.cool/schemars/deriving/attributes/#extend) would help unblock my use-case, please upgrade `[email protected]` to `schemars@v1` if feasible