Skip to content

Add support for aiohttp.web #571

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

Merged
merged 6 commits into from
Jun 10, 2023

Conversation

seandstewart
Copy link

This PR adds support for aiohttp.web Response and Request objects.

I made the explicit choice to require passing in the response body for validation, given it's an async operation to fetch it.

@seandstewart
Copy link
Author

Hello, @p1c2u I see you are the lead maintainer for this library. Just wanted to send a ping on this PR - let me know if I've missed any steps for contributing.

@codecov
Copy link

codecov bot commented May 28, 2023

Codecov Report

Merging #571 (4ef7760) into master (104c0f8) will increase coverage by 0.06%.
The diff coverage is 91.07%.

@@            Coverage Diff             @@
##           master     #571      +/-   ##
==========================================
+ Coverage   90.30%   90.36%   +0.06%     
==========================================
  Files         124      127       +3     
  Lines        3682     3738      +56     
  Branches      442      454      +12     
==========================================
+ Hits         3325     3378      +53     
- Misses        302      303       +1     
- Partials       55       57       +2     
Impacted Files Coverage Δ
openapi_core/contrib/aiohttp/responses.py 86.36% <86.36%> (ø)
openapi_core/contrib/aiohttp/requests.py 93.54% <93.54%> (ø)
openapi_core/contrib/aiohttp/__init__.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

@p1c2u
Copy link
Collaborator

p1c2u commented May 28, 2023

Hi @seandstewart

thank you for your contribution. It looks very good. We just need to add documentation for the integration.

@seandstewart seandstewart force-pushed the aiohttp-web-support branch from e8a5712 to d6e26fc Compare June 2, 2023 12:04
@seandstewart
Copy link
Author

seandstewart commented Jun 2, 2023

Hi @seandstewart

thank you for your contribution. It looks very good. We just need to add documentation for the integration.

@p1c2u Done! Also rebased off of main. There were some changes to dependencies so I had to regenerate the lockfile.

@p1c2u p1c2u force-pushed the aiohttp-web-support branch from 470f8d2 to 5d6a246 Compare June 10, 2023 21:18
@p1c2u
Copy link
Collaborator

p1c2u commented Jun 10, 2023

  • rebased to newest master
  • fixed docs formatting
  • added multidict as dependency

@p1c2u
Copy link
Collaborator

p1c2u commented Jun 10, 2023

Now it's good to go. @seandstewart thank you for your work.

@p1c2u p1c2u merged commit 8fdb454 into python-openapi:master Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants