OpenAPITools / OpenAPITools/openapi-generator

[REQ] can generate parameters with specify prefix

Open
#14,223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

can generate parameters with specify prefix
origin yaml has some parameters that is start with number character,because the yaml file is standard in some professional area, i can not change the yaml file
when generate to go language,go do not allow identifier start with number character

can specify prefix to generate identifier start with the specify prefix , Prefix can be specified through command line parameters

Can you support my request

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Go generator turns OpenAPI YAML parameter names into identifiers and how command-line options are defined. Done means a configurable prefix can be supplied through the CLI and applied when generated Go parameter identifiers would otherwise begin with a number.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java, openapi
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.