Skip to content

[BUG][Java] default value in referenced Enum produces corrupted code #2127

@fuj1g0n

Description

@fuj1g0n

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
Description

Refed Enum with default value causes build break in jaxrs-jersey generator.

openapi-generator version

current master (4e85993)

probably since c871e3b

Build break is a regression.
I known that old version also didn't generate a suitable output (cf #1323).

OpenAPI declaration file content or url

bug can be reproduced with
fuj1g0n@e808284

Command line used for generation

re-generate samples with bin/openapi3/jaxrs-jersey-petstore.sh (fuj1g0n@cab6857)

Steps to reproduce
Related issues/PRs
Suggest a 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