Skip to content

Modify FlaskOpenAPIRequest to accomodate path variables #141

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 5 commits into from
Jun 17, 2019

Conversation

bjmc
Copy link
Contributor

@bjmc bjmc commented Jun 12, 2019

I believe this is a partial fix for #35 (see also #93). It doesn't attempt to solve the general case of accommodating all the possible routers out there. Instead, this is a limited set of changes confined to the wrappers.flask module that uses a regex to transform the Flask URL variables into OpenAPI path parameters.

Thanks for your work on this very useful library.

@codecov
Copy link

codecov bot commented Jun 12, 2019

Codecov Report

Merging #141 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
+ Coverage   95.83%   95.91%   +0.07%     
==========================================
  Files          56       56              
  Lines        1538     1541       +3     
==========================================
+ Hits         1474     1478       +4     
+ Misses         64       63       -1
Impacted Files Coverage Δ
openapi_core/wrappers/flask.py 96.87% <100%> (+0.32%) ⬆️
openapi_core/validation/response/validators.py 100% <0%> (+2.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4874851...3093364. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jun 12, 2019

Codecov Report

Merging #141 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
+ Coverage   95.83%   95.91%   +0.07%     
==========================================
  Files          56       56              
  Lines        1538     1541       +3     
==========================================
+ Hits         1474     1478       +4     
+ Misses         64       63       -1
Impacted Files Coverage Δ
openapi_core/wrappers/flask.py 96.87% <100%> (+0.32%) ⬆️
openapi_core/validation/response/validators.py 100% <0%> (+2.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4874851...3093364. Read the comment docs.

@p1c2u
Copy link
Collaborator

p1c2u commented Jun 17, 2019

@bjmc thank you for the contribution. LGTM

@p1c2u p1c2u merged commit 9376b2e into python-openapi:master Jun 17, 2019
@bjmc bjmc deleted the flask_params branch June 30, 2019 08:55
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