-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generator client endpoint with single produces content type
Fixed #1678
- Loading branch information
Showing
5 changed files
with
91 additions
and
8 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
63 changes: 63 additions & 0 deletions
63
openapi-generator/src/test/resources/3_0/client-produces-content-type.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,63 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: File Upload | ||
version: 1.0.0 | ||
tags: | ||
- name: files | ||
paths: | ||
/: | ||
post: | ||
tags: | ||
- files | ||
summary: Upload new file to server | ||
operationId: uploadFile | ||
parameters: | ||
- name: X-file-crc32 | ||
in: header | ||
description: Decimal CRC32B representation of the file | ||
required: true | ||
schema: | ||
type: string | ||
nullable: false | ||
requestBody: | ||
content: | ||
application/octet-stream: | ||
schema: | ||
format: binary | ||
type: string | ||
responses: | ||
"200": | ||
description: File was saved on server. Returns serverfilename (UUID) of | ||
the file. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/File' | ||
"202": | ||
description: File was already available on server. Returns serverfilename | ||
(UUID) of the file. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/File' | ||
"400": | ||
description: "Provided checksum, size or file was not provided or uploaded\ | ||
\ file did not match given values" | ||
"401": | ||
description: User is not authorized to request this resource | ||
components: | ||
schemas: | ||
File: | ||
type: object | ||
properties: | ||
serverFileName: | ||
type: string | ||
checksum: | ||
type: string | ||
mimeType: | ||
type: string | ||
size: | ||
format: int64 | ||
type: integer | ||
shaHash: | ||
type: string |