utoipa
utoipa copied to clipboard
Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
I tried: ```rust request_body( content = RegisterForm, description = "Register form", example = json!("username=myusnm&password=pass.!w0rd") ), ``` will still work as `application/json`. Is there any way to use `www-form-urlencoded` sending a...
```rs #[derive(Debug, Deserialize, IntoParams)] pub struct VecTEST { mint_assets: Vec, } #[utoipa::path( get, path = "/vec_test", params(VecTEST), responses( (status = 200, description = "List todos successfully") ) )] pub async...
Hello, I would like to know if there is a way to automatically generate all the paths / schemas, without having to do it one by one in the code....
I don't understand how the Encoding struct can be used to add specific encoding to a schema. For example I have this struct: ```rs pub type Metadata = HashMap; #[derive(MultipartForm,...
How can I remove License? If I don't set anything, it just puts a "License" text. Can it be removed? I think this was an issue already resolve by the...
## Version latest ## Description If a field has type `Vec` then `#[derive(ToSchema)]` produces a description of `"string"` instead of an array of integers. ## Expected behavior The generated schema...
I tried to use the `path` macro like this: ```rust #[derive(serde::Serialize, utoipa::ToSchema)] pub(super) struct MyJson { // some fields } #[utoipa::path( get, path = "/some/path", responses( ( status = StatusCode::OK,...
It looks like the parameter to `request_body` is dumbly translated to a string. This means, if you write a non-existant type there, it will happily accept that. We should emit...
`utoipa` derive macros as well as `#[utoipa::path]` use doc comments for OpenAPI description (and, in the case of `path`, also summary). For [`IntoResponses`](https://docs.rs/utoipa/4.1.0/utoipa/derive.IntoResponses.html) and [`ToResponse`](https://docs.rs/utoipa/4.1.0/utoipa/derive.ToResponse.html), it is possible to override...
## How to reproduce `utoipa` version 4.0.0 ```rust #[schema(as = BufferResourceIdentifierObject)] pub struct BufferResourceIdentifierObject { #[serde(rename = "type")] #[schema(default = "buffers")] type_name: String, id: uuid::Uuid, } pub struct BufferResourceRelationshipToOne {...