-
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.
Add tests for setResolveResponses flag/ Fix existing ones
- Loading branch information
Showing
6 changed files
with
306 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
43 changes: 43 additions & 0 deletions
43
modules/swagger-parser-v3/src/test/resources/resolve-flatten-SH-configuration-test.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,43 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Simple API | ||
version: 1.0.0 | ||
|
||
paths: | ||
/users: | ||
get: | ||
summary: Get list of users | ||
operationId: getUsers | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/SuccessResponse' | ||
'404': | ||
$ref: '#/components/responses/NotFoundResponse' | ||
|
||
components: | ||
responses: | ||
SuccessResponse: | ||
description: A successful response | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
name: | ||
type: string | ||
email: | ||
type: string | ||
NotFoundResponse: | ||
description: Not Found response | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
example: "Resource not found" |
Oops, something went wrong.