Skip to content

Commit 5025b21

Browse files
committed
Fixed issue with recursive reference causing RangeError
1 parent c4cb88c commit 5025b21

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
openapi: "3.0.0"
2+
info:
3+
version: 1.0.0
4+
title: Swagger Petstore
5+
license:
6+
name: MIT
7+
servers:
8+
- url: http://petstore.swagger.io/v1
9+
paths:
10+
/pets:
11+
get:
12+
summary: List all pets
13+
operationId: listPets
14+
tags:
15+
- pets
16+
parameters:
17+
- $ref: "#/components/parameters/rec-param"
18+
responses:
19+
"401":
20+
$ref: "#/components/responses/Unauthorized"
21+
default:
22+
$ref: "#/components/responses/paramA"
23+
components:
24+
parameters:
25+
rec-param:
26+
$ref: "#/components/parameters/rec-param"
27+
responses:
28+
Unauthorized:
29+
$ref: "#/components/responses/Unauthorized"
30+
paramA:
31+
$ref: "#/components/responses/paramB"
32+
paramB:
33+
$ref: "#/components/responses/paramC"
34+
paramC:
35+
$ref: "#/components/responses/paramA"

0 commit comments

Comments
 (0)