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
  • #13326
Closed
Open
Issue created Aug 31, 2022 by Administrator@rootContributor

upgrade generator language version for python

Created by: RoadToML

Description

The openApi generator for python supports a generator language version of >=3.6. I was wondering if there is a way for me to specify a version in my typescript generateClient() function or anywhere else.

export async function generateClient(app: INestApplication): Promise<void> {
  const documentBuilder = new DocumentBuilder()
    .setTitle("XXXXXX")
    .addApiKey({
      type: "apiKey",
      in: "header",
      name: "X-Api-Key",
      description: "Include API key in the X-Api-Key header when making requests",
    })
    .setDescription("API Client for XXXX, by XXXXX");

  return OpenApiNestFactory.configure(app, documentBuilder, {
    fileGeneratorOptions: {
      enabled: true,
      outputFilePath: "./openapi/api-spec.yml",
    },
    clientGeneratorOptions: {
      type: "python",
      enabled: true,
      outputFolderPath: "./openapi/clients/python",
      openApiFilePath: "./openapi/api-spec.yml",
      additionalProperties:
        "packageName=XXXX,packageVersion=0.1.0"
    },
  });
}
openapi-generator version

6.0.1

thank you in advance

Assignee
Assign to
Time tracking