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

Swagger not declared by package openapi3 #353

Closed
lanpar opened this issue May 5, 2021 · 0 comments
Closed

Swagger not declared by package openapi3 #353

lanpar opened this issue May 5, 2021 · 0 comments

Comments

@lanpar
Copy link

lanpar commented May 5, 2021

#1. When using latest import of github.com/getkin/kin-openapi v0.61.0

#2. get error on generated server code "Swagger not declared by package openapi3"

// GetSwagger returns the Swagger specification corresponding to the generated code
// in this file.
func GetSwagger() (*openapi3.Swagger, error)

#3. My generate command is as follows:
oapi-codegen --generate chi-server,spec --package api ./openapi-spec/openapi-spec.yaml > ./api/server-gen.go

My apologies , guess i need to stick with version 0.53.0 closing issue

@lanpar lanpar closed this as completed May 5, 2021
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

No branches or pull requests

1 participant