Skip to content

Commit

Permalink
Merge pull request #10 from dotX12/dev-1
Browse files Browse the repository at this point in the history
Support for `Query` old syntax.
  • Loading branch information
dotX12 authored Sep 3, 2022
2 parents 1369b95 + 6045d8d commit b743689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfa_converter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Union
from warnings import warn

from fastapi import Body
from fastapi import Body, Query
from fastapi import Depends
from pydantic import BaseModel
from pydantic.fields import ModelField, FieldInfo
Expand Down Expand Up @@ -153,4 +153,4 @@ def query(
stacklevel=2,
)

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

0 comments on commit b743689

Please sign in to comment.