Skip to content

Commit

Permalink
fix openapi param required
Browse files Browse the repository at this point in the history
  • Loading branch information
voidZXL committed Aug 30, 2024
1 parent d6fad4e commit ba11cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utilmeta/core/api/specs/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ def parse_properties(self, props: Dict[str, ParserProperty]) -> Tuple[dict, dict
data = {
'in': _in,
'name': key,
'required': prop.required,
'required': field.required,
# prop may be injected
'schema': generator(),
}
if prop.description:
Expand Down

0 comments on commit ba11cc1

Please sign in to comment.