Skip to content

Commit 125e218

Browse files
committed
Bugfix any converter to openapi schema
The schema was previously extending the body schema and hence incorrect.
1 parent 4ff2aa5 commit 125e218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quart_schema/extension.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def _build_path(func: Callable, rule: Rule, app: Quart) -> Tuple[dict, dict]:
587587
type_ = "number"
588588

589589
if isinstance(converter, AnyConverter):
590-
schema["enum"] = list(converter.items)
590+
schema = {"enum": list(converter.items)}
591591
else:
592592
schema = {"type": type_}
593593

0 commit comments

Comments
 (0)