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
  • #11604
Closed
Open
Issue created Feb 14, 2022 by Administrator@rootContributor

[Question] [python-fastapi] How to set _spec_property_naming = True via command line

Created by: puneetugru

Description

We have a requirement where we would like to generate only the model files, inheriting from pydantic BaseModel.

Hence, we would like to use python-fastapi as the generator type.

But, we would also like the openapi-generator to NOT generate model names with snake_case, but rather with camelCase.

As per #10458 (closed) the support exists as part of the python-experimental generator.

But, the same is failing due to #11518 (closed)

But, is there a way to set _spec_property_naming = True as a command-line argument with the generator set as python-fastapi?

openapi-generator version
openapi-generator --version
openapi-generator-cli 5.4.0
  commit : 4a36be7
  built  : 2022-01-31T05:31:36Z
  source : https://github.com/openapitools/openapi-generator
  docs   : https://openapi-generator.tech/
Assignee
Assign to
Time tracking