OpenAPITools / OpenAPITools/openapi-generator
[BUG][GO] Error in go server README api example
Open
Nobody has claimed this yet.
Issue: Bug
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
The go server generates example code with objects opening with { and closing with )
openapi-generator version
latest docker image
OpenAPI declaration file content or url
Petstore
Generation Details
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml \
-g go \
-o /local/out/go
Steps to reproduce
See above
Related issues/PRs
Not that I could find
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the Docker generation command from the issue with the Petstore declaration and inspect the generated Go server README API example. Confirm where the opening { is paired with a closing ) and trace that output to the generator entry point; done when the example uses matching, valid Go delimiters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100