-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1769 from eliyahus/master
fix for issue 1767 - OpenAPI v2 converter
- Loading branch information
Showing
3 changed files
with
60 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
41 changes: 41 additions & 0 deletions
41
modules/swagger-parser-v2-converter/src/test/resources/issue-1767.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,41 @@ | ||
swagger: '2.0' | ||
basePath: / | ||
paths: | ||
/api/not-secured: | ||
get: | ||
responses: | ||
'200': | ||
description: Success | ||
summary: Not secured API | ||
operationId: not_secured_api | ||
security: [] | ||
tags: | ||
- not-secured | ||
/api/secured/: | ||
get: | ||
responses: | ||
'200': | ||
description: Success | ||
summary: Secured API | ||
operationId: secured_api | ||
tags: | ||
- secured | ||
info: | ||
title: Sample spec | ||
version: 0.1.0 | ||
produces: | ||
- application/json | ||
consumes: | ||
- application/json | ||
securityDefinitions: | ||
api_key: | ||
type: apiKey | ||
in: header | ||
name: Authorization | ||
security: | ||
- api_key: [] | ||
tags: | ||
- name: not-secured | ||
description: API not secured | ||
- name: secured | ||
description: API secured |