New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flask Get Request validate failed #18
Comments
Hello, this is interesting. When I add your code into the example app provided in the repository it works fine. Could you post your whole code? Also in your requirements there is Jirka |
sorry,flask-pydantic-spec==0.1.3 is other test library. Right requirement is Flask-Pydantic==0.4.0 |
I am not able to reproduce your problem. Could you please share a whole minimal example that still produces the error? |
|
Same thing happened to me. With a little investigation, I think, I found the root cause. In
should be
because when request.args is unpacked, dict values become |
I am sorry guys, I am running the exact same code as @CharmingZhou posted and still no error (tried both python 3.6 and 3.9). Could You please @yasinyildiza share your minimal example together with your environment setup? |
Python pip freeze
code
I also tried to run the tests after setting up the dev environment (following Contributing instructions). This is the result:
|
@yasinyildiza @CharmingZhou I will try to solve this issue, however I would recommend You to upgrade to at least the newest 3.6 version (3.6.13 at the moment). |
this issue should not occur anymore since release Feel free to reopen or create new issue if the problem persists. Jirka |
I tested with 0.6.1, and it is working very well. |
my code is very simple, but when i send 'http://127.0.0.1:8800/test_route?query=1',I will receive
I try add more detail in core.py
I will get
So I'm very doubt why query becomes list rather than str.
My python requrement is
Looking forward to a reply!
The text was updated successfully, but these errors were encountered: