-
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 ability to generating by multiple swagger files (#1738)
Fixed #1734
- Loading branch information
Showing
7 changed files
with
131 additions
and
5 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
28 changes: 28 additions & 0 deletions
28
openapi-generator/src/test/resources/3_0/multiple/paths/files.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,28 @@ | ||
post: | ||
tags: | ||
- Customer | ||
operationId: uploadFile | ||
summary: Upload customer files | ||
description: Save file in customer file repository | ||
parameters: | ||
- name: id | ||
in: path | ||
required: true | ||
description: Unique identifier of the Customer | ||
schema: | ||
type: string | ||
format: uuid | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/files.yml#/FileCreateDto' | ||
|
||
responses: | ||
201: | ||
description: File uploaded correctly | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/files.yml#/FileId' |
18 changes: 18 additions & 0 deletions
18
openapi-generator/src/test/resources/3_0/multiple/schemas/files.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,18 @@ | ||
FileCreateDto: | ||
type: object | ||
required: | ||
- typeCode | ||
- orgName | ||
description: Organization customer data | ||
properties: | ||
typeCode: | ||
type: string | ||
pattern: ^ORG$ | ||
description: Customer type ORG | ||
default: ORG | ||
example: ORG | ||
orgName: | ||
type: string | ||
|
||
FileId: | ||
type: string |
8 changes: 8 additions & 0 deletions
8
openapi-generator/src/test/resources/3_0/multiple/swagger.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,8 @@ | ||
openapi: "3.0.0" | ||
info: | ||
version: 1.0.0 | ||
title: Swagger Sample | ||
description: Multi-file for OpenAPI Specification. | ||
paths: | ||
/api/customer/{id}/files: | ||
$ref: "./paths/files.yml" |