-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java] Fix compilation for a map of enum
- Loading branch information
1 parent
c2472b0
commit 940cab5
Showing
3 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
modules/openapi-generator/src/test/resources/3_0/issue_19393_map_of_enum.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
openapi: 3.0.0 | ||
info: | ||
version: 1.0.0 | ||
title: OpenAPI Test API | ||
license: | ||
name: Apache-2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0.html' | ||
paths: | ||
/employees/{employeeId}: | ||
put: | ||
operationId: updateEmployee | ||
parameters: | ||
- name: employeeId | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Employee' | ||
required: true | ||
responses: | ||
'200': | ||
description: OK | ||
components: | ||
schemas: | ||
Employee: | ||
type: object | ||
properties: | ||
projectRole: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
enum: | ||
- DEVELOPER | ||
- TESTER | ||
- OWNER | ||
projectRoles: | ||
type: object | ||
additionalProperties: | ||
uniqueItems: true | ||
type: array | ||
items: | ||
type: string | ||
enum: | ||
- DEVELOPER | ||
- TESTER | ||
- OWNER |