Skip to content

Commit

Permalink
oapi: Allow commas at the end of parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed May 30, 2024
1 parent 34c67a0 commit ec26d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oapi-macros/src/parameter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Parse for ValueParameter<'_> {

if input.fork().parse::<ParameterIn>().is_ok() {
parameter.parameter_in = Some(input.parse()?);
input.parse::<Token![,]>()?;
input.parse::<Token![,]>().ok();
}

let (schema_features, parameter_features) = input.parse::<ParameterFeatures>()?.split_for_parameter_type();
Expand Down

0 comments on commit ec26d4c

Please sign in to comment.