-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [JAVA/SPRING] [#12692] fixed optional config property legacyDisc… (
#12713) * fix: [JAVA/SPRING] [#12692] fixed optional config property legacyDiscriminatorBehavior always being overwritten to false in spring codegen * feat: [JAVA/SPRING] [#12692] spaces instead of tabs * feat: [JAVA/SPRING] [#12692] spaces instead of tabs in test * fix: [JAVA/SPRING] [#12692] added comment * fix: [JAVA/SPRING] [#12692] spaces instead of tabs * fix: [JAVA/SPRING] [#12692] spaces instead of tabs in test
- Loading branch information
Showing
3 changed files
with
74 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
45 changes: 45 additions & 0 deletions
45
modules/openapi-generator/src/test/resources/bugs/issue_12692.yml
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,45 @@ | ||
openapi: 3.0.1 | ||
info: | ||
version: 1.0.0 | ||
title: Swagger Petstore | ||
license: | ||
name: MIT | ||
paths: | ||
"/pets": | ||
get: | ||
operationId: listPets | ||
responses: | ||
'200': | ||
description: description | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
"$ref": "#/components/schemas/Pet" | ||
components: | ||
schemas: | ||
Pet: | ||
type: object | ||
required: | ||
- type | ||
properties: | ||
type: | ||
type: string | ||
discriminator: | ||
propertyName: type | ||
mapping: | ||
cat: "#/components/schemas/Cat" | ||
Cat: | ||
allOf: | ||
- "$ref": "#/components/schemas/Pet" | ||
- type: object | ||
required: | ||
- type | ||
properties: | ||
type: | ||
type: string | ||
discriminator: | ||
propertyName: type | ||
mapping: | ||
cat: "#/components/schemas/Cat" |