Skip to content

Commit

Permalink
Fixed webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nahuel-M committed Dec 23, 2024
1 parent fc8d7c2 commit 63b5d5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions poem-openapi-derive/src/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions poem-openapi/tests/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ async fn parameters() {
required: true,
deprecated: false,
explode: true,
style: None,
},
MetaOperationParam {
name: "b".to_string(),
Expand All @@ -135,6 +136,7 @@ async fn parameters() {
required: true,
deprecated: false,
explode: true,
style: None,
}
]
);
Expand Down

0 comments on commit 63b5d5a

Please sign in to comment.