Skip to content

[BUG][kotlin-sever][jaxrs-spec] default value not working for enum and integer #16455

Description

@stephan-strate

Bug Report Checklist

  • 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

When generating an interface with parameters, that provide a default value and the type is something else than string, the code is not compilable.

openapi-generator version

v7.0.0, regression from v7.0.0-Beta
probably this pull request: #16265

OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs

#16265

Suggest a fix

Pull request #16456 with examples

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions