From 63b5d5ab5fbc4a5b9551bd2c3bf55ceff941f644 Mon Sep 17 00:00:00 2001 From: Nahuel Date: Mon, 23 Dec 2024 15:01:38 +0100 Subject: [PATCH] Fixed webhooks --- poem-openapi-derive/src/webhook.rs | 1 + poem-openapi/tests/webhook.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/poem-openapi-derive/src/webhook.rs b/poem-openapi-derive/src/webhook.rs index 6961ddde01..f1808f0d50 100644 --- a/poem-openapi-derive/src/webhook.rs +++ b/poem-openapi-derive/src/webhook.rs @@ -234,6 +234,7 @@ fn generate_operation( required: <#arg_ty as #crate_name::ApiExtractor>::PARAM_IS_REQUIRED, deprecated: #deprecated, explode: #explode, + style: ::std::option::Option::None }; params.push(meta_param); } diff --git a/poem-openapi/tests/webhook.rs b/poem-openapi/tests/webhook.rs index 618b9e559d..f1bc6c14f1 100644 --- a/poem-openapi/tests/webhook.rs +++ b/poem-openapi/tests/webhook.rs @@ -126,6 +126,7 @@ async fn parameters() { required: true, deprecated: false, explode: true, + style: None, }, MetaOperationParam { name: "b".to_string(), @@ -135,6 +136,7 @@ async fn parameters() { required: true, deprecated: false, explode: true, + style: None, } ] );