Skip to content

Commit

Permalink
fixed schema generation (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed Jun 3, 2021
1 parent 12100da commit c5aae7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja/openapi/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def operation_parameters(self, operation: Operation) -> List[DictStrAny]:

schema = model_schema(model, ref_prefix=REF_PREFIX)

required = set(schema.get("required", [])) ### ?
required = set(schema.get("required", []))
properties = schema["properties"]

for name, details in properties.items():
Expand Down

0 comments on commit c5aae7d

Please sign in to comment.