This repository has been archived by the owner on Feb 5, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
063c489
commit 7a4ffe2
Showing
3 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
src/test/openapi-files/ref-example-with-versioned-message.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,49 @@ | ||
openapi: '3.0.0' | ||
info: | ||
title: Test Service | ||
version: 1.1.0 | ||
|
||
paths: | ||
/v1/users: | ||
get: | ||
operationId: users | ||
summary: List all users | ||
responses: | ||
200: | ||
description: A list of users | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/UserSignup' | ||
/v2/users: | ||
get: | ||
operationId: users2 | ||
summary: List all users | ||
x-eventcatalog-message-version: 2.0.0 | ||
description: | | ||
Returns a list of all users. | ||
This operation is **deprecated**. | ||
responses: | ||
200: | ||
description: A list of users | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/UserSignup' | ||
components: | ||
schemas: | ||
UserSignup: | ||
$ref: 'ref-example-signup-message.yml' | ||
|
||
Date: | ||
type: string | ||
format: date | ||
|
||
DateWithExample: | ||
$ref: '#/components/schemas/Date' | ||
description: Date schema extended with a `default` value... Or not? | ||
default: 2000-01-01 |
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