From 5bd14a4fd2dacd5f4011d3b4d816cf01d65113ec Mon Sep 17 00:00:00 2001 From: kanarus Date: Thu, 16 Jan 2025 06:44:51 +0900 Subject: [PATCH] openapi: impl Schema for Cow --- ohkami_openapi/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ohkami_openapi/src/lib.rs b/ohkami_openapi/src/lib.rs index 5ac261ee..8ff78838 100644 --- a/ohkami_openapi/src/lib.rs +++ b/ohkami_openapi/src/lib.rs @@ -64,6 +64,11 @@ const _: () = { string() } } + impl Schema for std::borrow::Cow<'_, str> { + fn schema() -> impl Into { + string() + } + } impl Schema for std::sync::Arc { fn schema() -> impl Into { string()