-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Description
Description
I want to be able to specify a description for each enum value for an enum property that is used in a schema for an object, and I had seen here that it was possible to do via oneOf
for the enum property. However, following that, I wasn't able to get any enums generated.
openapi-generator version
6.5.0
OpenAPI declaration file content or url
schemas:
TargetBase:
type: object
properties:
id:
type: string
name:
type: string
test_enum:
type: string
oneOf:
- enum: [TEST1]
description: testing 1
- enum: [TEST2]
description: testing 2
- enum: [TEST3]
description: testing 3
description: The base entity that target objects extend from.
Command line used for generation
mvn generate-sources
Steps to reproduce
After specifying enum as in the above example, run mvn generate-sources
in order to generate the OAS Java code. If you view the generated file for the enum object, you will see no enums defined.
Related issues/PRs
OAI/OpenAPI-Specification#348 (comment)
Suggest a fix/enhancement
bergentroll, piperchester and mpribyl
Metadata
Metadata
Assignees
Labels
No labels