-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generating endpoints by operations with multiple content types.
- Loading branch information
Showing
12 changed files
with
10,980 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
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
8,740 changes: 8,740 additions & 0 deletions
8,740
openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
Large diffs are not rendered by default.
Oops, something went wrong.
2,069 changes: 2,069 additions & 0 deletions
2,069
openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
41 changes: 41 additions & 0 deletions
41
openapi-generator/src/test/resources/3_0/multiple-content-types.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,41 @@ | ||
openapi: 3.0.3 | ||
info: | ||
version: "1" | ||
title: Multiple Content Types for same request | ||
paths: | ||
/multiplecontentpath: | ||
post: | ||
operationId: myOp | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/coordinates' | ||
multipart/form-data: | ||
schema: | ||
type: object | ||
properties: | ||
coordinates: | ||
$ref: '#/components/schemas/coordinates' | ||
file: | ||
type: string | ||
format: binary | ||
responses: | ||
201: | ||
description: Successfully created | ||
headers: | ||
Location: | ||
schema: | ||
type: string | ||
components: | ||
schemas: | ||
coordinates: | ||
type: object | ||
required: | ||
- lat | ||
- long | ||
properties: | ||
lat: | ||
type: number | ||
long: | ||
type: number |