Skip to content

[BUG] Description #21093

@JohnAmican

Description

@JohnAmican

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions