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
  • #662
Closed
Open
Issue created Jul 27, 2018 by Administrator@rootContributor

[python] Paths starting with numerics

Created by: developersteve

Description

Paths starting with version (not ideal but supported in openapi) generate functions that cannot be called in Python.

openapi-generator version

3.1.1 - Found this issue with all v3 releases

OpenAPI declaration file content or url

For example

servers:
  - url: 'https://penapi.pacnetconnect.com'
paths:
  /1.0.0/account/profile/exchange:
    get:
      summary: Get the current account's Exchange profile
      tags:
        - exchange

creates the following type of call when generated

api_response = api_instance.100_auth_generatetoken_post(grant_type, username, password)
Suggest a fix/enhancement

Digging around the template and i can see that its identifying the numeric because the process creates a file that will start with Model100 .... etc. The function and model however doesnt seem to be doing it this way.

Assignee
Assign to
Time tracking