Skip to content
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

OpenAPI 3.1 support + Auto-detect proxies and request / response validator protocols #419

Merged

Conversation

p1c2u
Copy link
Collaborator

@p1c2u p1c2u commented Sep 12, 2022

Fixes #296

@p1c2u p1c2u force-pushed the feature/auto-detect-request-and-response-validator-proxies branch from 3eb92eb to fae3466 Compare September 12, 2022 13:55
@p1c2u p1c2u changed the title Auto-detect request and response validator proxies OpenAPI 3.1 support + Auto-detect request and response validator proxies Sep 12, 2022
@p1c2u p1c2u force-pushed the feature/auto-detect-request-and-response-validator-proxies branch from fae3466 to 008ae72 Compare September 12, 2022 15:41
@p1c2u p1c2u changed the title OpenAPI 3.1 support + Auto-detect request and response validator proxies OpenAPI 3.1 support + Auto-detect request / response validator protocols and proxies Sep 12, 2022
@p1c2u p1c2u force-pushed the feature/auto-detect-request-and-response-validator-proxies branch from 008ae72 to 9f27341 Compare September 12, 2022 15:42
@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

Merging #419 (b2d2ad9) into master (9f1eabe) will decrease coverage by 0.66%.
The diff coverage is 82.81%.

❗ Current head b2d2ad9 differs from pull request most recent head 0404d48. Consider uploading reports for the commit 0404d48 to get more accurate results

@@            Coverage Diff             @@
##           master     #419      +/-   ##
==========================================
- Coverage   94.00%   93.34%   -0.67%     
==========================================
  Files          95       97       +2     
  Lines        2236     2344     +108     
  Branches      283      292       +9     
==========================================
+ Hits         2102     2188      +86     
- Misses        102      120      +18     
- Partials       32       36       +4     
Impacted Files Coverage Δ
openapi_core/validation/response/validators.py 93.93% <50.00%> (-1.38%) ⬇️
openapi_core/validation/request/validators.py 93.22% <60.00%> (-0.89%) ⬇️
openapi_core/validation/request/proxies.py 73.33% <73.33%> (ø)
openapi_core/validation/response/proxies.py 74.19% <74.19%> (ø)
openapi_core/validation/request/protocols.py 75.60% <83.33%> (+1.32%) ⬆️
openapi_core/validation/response/protocols.py 75.75% <87.50%> (+3.75%) ⬆️
openapi_core/__init__.py 100.00% <100.00%> (ø)
openapi_core/contrib/flask/decorators.py 100.00% <100.00%> (ø)
openapi_core/unmarshalling/schemas/__init__.py 100.00% <100.00%> (ø)
openapi_core/validation/exceptions.py 94.44% <100.00%> (+0.32%) ⬆️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@p1c2u p1c2u force-pushed the feature/auto-detect-request-and-response-validator-proxies branch from 9f27341 to b2d2ad9 Compare September 12, 2022 16:10
@p1c2u p1c2u force-pushed the feature/auto-detect-request-and-response-validator-proxies branch from b2d2ad9 to 0404d48 Compare September 12, 2022 16:31
@p1c2u p1c2u changed the title OpenAPI 3.1 support + Auto-detect request / response validator protocols and proxies OpenAPI 3.1 support + Auto-detect proxies and request / response validator protocols Sep 12, 2022
@p1c2u p1c2u merged commit 9ce9fcb into master Sep 12, 2022
@p1c2u p1c2u deleted the feature/auto-detect-request-and-response-validator-proxies branch September 12, 2022 16:33
stephenfin added a commit to getpatchwork/patchwork that referenced this pull request Oct 10, 2022
This supports OpenAPI 3.1 finally [1] 🎉. We can uncap jsonschema in the
process.

[1] python-openapi/openapi-core#419

Signed-off-by: Stephen Finucane <stephen@that.guru>
lofidevops added a commit to lofidevops/openapi.tools that referenced this pull request Oct 18, 2022
…penapi-core#419

Signed-off-by: David Seaward <david.seaward@canonical.com>
philsturgeon pushed a commit to apisyouwonthate/openapi.tools that referenced this pull request Oct 19, 2022
* openapi-spec-validator 0.5 and later supports OpenAPI 3.1 see python-openapi/openapi-spec-validator#143

Signed-off-by: David Seaward <david.seaward@canonical.com>

* openapi-core 0.16 and later supports OpenAPI 3.1 see python-openapi/openapi-core#419

Signed-off-by: David Seaward <david.seaward@canonical.com>

Signed-off-by: David Seaward <david.seaward@canonical.com>
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.

Add support for OpenAPI v3.1
1 participant