Skip to content

Commit e2b370c

Browse files
committed
Fixed issues with multiple security schemes
1 parent 26faffe commit e2b370c

15 files changed

+652
-313
lines changed

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
-->
1919

2020
<rapi-doc
21-
spec-url="https://petstore.swagger.io/v2/swagger.json"
21+
spec-url="./examples/specs/petstore3.yaml"
2222
layout="row"
2323
theme="dark"
2424
>

dist/index.html.gz

10 Bytes
Binary file not shown.

dist/rapidoc-min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.gz

30 Bytes
Binary file not shown.

dist/rapidoc-min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rapidoc-min.js.map.gz

-1 Bytes
Binary file not shown.

dist/report.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/examples/specs/petstore3.yaml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
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+
- name: limit
18+
in: query
19+
description: How many items to return at one time (max 100)
20+
required: false
21+
schema:
22+
type: integer
23+
format: int32
24+
responses:
25+
'200':
26+
description: A paged array of pets
27+
headers:
28+
x-next:
29+
description: A link to the next page of responses
30+
schema:
31+
type: string
32+
content:
33+
application/json:
34+
schema:
35+
$ref: "#/components/schemas/Pets"
36+
default:
37+
description: unexpected error
38+
content:
39+
application/json:
40+
schema:
41+
$ref: "#/components/schemas/Error"
42+
post:
43+
summary: Create a pet
44+
operationId: createPets
45+
tags:
46+
- pets
47+
responses:
48+
'201':
49+
description: Null response
50+
default:
51+
description: unexpected error
52+
content:
53+
application/json:
54+
schema:
55+
$ref: "#/components/schemas/Error"
56+
/pets/{petId}:
57+
get:
58+
summary: Info for a specific pet
59+
operationId: showPetById
60+
tags:
61+
- pets
62+
parameters:
63+
- name: petId
64+
in: path
65+
required: true
66+
description: The id of the pet to retrieve
67+
schema:
68+
type: string
69+
responses:
70+
'200':
71+
description: Expected response to a valid request
72+
content:
73+
application/json:
74+
schema:
75+
$ref: "#/components/schemas/Pets"
76+
default:
77+
description: unexpected error
78+
content:
79+
application/json:
80+
schema:
81+
$ref: "#/components/schemas/Error"
82+
components:
83+
securitySchemes:
84+
BasicAuth:
85+
type: http
86+
scheme: basic
87+
BearerAuth:
88+
type: http
89+
scheme: bearer
90+
ApiKeyAuth1:
91+
type: apiKey
92+
in: header
93+
name: X-API-Key1
94+
ApiKeyAuth2:
95+
type: apiKey
96+
in: header
97+
name: X-API-Key2
98+
schemas:
99+
Pet:
100+
required:
101+
- id
102+
- name
103+
properties:
104+
id:
105+
type: integer
106+
format: int64
107+
name:
108+
type: string
109+
tag:
110+
type: string
111+
Pets:
112+
type: array
113+
items:
114+
$ref: "#/components/schemas/Pet"
115+
Error:
116+
required:
117+
- code
118+
- message
119+
properties:
120+
code:
121+
type: integer
122+
format: int32
123+
message:
124+
type: string

docs/rapidoc-min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
-->
1919

2020
<rapi-doc
21-
spec-url="https://petstore.swagger.io/v2/swagger.json"
21+
spec-url="./examples/specs/petstore3.yaml"
2222
layout="row"
2323
theme="dark"
2424
>

0 commit comments

Comments
 (0)