-
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 for controller parameters with arrays and enums (#1677)
- Loading branch information
Showing
7 changed files
with
161 additions
and
64 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
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
46 changes: 46 additions & 0 deletions
46
openapi-generator/src/test/resources/3_0/controller-enum2.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,46 @@ | ||
swagger: '2.0' | ||
info: | ||
description: Документация FINTECH REST API | ||
version: '1' | ||
title: FINTECH | ||
contact: { } | ||
basePath: /fintech/api | ||
paths: | ||
/v1/business-cards: | ||
get: | ||
tags: | ||
- BusinessCards | ||
operationId: getBusinessCardsUsingGET | ||
consumes: | ||
- application/json | ||
produces: | ||
- '*/*' | ||
parameters: | ||
- name: Authorization | ||
in: header | ||
description: Access token | ||
required: true | ||
type: string | ||
- name: statusCodes | ||
in: query | ||
description: Список статусов бизнес-карт | ||
required: false | ||
type: array | ||
items: | ||
type: string | ||
collectionFormat: multi | ||
enum: | ||
- ACTIVE | ||
- BLOCKED | ||
- TO_BE_REISSUED | ||
- TO_BE_BLOCKED | ||
- NOT_DELIVERED | ||
- name: page | ||
in: query | ||
description: Номер страницы (начиная с 1) | ||
required: true | ||
type: integer | ||
format: int32 | ||
responses: | ||
'200': | ||
description: OK |