Webargs 6.0.0 breaks validation_middleware parsing
See original GitHub issueWebargs 6.0.0 has changed the parse
keyword argument from locations
to location_loader
causing the following exception on new builds of aiohttp-apispec:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp_apispec/middlewares.py", line 34, in validation_middleware
schema["schema"], request, locations=schema["locations"]
TypeError: parse() got an unexpected keyword argument 'locations'
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Webargs 6.0.0 has broken Flaskparser @use_kwargs: Never ...
It seems now the @use_kwargs decorator from the webargs.flaskparser completely fails to parse GET query string parameters or POST form-data ...
Read more >Changelog - webargs 8.2.0 documentation
A new method, webargs.Parser.async_parse , can be used for async-aware parsing from the base parser class. This can handle async location loader functions ......
Read more >Upgrading to Newer Releases - webargs 8.2.0 documentation
For example, a flask query string will be parsed into an ImmutableMultiDict type, which will break pre-load hooks which modify the data in-place....
Read more >Release 8.2.0 unknown - Webargs
webargs is a Python library for parsing and validating HTTP request ... By default Webargs will automatically parse JSON request bodies.
Read more >webargs 8.2.0 documentation
webargs is a Python library for parsing and validating HTTP request objects, with built-in support for popular web frameworks, including Flask, Django, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sad-boy-uoa thank you for the issue! I will fix it this week so far.
https://pypi.org/project/aiohttp-apispec/2.2.1 - fix by @abondar with upper bound.