utoipa
utoipa copied to clipboard
Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
This PR adds dependabot config
Consider this ``` use external_api::types; ... #[derive(OpenApi)] #[openapi(paths(routes::rfq::create_rfq_v1), components(schemas(types::rfq::v1::RfQCreation, types::rfq::v1::RfQResponse)))] struct ApiDoc; ``` Results in reference errors in the generated json: ``` "paths": { "/rfqs": { "post": { "tags": [...
I have a (recursive) struct/enum with a generic that contains itself in one of its fields. I don't think that can currently be specified using the derive macro. There have...
When using an enum as a struct field with a serde `flattened` annotation, I would like the enum fields pulled up to the top level instead of being nested under...
I'm trying to define an optional request header like this: ``` #[utoipa::path( put, path = "/some-path", params( ( "X-Request-ID" = String, Header, required = false, deprecated = false, description =...
Is there a setting for me to set to properly route to swagger ui hosted in a subpath of a domain with utoipa swagger ui for axum? SwaggerUI seems to...
`utoipa-gen` has migrated to `syn 2.x`, but it has [proc-macro-error](https://docs.rs/proc-macro-error/latest/proc_macro_error/) as a dependency which still requires `syn 1.0`. This is the last crate in one of my Cargo.locks that requires...
rename_all_fields renames everything of enum and struct. it's very convenient with enum with struct variants.
I am writting an API with Axum and I am using and enum to recevibe o single value or a list of values. For that I am using a Enum...
What about an another approach to the macro `ToSchema` for aliases? This library could add another trait like this: ```rust // utoipa/src/lib.rs pub trait ToGenricSchema, ) -> utoipa::openapi::ObjectBuilder; } ```...