Skip to content

Commit 0339786

Browse files
committed
Fix min_properties being output as maxProperties
1 parent a024aca commit 0339786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utoipa-gen/src/component/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl ToTokensDiagnostics for Feature {
205205
quote! { .max_properties(Some(#max_properties)) }
206206
}
207207
Feature::MinProperties(min_properties) => {
208-
quote! { .max_properties(Some(#min_properties)) }
208+
quote! { .min_properties(Some(#min_properties)) }
209209
}
210210
Feature::SchemaWith(schema_with) => schema_with.to_token_stream(),
211211
Feature::Description(description) => quote! { .description(Some(#description)) },

0 commit comments

Comments
 (0)