Skip to content

Commit b743689

Browse files
authored
Merge pull request #10 from dotX12/dev-1
Support for `Query` old syntax.
2 parents 1369b95 + 6045d8d commit b743689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyfa_converter/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Union
66
from warnings import warn
77

8-
from fastapi import Body
8+
from fastapi import Body, Query
99
from fastapi import Depends
1010
from pydantic import BaseModel
1111
from pydantic.fields import ModelField, FieldInfo
@@ -153,4 +153,4 @@ def query(
153153
stacklevel=2,
154154
)
155155

156-
return cls.reformat_model_signature(model_cls=model_cls, _type=Body)
156+
return cls.reformat_model_signature(model_cls=model_cls, _type=Query)

0 commit comments

Comments
 (0)