forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[18929] fix missing JsonIgnorePropertiesimport in oneOf interface file
- Loading branch information
1 parent
21d3cfe
commit 75983de
Showing
185 changed files
with
12,421 additions
and
37 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
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
71 changes: 71 additions & 0 deletions
71
modules/openapi-generator/src/test/resources/3_0/spring/issue_18929.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,71 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: oneOf within oneOf | ||
version: 7.7.0-SNAPSHOT | ||
paths: | ||
/oneOf-within-oneOf-test: | ||
post: | ||
operationId: 'oneOfWithinOneOfTest' | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
oneOf: | ||
- $ref: '#/components/schemas/RequestTwoSchema' | ||
- $ref: '#/components/schemas/RequestOneSchema' | ||
responses: | ||
'201': | ||
description: The request was successful and the resource has been created. | ||
content: | ||
application/json: | ||
schema: | ||
type: string | ||
components: | ||
schemas: | ||
AbstractNestedSchema: | ||
type: object | ||
discriminator: | ||
propertyName: type | ||
mapping: | ||
NESTED_ONE: '#/components/schemas/NestedOneSchema' | ||
NESTED_TWO: '#/components/schemas/NestedTwoSchema' | ||
required: | ||
- type | ||
properties: | ||
type: | ||
type: string | ||
NestedOneSchema: | ||
type: object | ||
allOf: | ||
- $ref: '#/components/schemas/AbstractNestedSchema' | ||
AbstractRequestSchema: | ||
type: object | ||
discriminator: | ||
propertyName: type | ||
mapping: | ||
REQUEST_ONE: '#/components/schemas/RequestOneSchema' | ||
REQUEST_TWO: '#/components/schemas/RequestTwoSchema' | ||
required: | ||
- type | ||
properties: | ||
type: | ||
type: string | ||
RequestTwoSchema: | ||
type: object | ||
allOf: | ||
- $ref: '#/components/schemas/AbstractRequestSchema' | ||
required: | ||
- nested | ||
properties: | ||
nested: | ||
oneOf: | ||
- $ref: '#/components/schemas/NestedTwoSchema' | ||
- $ref: '#/components/schemas/NestedOneSchema' | ||
RequestOneSchema: | ||
type: object | ||
allOf: | ||
- $ref: '#/components/schemas/AbstractRequestSchema' | ||
NestedTwoSchema: | ||
type: object | ||
allOf: | ||
- $ref: '#/components/schemas/AbstractNestedSchema' |
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
43 changes: 43 additions & 0 deletions
43
...tore/spring-http-interface-reactive/src/main/java/org/openapitools/api/PerkPersonApi.java
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,43 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.7.0-SNAPSHOT). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package org.openapitools.api; | ||
|
||
import org.openapitools.model.CreateParkPersonRequest; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.*; | ||
import org.springframework.web.service.annotation.*; | ||
import org.springframework.web.multipart.MultipartFile; | ||
|
||
import org.springframework.http.codec.multipart.Part; | ||
import reactor.core.publisher.Flux; | ||
import reactor.core.publisher.Mono; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Optional; | ||
import jakarta.annotation.Generated; | ||
|
||
|
||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.7.0-SNAPSHOT") | ||
public interface PerkPersonApi { | ||
|
||
/** | ||
* POST /fake/one-of-within-one-of-park-persons : Create a Park Person | ||
* | ||
* @param createParkPersonRequest (required) | ||
* @return Park Person created (status code 201) | ||
*/ | ||
@HttpExchange( | ||
method = "POST", | ||
value = "/fake/one-of-within-one-of-park-persons", | ||
accept = { "application/json" }, | ||
contentType = "application/json" | ||
) | ||
Mono<ResponseEntity<String>> createParkPerson( | ||
@RequestBody Mono<CreateParkPersonRequest> createParkPersonRequest | ||
); | ||
|
||
} |
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.