Closed vearutop closed 11 months ago
Language | Files | Lines | Code | Comments | Blanks | Complexity | Bytes |
---|---|---|---|---|---|---|---|
Go | 109 (+3) | 7983 (+223) | 5784 (+134) | 548 (+44) | 1651 (+45) | 971 (+4) | 193.8K (+5.7K) |
Go (test) | 53 (+4) | 6321 (+637) | 4846 (+441) | 290 (+103) | 1185 (+93) | 186 (+4) | 174.1K (+16.3K) |
JSON | 3 | 1575 (-15) | 1575 (-15) | 0 | 0 | 0 | 65.8K (-451B) |
Markdown | 6 | 544 (+4) | 414 (+2) | 0 | 130 (+2) | 0 | 18.4K (+154B) |
YAML | 10 | 736 (+5) | 631 (+5) | 46 | 59 | 0 | 23K (+81B) |
# github.com/swaggest/rest ## compatible changes HandlerTrait.OpenAPIAnnotations: added # github.com/swaggest/rest/gorillamux ## compatible changes package added # github.com/swaggest/rest/nethttp ## compatible changes AnnotateOpenAPIOperation: added Handler.OpenAPIAnnotations: added OpenAPIAnnotationsMiddleware: added # github.com/swaggest/rest/openapi ## compatible changes (*Collector).AnnotateOperation: added (*Collector).CollectOperation: added (*Collector).CollectUseCase: added (*Collector).HasAnnotation: added (*Collector).Refl: added (*Collector).SpecSchema: added NewCollector: added # github.com/swaggest/rest/web ## compatible changes (*Service).OpenAPIReflector: added (*Service).OpenAPISchema: added # summary Inferred base version: v0.2.53 Suggested version: v0.3.0
total: (statements) 82.4% changed lines: (statements) 69.5%, coverage is less than 90.0%, consider testing the changes more thoroughly
Merging #165 (319f296) into master (18f55a4) will decrease coverage by
0.29%
. The diff coverage is65.49%
.
@@ Coverage Diff @@
## master #165 +/- ##
==========================================
- Coverage 77.91% 77.62% -0.29%
==========================================
Files 28 30 +2
Lines 1639 1676 +37
==========================================
+ Hits 1277 1301 +24
- Misses 239 268 +29
+ Partials 123 107 -16
Flag | Coverage Δ | |
---|---|---|
unittests | 77.62% <65.49%> (-0.29%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Files Changed | Coverage Δ | |
---|---|---|
jsonschema/validator.go | 80.19% <0.00%> (ø) |
|
trait.go | 85.18% <ø> (ø) |
|
openapi/collector.go | 62.74% <55.41%> (-0.26%) |
:arrow_down: |
web/service.go | 95.45% <60.00%> (-4.55%) |
:arrow_down: |
nethttp/options.go | 84.00% <72.72%> (-4.89%) |
:arrow_down: |
gorillamux/collector.go | 78.18% <78.18%> (ø) |
|
gorillamux/path_decoder.go | 100.00% <100.00%> (ø) |
|
nethttp/handler.go | 85.22% <100.00%> (ø) |
|
nethttp/openapi.go | 80.72% <100.00%> (-13.49%) |
:arrow_down: |
request/factory.go | 89.36% <100.00%> (ø) |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
This PR reduces direct dependency on
openapi3
package to prepare for the future inclusion ofopenapi31
.Instrumentation for
gorilla/mux
is built on-top of improved API.