We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ToSchema
1 parent 2fed909 commit 0a52c9fCopy full SHA for 0a52c9f
utoipa/src/lib.rs
@@ -800,11 +800,14 @@ impl PartialSchema for serde_json::Value {
800
impl ToSchema for serde_json::Value {}
801
802
#[cfg(feature = "bytes")]
803
-impl PartialSchema for bytes::Bytes {
804
- fn schema() -> openapi::RefOr<openapi::schema::Schema> {
805
- <Vec<u8> as PartialSchema>::schema()
+const _: () = {
+ impl PartialSchema for bytes::Bytes {
+ fn schema() -> openapi::RefOr<openapi::schema::Schema> {
806
+ <Vec<u8> as PartialSchema>::schema()
807
+ }
808
}
-}
809
+ impl Schema for bytes::Bytes {}
810
+};
811
812
// Create `utoipa` module so we can use `utoipa-gen` directly from `utoipa` crate.
813
// ONLY for internal use!
0 commit comments