Skip to content

Commit 63b5d5a

Browse files
committed
Fixed webhooks
1 parent fc8d7c2 commit 63b5d5a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

poem-openapi-derive/src/webhook.rs

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ fn generate_operation(
234234
required: <#arg_ty as #crate_name::ApiExtractor>::PARAM_IS_REQUIRED,
235235
deprecated: #deprecated,
236236
explode: #explode,
237+
style: ::std::option::Option::None
237238
};
238239
params.push(meta_param);
239240
}

poem-openapi/tests/webhook.rs

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ async fn parameters() {
126126
required: true,
127127
deprecated: false,
128128
explode: true,
129+
style: None,
129130
},
130131
MetaOperationParam {
131132
name: "b".to_string(),
@@ -135,6 +136,7 @@ async fn parameters() {
135136
required: true,
136137
deprecated: false,
137138
explode: true,
139+
style: None,
138140
}
139141
]
140142
);

0 commit comments

Comments
 (0)