poem
poem copied to clipboard
A full-featured and easy-to-use web framework with the Rust programming language.
This PR adds support for YAML, in all the same ways that there is support for JSON. For the most part I just copied what we do for JSON, but...
Error response log shows status code will be more helpful.
## Description of the feature I use the ForceHTTPS middleware to redirect requests to HTTPS for my app. Unfortunately, this causes problems when deploying in k8s with health checks. I'd...
Having a generic type with `#[derive(Object)]` will produce identifiers like `PaginatedResponse` which look nice, but are not valid according to the spec: > Component names can only contain the characters...
Hey, there are a handful of changes in main that I'd like to use, but currently they're not in a released on crates.io. This means I have to target the...
1 poem add grpc-web like grpc-web ` Server::builder() .accept_http1(true) .add_service(greeter) .serve(addr) .await?; ` 2 add support opapi post json like this . grpc-gateway ` curl -X "POST" "http://127.0.0.1:3000/helloworld.Greeter/SayHello" \ -H...
Hey, I have some logging middleware where I'd love to do log based on `operation_id`, but I don't know how I can access that data from middleware. I can't see...
I describe an API like this: ```rust #[OpenApi] impl Api { /// Return status code or random status code if more than one is given #[oai( path = "/status/:codes", method...
First, some code: ``` #[derive(Clone, Debug, PartialEq, Union)] #[oai(discriminator_name = "type", one_of)] pub enum WriteSetChange { DeleteModule(DeleteModule), DeleteResource(DeleteResource), } #[derive(Clone, Debug, PartialEq, Object)] pub struct DeleteModule { pub address: Address,...
I have an OpenAPI based server that says that it only ever returns JSON formatted errors. However, the framework doesn't do this by default. For most errors that originate from...