From 7b66642d570a2567485eb3cdd11553ff62f969ee Mon Sep 17 00:00:00 2001 From: ihor-rud <31574816+ihor-rud@users.noreply.github.com> Date: Mon, 30 Dec 2024 05:46:06 +0100 Subject: [PATCH] make open-api json default (#938) --- poem-openapi/src/payload/json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poem-openapi/src/payload/json.rs b/poem-openapi/src/payload/json.rs index a66a410997..c46562818f 100644 --- a/poem-openapi/src/payload/json.rs +++ b/poem-openapi/src/payload/json.rs @@ -12,7 +12,7 @@ use crate::{ }; /// A JSON payload. -#[derive(Debug, Clone, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq, Default)] pub struct Json(pub T); impl Deref for Json {