Skip to content

Use the "version" field in the OpenAPI doc as the version of the generated library #134

@emann

Description

@emann

Is your feature request related to a problem? Please describe.
The template for the pyproject.toml has the version hardcoded as 0.1.0, which causes conflicts if the generated library is uploaded to a package repository that doesn't allow duplicate uploads for the same version.

Describe the solution you'd like
The GeneratorData class already has the version stored, just need to store it and pass it to the call to pyproject_template.render in _Project._build_metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions