-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [Kotlin][Spring] fix #19244 integer enum * fix embedded array enum
- Loading branch information
Showing
48 changed files
with
912 additions
and
132 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
generatorName: kotlin-spring | ||
outputDir: samples/server/petstore/kotlin-springboot-integer-enum | ||
library: spring-boot | ||
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/issue19244_integer_enum.yaml | ||
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring | ||
additionalProperties: | ||
interfaceOnly: "true" | ||
skipDefaultInterface: "true" | ||
useTags: "true" | ||
useSpringBoot3: "true" | ||
annotationLibrary: none | ||
documentationProvider: none | ||
enumPropertyNaming: UPPERCASE |
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
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
46 changes: 46 additions & 0 deletions
46
modules/openapi-generator/src/test/resources/3_0/kotlin/issue19244_integer_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,46 @@ | ||
openapi: 3.0.3 | ||
info: | ||
description: >- | ||
Example created | ||
version: 1.0.0 | ||
title: OpenAPI Stuff API created to reproduce issue | ||
license: | ||
name: Apache-2.0 | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0.html' | ||
paths: | ||
/healthcheck: | ||
get: | ||
summary: Health check endpoint. | ||
operationId: healthcheck | ||
responses: | ||
204: | ||
description: Successful health check | ||
default: | ||
description: Unexpected error | ||
content: | ||
'application/json': | ||
schema: | ||
$ref: '#/components/schemas/ApiError' | ||
|
||
components: | ||
schemas: | ||
ApiError: | ||
required: | ||
- errorCode | ||
type: object | ||
properties: | ||
errorCode: | ||
type: integer | ||
enum: | ||
- 0 | ||
- 100 | ||
x-enum-varnames: | ||
- OK | ||
- ERROR | ||
reasonCode: | ||
$ref: '#/components/schemas/ReasonCode' | ||
ReasonCode: | ||
type: integer | ||
enum: | ||
- 10 | ||
- 20 |
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
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
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
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
Oops, something went wrong.