Open fredbi opened 3 years ago
Merging #137 (e606f6b) into master (efe8fb3) will increase coverage by
0.90%
. The diff coverage is85.71%
.
@@ Coverage Diff @@
## master #137 +/- ##
==========================================
+ Coverage 62.18% 63.08% +0.90%
==========================================
Files 27 27
Lines 2052 2086 +34
==========================================
+ Hits 1276 1316 +40
+ Misses 605 592 -13
- Partials 171 178 +7
Impacted Files | Coverage Δ | |
---|---|---|
resolver.go | 56.86% <0.00%> (ø) |
|
expander.go | 77.77% <79.16%> (-0.80%) |
:arrow_down: |
schema_loader.go | 89.41% <89.28%> (+1.17%) |
:arrow_up: |
normalizer.go | 85.71% <92.85%> (+2.13%) |
:arrow_up: |
swagger.go | 66.29% <0.00%> (+1.12%) |
:arrow_up: |
ref.go | 43.24% <0.00%> (+2.70%) |
:arrow_up: |
parameter.go | 22.64% <0.00%> (+3.77%) |
:arrow_up: |
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 efe8fb3...e606f6b. Read the comment docs.
circular $ref expansion: fixed edge cases
fixes #94
now expanded $ref's are always contained in the resulting document. All circular $ref that used to resolve to a remote $ref now resolve as a json pointer inside the expanded document. Pointer resolution prefers pointers to definitions.
added additional test case for remote cyclical $ref, from azure API
schema IDs are removed from the expanded spec: schemas expanded from some schema ID reference now refer to the new expanded root document.
circular IDs are resolved against the corresponding root document.
Signed-off-by: Frederic BIDON fredbi@yahoo.com