swaggest / openapi-go

OpenAPI structures for Go
https://pkg.go.dev/github.com/swaggest/openapi-go/openapi3
MIT License
248 stars 23 forks source link

Add security examples #29

Closed vearutop closed 2 years ago

vearutop commented 2 years ago

Resolves #28.

github-actions[bot] commented 2 years ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go (test) 5 (+1) 1110 (+239) 720 (+91) 222 (+119) 168 (+29) 12 (+6) 29.8K (+5.9K)
Makefile 1 46 (+1) 32 5 9 (+1) 5 1.8K (+1B)
Markdown 1 189 (+2) 170 (+1) 0 19 (+1) 0 5.6K (+92B)
YAML 5 (-1) 291 (-15) 251 (-15) 25 15 0 9K (+103B)
github-actions[bot] commented 2 years ago

Go API Changes

# summary
Inferred base version: v0.2.13
Suggested version: v0.3.0
github-actions[bot] commented 2 years ago

Unit Test Coverage

total: (statements) 46.2%

Coverage diff with base branch ```diff 394c394 < github.com/swaggest/openapi-go/openapi3/entities.go SecuritySchemesEns 0.0% --- > github.com/swaggest/openapi-go/openapi3/entities.go SecuritySchemesEns 100.0% 429,431c429,431 < github.com/swaggest/openapi-go/openapi3/entities.go WithName 0.0% < github.com/swaggest/openapi-go/openapi3/entities.go WithIn 0.0% < github.com/swaggest/openapi-go/openapi3/entities.go WithDescription 0.0% --- > github.com/swaggest/openapi-go/openapi3/entities.go WithName 100.0% > github.com/swaggest/openapi-go/openapi3/entities.go WithIn 100.0% > github.com/swaggest/openapi-go/openapi3/entities.go WithDescription 100.0% 436,438c436,438 < github.com/swaggest/openapi-go/openapi3/entities.go WithScheme 0.0% < github.com/swaggest/openapi-go/openapi3/entities.go WithBearerFormat 0.0% < github.com/swaggest/openapi-go/openapi3/entities.go WithDescription 0.0% --- > github.com/swaggest/openapi-go/openapi3/entities.go WithScheme 100.0% > github.com/swaggest/openapi-go/openapi3/entities.go WithBearerFormat 100.0% > github.com/swaggest/openapi-go/openapi3/entities.go WithDescription 100.0% 524c524 < github.com/swaggest/openapi-go/openapi3/entities.go WithMapOfSecuritySchemeOrRefValuesItem 0.0% --- > github.com/swaggest/openapi-go/openapi3/entities.go WithMapOfSecuritySchemeOrRefValuesItem 100.0% 578c578 < total: (statements) 45.7% --- > total: (statements) 46.2% ```
codecov[bot] commented 2 years ago

Codecov Report

Merging #29 (15255de) into master (582ec73) will increase coverage by 0.56%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
+ Coverage   37.56%   38.13%   +0.56%     
==========================================
  Files           5        5              
  Lines        3511     3511              
==========================================
+ Hits         1319     1339      +20     
+ Misses       1904     1884      -20     
  Partials      288      288              
Flag Coverage Δ
unittests 38.13% <ø> (+0.56%) :arrow_up:

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

Impacted Files Coverage Δ
openapi3/entities.go 32.24% <0.00%> (+0.67%) :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 582ec73...15255de. Read the comment docs.