Sunli

Results 255 comments of Sunli

It cannot be deleted because the `CreateSessionResponse[CreateSessionResponseOk]` structure is required, which has an additional `type` attribute than `CreateSessionResponseOk`. 🙂

This should not be Swagger's bug, as the example provided in the spec, every object should contain the `petType` property. ```yaml components: schemas: Pet: type: object required: - petType properties:...

I know, I just want all the work to be done by myself, which is more controllable. 😂

Following @Christoph-AK's suggestions, I improved the `TokioMetrics` middleware in the `master` branch.

It looks pretty good👏🏻, I'll improve this later and embed the UI in poem.

I improved again. 😂 @Christoph-AK

```rust struct Api { db_handle: DbHandle } #[OpenApi] impl Api { #[oai(path = "/get_stuff", method = "get")] async fn get_stuff(&self) -> Base64 { //

You don't want to use `types::Base64` because its format is `string(bytes)` and you want `stuff(base64)`? If so, you might be able to reference this to create a new type? https://github.com/poem-web/poem/blob/master/poem-openapi/src/types/base64_type.rs

I see, you want to return the binary directly from the database, thus avoiding unnecessary serialization, I'll add an `actual_type` attribute later.