Skip to content

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

Closed
@RonnyPfannschmidt

Description

@RonnyPfannschmidt

Bug Report Checklist

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions