-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
Description
samples/client/petstore/go/go-petstore/README.md references a var petstore.ContextAccessToken, but it doesn't exist in code.
openapi-generator version
master
Steps to reproduce
https://github.com/OpenAPITools/openapi-generator/blob/master/samples/client/petstore/go/go-petstore/configuration.go does not contain ContextAccessToken even though it does in the README
Related issues/PRs
Suggest a fix
In client.mustache, the code with ContextAccessToken is only inserted if hasHttpBearerMethods is true. I don't see hasHttpBearerMethods at all in README.mustache. Should it be added there? I can make a PR if so.