We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95dd68 commit e02b3c0Copy full SHA for e02b3c0
README.md
@@ -70,15 +70,16 @@ import (
70
"log"
71
"net/http"
72
73
+ "github.com/getkin/kin-openapi/openapi3"
74
"github.com/getkin/kin-openapi/openapi3filter"
75
legacyrouter "github.com/getkin/kin-openapi/routers/legacy"
76
)
77
78
func main() {
79
ctx := context.Background()
- loader := &openapi3.Loader{Context: ctx}
80
+ loader := openapi3.Loader{Context: ctx}
81
doc, _ := loader.LoadFromFile("openapi3_spec.json")
- _ := doc.Validate(ctx)
82
+ _ = doc.Validate(ctx)
83
router, _ := legacyrouter.NewRouter(doc)
84
httpReq, _ := http.NewRequest(http.MethodGet, "/items", nil)
85
0 commit comments