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

[REQ] add support for decimals in the python generator

Created by: rizwansaeed

Describe the solution you'd like

Add support to the python generator for the following:

units:
  type: string
  format: decimal

which would generate a field of type decimal.Decimal that is de/serialized across the wire as a string.

I am aware that support has been added to the python-experimental as part of https://github.com/OpenAPITools/openapi-generator/pull/11282 but we are looking for support in the python generator.

Additional context

We'd be happy to raise a PR but are looking for a steer on what the required changes would be and how long it might take to implement.

Thanks

Assignee
Assign to
Time tracking