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

extra - large description documents #162

Merged
merged 9 commits into from
Sep 19, 2023
Merged

extra - large description documents #162

merged 9 commits into from
Sep 19, 2023

Conversation

commonism
Copy link
Owner

reducing and culling large description documents
limiting the models of a schema to the requirements of a chosen subset of paths/methods

ggpwnkthx and others added 9 commits September 15, 2023 21:03
iterating without recursion, using just dict comprehension instead of ChainMap, and avoiding filtering/mapping looks to be significantly more performant
reduce a description document to the schemas required
using the Reduced plugin

  Document.parsed - select PathItems
  Document.paths - set ctx.paths = None to trigger reduction
  Document.initialized - remove schemas/responses not initialized
Added class inheritance so that the Culled and LazyLoaded classes are normalized and could be used together.

(cherry picked from commit 19c7d78)
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #162 (37729f3) into master (7461375) will decrease coverage by 0.13%.
The diff coverage is 86.01%.

@@            Coverage Diff             @@
##           master     #162      +/-   ##
==========================================
- Coverage   92.99%   92.87%   -0.13%     
==========================================
  Files          84       86       +2     
  Lines        6441     6627     +186     
==========================================
+ Hits         5990     6155     +165     
- Misses        451      472      +21     
Flag Coverage Δ
unittests 92.87% <86.01%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
tests/extra_test.py 63.85% <63.85%> (ø)
aiopenapi3/openapi.py 92.37% <95.38%> (+1.40%) ⬆️
aiopenapi3/extra.py 100.00% <100.00%> (ø)
aiopenapi3/loader.py 87.32% <100.00%> (+0.65%) ⬆️
tests/conftest.py 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@commonism commonism merged commit 55b200d into master Sep 19, 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