maximdanilchenko / aiohttp-apispec

Build and document REST APIs with aiohttp and apispec
https://aiohttp-apispec.rtfd.io
MIT License
220 stars 58 forks source link

In webargs 6, use_args will accept a single location #75

Open lafrech opened 4 years ago

lafrech commented 4 years ago

Hi.

Just a friendly heads up about this change coming in the next major webargs version.

https://github.com/marshmallow-code/webargs/pull/420

Do you foresee any issue with this?

maximdanilchenko commented 4 years ago

@lafrech, hi!

Thank you for this information!

I will try to make needed changes as soon as possible to make it compatible with webargs 6.

rch9 commented 4 years ago

Hi.

I have an issue using 'webargs==6.1.0' and validation_middleware. It works with 'webargs==5.5.3'

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'

I can take a look a bit later and make PR.

lafrech commented 4 years ago

This lib is not compatible with webargs 6 (yet ?).

https://github.com/maximdanilchenko/aiohttp-apispec/blob/98324c052f46b478b7fb94ebc6c9c70ae39cecb7/requirements.txt#L3

maximdanilchenko commented 4 years ago

@rch9 it would be great if you can take a look!

yarula commented 4 years ago

https://github.com/marshmallow-code/webargs/blob/25475ed158a45a9963f401edc71c9ac5256706f7/src/webargs/asyncparser.py#L30

kiforchuk commented 2 years ago

@maximdanilchenko Can be closed Fixed by https://github.com/maximdanilchenko/aiohttp-apispec/pull/112