Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #3226
Closed
Open
Issue created Jun 26, 2019 by Administrator@rootContributor0 of 1 checklist item completed0/1 checklist item

[BUG] [Go] declared type cannot begin with numerals

Created by: mariuspavelnistor

Bug Report Checklist

  • [ ] Have you provided a full/minimal spec to reproduce the issue? yes
  • [ ] Have you validated the input using an OpenAPI validator ([example] (https://apidevtools.org/swagger-parser/online/))? yes
  • [ ] What's the version of OpenAPI Generator used? 4.0.0
  • [ ] Have you search for related issues/PRs? yes
  • [ ] What's the actual output vs expected output?

Actual : package model // Model5GInterfaceType : 5G interface type type 5GInterfaceType string // List of 5GInterfaceType const ( N2 Model5GInterfaceType = "n2" N3 Model5GInterfaceType = "n3" )

Expected :

package model // Model5GInterfaceType : 5G interface type type Model5GInterfaceType string // List of 5GInterfaceType const ( N2 Model5GInterfaceType = "n2" N3 Model5GInterfaceType = "n3" )

  • [Optional] Bounty to sponsor the fix (example)
Description
openapi-generator version
OpenAPI declaration file content or url
Command line used for generation
java -jar ./openapi-generator-cli.jar generate -g go-server -i ./cmd/lizard-rest/yaml/test.yaml -o ./cmd/lizard-rest/generated/ --additional-properties packageName=model

test.txt

Steps to reproduce
Related issues/PRs
Suggest a fix
Assignee
Assign to
Time tracking