OpenAPITools / OpenAPITools/openapi-generator

[BUG] Model with only enum doesn't work

Open
#19,584 0 comments 0 reactions 1 assignee View on GitHub

@kay-schecker is already working on this.

Since Jul 5, 2024.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

⚠️ Important Notice

Please differentiate the bug

This repository is not responsible for the actual code generation. If you have problems with the code generation, please open the bug at OpenAPITools/openapi-generator.

Please also check if the bug is already known before you open a new bug.


🐛 Bug Report:

Describe the bug

The issue is with a simple enum model in global components ( with objects works ) while I'm trying to generate them using ref to this model ( screens )

Expected behavior

We can use enums as model

Screenshots

image_2024_07_05T09_14_07_747Z
image
image

Operation System (please complete the following information):
  • OS: Windows 10
  • Version x64
Package System (please complete the following information):
  • Version 2.12.0
Additional context

Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.