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
  • #8736
Closed
Open
Issue created Feb 18, 2021 by Administrator@rootContributor0 of 6 checklist items completed0/6 checklist items

[BUG][PYTHON] python model simple constuction uses a missing local before its avaliable

Created by: RonnyPfannschmidt

Bug Report Checklist

https://github.com/OpenAPITools/openapi-generator/blob/df5050f3b0a2dde6aff9d5d1bd8a9601fc26ae18/modules/openapi-generator/src/main/resources/python/model_templates/method_init_simple.mustache#L37

this one is a reference before assignment

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
openapi-generator version

5.0.1

OpenAPI declaration file content or url

not needed

Steps to reproduce

not needed

Related issues/PRs
Suggested fix

a basic fix is just to pull the extraction up

a good fix would be to actually use python features to declare the arguments

i have the basic fix in a checkout and will contribute a PR later today likely with the enhanced fix

Assignee
Assign to
Time tracking