Replies: 2 comments
-
Did you forget the spec = SpecTree("flask", annotations=True) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Adding annotations solved the issue! Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unfortunetly when I try to use type annotation with my MethodView class with Spectree I get the next error:
bash TypeError: LoginAPI.post() missing 1 required positional argument: 'json'
My code looks like this:
Flask methodview
My schema
My workaround
As workaround I can use json parameter on the spec.validate decorator and parse schema again:
Is it possible to go with the first implementation somehow?
Beta Was this translation helpful? Give feedback.
All reactions