-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recursion issue with reading references which are included multip…
…le times fixes #44
- Loading branch information
Showing
3 changed files
with
79 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
openapi: 3.0.2 | ||
info: | ||
title: My API | ||
version: "123" | ||
components: | ||
schemas: | ||
SomeResponse: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
description: Name of SomeResponse | ||
recursive: | ||
$ref: '#/components/schemas/RecursiveItem' | ||
|
||
AnotherResponse: | ||
type: object | ||
properties: | ||
uuid: | ||
type: string | ||
format: uuid | ||
description: UUID of AnotherResponse | ||
recursive: | ||
$ref: '#/components/schemas/RecursiveItem' | ||
|
||
|
||
RecursiveItem: | ||
type: object | ||
properties: | ||
children: | ||
type: array | ||
items: | ||
oneOf: | ||
- $ref: '#/components/schemas/RecursiveItem' | ||
- $ref: '#/components/schemas/SomeResponse' | ||
|
||
|
||
paths: | ||
'/': | ||
get: | ||
description: default | ||
responses: | ||
200: | ||
description: ok |