okapi icon indicating copy to clipboard operation
okapi copied to clipboard

OpenAPI (AKA Swagger) document generation for Rust projects

Results 52 okapi issues
Sort by recently updated
recently updated
newest added

```rust #[derive(Serialize, FromForm, JsonSchema)] #[schemars(example = "example_param")] struct Param(i32); fn example_param() -> Param { Param(10) } #[openapi] #[get("/example?")] fn get_param(param: Param) {} ``` Returns a spec containing ```json "examples": [...

okapi

Is there a way to ignore guards from the api docs? I'm currently using a third-party guard which doesn't implement `OpenApiFromRequest` and I'd simply would like to ignore it. Any...

I'm trying to derive `JsonSchema` on a struct that uses `serde_as` to represent numbers as strings. My struct looks like the following: ```rust #[derive(JsonSchema)] #[serde_as] #[derive(Serialize, Deserialize)] pub enum Value...

When creating a route, if I use a query parameter with a name that corresponds to a Rust keyword (e.g. `type`), the `openapi` attribute macro fails to match the query...

Added Generic parameters to fn_name to solve issues with named lifetimes regarding Issue #84. Also added an example to showcase the behaviour

Hi rust lovers , Just I pushed an implementation for support rocket-validation in okapi project . This is related to issue #142 that I already posted in yesterday . I...

Hi all , Recently I had an issue with okapi integration with [rocket_validation](https://github.com/somehowchris/rocket-validation) `Validated` . Is there any plan to implement Validated struct ? on the other please let me...

currently link to uuid examples is not working: should be suffixed with `_usage`

I have ```rust #[get("/login/google")] pub fn get_login_google(oauth2: OAuth2, cookies: &CookieJar

Add support for OpenAPI 3.1.0 spec. Spec: https://spec.openapis.org/oas/v3.1.0 But do this under a feature flag so both can be used. We can then later switch the default over once it...

documentation
enhancement
okapi