Skip to content

Commit

Permalink
path parameters are required by default
Browse files Browse the repository at this point in the history
  • Loading branch information
SMILEY4 committed Jul 26, 2024
1 parent 748f09f commit 6cb5736
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class OpenApiRequestParameter(
location = location,
description = description,
example = example,
required = required ?: false,
required = required ?: (location == ParameterLocation.PATH),
deprecated = deprecated ?: false,
allowEmptyValue = allowEmptyValue ?: true,
explode = explode ?: false,
Expand Down

0 comments on commit 6cb5736

Please sign in to comment.