rapidoc 9.1.3 → 9.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/index.html.gz +0 -0
- package/dist/rapidoc-min.js +2 -2
- package/dist/rapidoc-min.js.LICENSE.txt +17 -1
- package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
- package/dist/rapidoc-min.js.gz +0 -0
- package/dist/report.html +6 -5
- package/docker/Dockerfile +5 -5
- package/docs/api.html +12 -5
- package/docs/examples/dynamic-query-params.html +1 -0
- package/docs/examples/readwrite.html +40 -0
- package/docs/examples.html +3 -2
- package/docs/index.html +2 -2
- package/docs/list.html +6 -2
- package/docs/quickstart.html +1 -1
- package/docs/rapidoc-min.js +2 -2
- package/docs/specs/code-highlight.yaml +1 -1
- package/docs/specs/data-types.yaml +0 -1
- package/docs/specs/examples.yaml +11 -0
- package/docs/specs/petstore_extended.yaml +1 -1
- package/docs/specs/readwrite.yaml +90 -0
- package/docs/specs/temp.json +24 -105
- package/docs/specs/temp.yaml +20 -282
- package/docs/welcome.html +3 -3
- package/index.html +8 -5
- package/package.json +22 -21
- package/src/components/api-request.js +78 -41
- package/src/components/api-response.js +10 -10
- package/src/components/schema-table.js +51 -14
- package/src/components/schema-tree.js +59 -18
- package/src/components/tag-input.js +8 -1
- package/src/json-schema-viewer.js +1 -1
- package/src/rapidoc-mini.js +5 -1
- package/src/rapidoc.js +5 -1
- package/src/styles/font-styles.js +3 -2
- package/src/styles/nav-styles.js +2 -2
- package/src/templates/components-template.js +5 -5
- package/src/templates/endpoint-template.js +1 -1
- package/src/templates/expanded-endpoint-template.js +1 -1
- package/src/templates/focused-endpoint-template.js +1 -1
- package/src/templates/header-template.js +1 -1
- package/src/templates/json-schema-viewer-template.js +8 -8
- package/src/templates/main-body-template.js +4 -1
- package/src/templates/navbar-template.js +2 -2
- package/src/templates/overview-template.js +5 -2
- package/src/templates/security-scheme-template.js +48 -13
- package/src/templates/server-template.js +1 -1
- package/src/utils/common-utils.js +2 -1
- package/src/utils/schema-utils.js +14 -9
- package/src/utils/spec-parser.js +3 -3
- package/webpack.config.js +1 -0
- package/docs/specs/tenants.json +0 -12
|
@@ -60,7 +60,7 @@ info:
|
|
|
60
60
|
|
|
61
61
|
<html>
|
|
62
62
|
<head>
|
|
63
|
-
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8
|
|
63
|
+
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
|
|
64
64
|
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
|
|
65
65
|
</head>
|
|
66
66
|
<body>
|
package/docs/specs/examples.yaml
CHANGED
|
@@ -60,6 +60,17 @@ paths:
|
|
|
60
60
|
value: "unmarried"
|
|
61
61
|
example3:
|
|
62
62
|
value: "widowed"
|
|
63
|
+
- name: luckyNumbers
|
|
64
|
+
in: query
|
|
65
|
+
schema:
|
|
66
|
+
type: array
|
|
67
|
+
items:
|
|
68
|
+
type: number
|
|
69
|
+
minItems: 4
|
|
70
|
+
maxItems: 4
|
|
71
|
+
examples:
|
|
72
|
+
- [10]
|
|
73
|
+
- [10, 20, 30, 40]
|
|
63
74
|
|
|
64
75
|
/multiple-examples-by-response-type:
|
|
65
76
|
get:
|
|
@@ -69,7 +69,7 @@ info:
|
|
|
69
69
|
<!doctype html> <!-- Important: must specify -->
|
|
70
70
|
<html>
|
|
71
71
|
<head>
|
|
72
|
-
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8
|
|
72
|
+
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
|
|
73
73
|
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
|
|
74
74
|
</head>
|
|
75
75
|
<body>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
title: "RaedOnly and WriteOnly Testcase "
|
|
5
|
+
paths:
|
|
6
|
+
/read-write:
|
|
7
|
+
post:
|
|
8
|
+
summary: "Request doesn't show the read-only and Response doesn't show write-only"
|
|
9
|
+
requestBody:
|
|
10
|
+
content:
|
|
11
|
+
application/json:
|
|
12
|
+
schema:
|
|
13
|
+
properties:
|
|
14
|
+
holder:
|
|
15
|
+
$ref: '#/components/schemas/Holder'
|
|
16
|
+
responses:
|
|
17
|
+
'200':
|
|
18
|
+
description: Successful operation
|
|
19
|
+
content:
|
|
20
|
+
application/json:
|
|
21
|
+
schema:
|
|
22
|
+
type: array
|
|
23
|
+
items:
|
|
24
|
+
$ref: '#/components/schemas/Holder'
|
|
25
|
+
|
|
26
|
+
components:
|
|
27
|
+
schemas:
|
|
28
|
+
Holder:
|
|
29
|
+
type: object
|
|
30
|
+
properties:
|
|
31
|
+
id:
|
|
32
|
+
type: integer
|
|
33
|
+
name:
|
|
34
|
+
type: string
|
|
35
|
+
others:
|
|
36
|
+
$ref: '#/components/schemas/other'
|
|
37
|
+
other:
|
|
38
|
+
type: object
|
|
39
|
+
required:
|
|
40
|
+
- obj-regular
|
|
41
|
+
properties:
|
|
42
|
+
primitive:
|
|
43
|
+
type: integer
|
|
44
|
+
primitive-readonly:
|
|
45
|
+
readOnly: true
|
|
46
|
+
type: integer
|
|
47
|
+
obj-regular:
|
|
48
|
+
type: object
|
|
49
|
+
properties:
|
|
50
|
+
obj-prop1:
|
|
51
|
+
type: integer
|
|
52
|
+
obj-prop2:
|
|
53
|
+
type: integer
|
|
54
|
+
obj-prop-readonly:
|
|
55
|
+
readOnly: true
|
|
56
|
+
type: integer
|
|
57
|
+
obj-prop-writeonly:
|
|
58
|
+
writeOnly: true
|
|
59
|
+
type: integer
|
|
60
|
+
primitive-writeonly:
|
|
61
|
+
writeOnly: true
|
|
62
|
+
type: integer
|
|
63
|
+
obj-readonly:
|
|
64
|
+
type: object
|
|
65
|
+
readOnly: true
|
|
66
|
+
properties:
|
|
67
|
+
c1:
|
|
68
|
+
type: integer
|
|
69
|
+
c2:
|
|
70
|
+
type: integer
|
|
71
|
+
obj-writeonly:
|
|
72
|
+
type: object
|
|
73
|
+
writeOnly: true
|
|
74
|
+
properties:
|
|
75
|
+
d1:
|
|
76
|
+
type: integer
|
|
77
|
+
d2:
|
|
78
|
+
type: integer
|
|
79
|
+
arr-readonly:
|
|
80
|
+
type: array
|
|
81
|
+
readOnly: true
|
|
82
|
+
items:
|
|
83
|
+
type: string
|
|
84
|
+
arr-writeonly:
|
|
85
|
+
type: array
|
|
86
|
+
writeOnly: true
|
|
87
|
+
items:
|
|
88
|
+
type: string
|
|
89
|
+
g:
|
|
90
|
+
type: integer
|
package/docs/specs/temp.json
CHANGED
|
@@ -1,115 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"components": {},
|
|
3
3
|
"info": {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"version": "1.0.0"
|
|
4
|
+
"title": "Example Schema",
|
|
5
|
+
"version": "0.0.1"
|
|
7
6
|
},
|
|
8
|
-
"
|
|
9
|
-
{
|
|
10
|
-
"url": "https://picsum.photos/",
|
|
11
|
-
"description": "picsum photos"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
7
|
+
"openapi": "3.0.3",
|
|
14
8
|
"paths": {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
"name": "height",
|
|
36
|
-
"in": "path",
|
|
37
|
-
"description": "photo height",
|
|
38
|
-
"required": true,
|
|
39
|
-
"example": 100,
|
|
40
|
-
"schema": {
|
|
41
|
-
"minimum": 100,
|
|
42
|
-
"type": "integer",
|
|
43
|
-
"format": "int32"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"responses": {
|
|
48
|
-
"200": {
|
|
49
|
-
"description": "Default response",
|
|
50
|
-
"content": {
|
|
51
|
-
"application/json": {
|
|
52
|
-
"schema": {
|
|
53
|
-
"type": "object",
|
|
54
|
-
"properties": {
|
|
55
|
-
"data": {
|
|
56
|
-
"type": "object",
|
|
57
|
-
"properties": {
|
|
58
|
-
"attributes": {
|
|
59
|
-
"type": "object",
|
|
60
|
-
"properties": {
|
|
61
|
-
"randomId": {
|
|
62
|
-
"type": "integer"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"anyOf": [
|
|
66
|
-
{
|
|
67
|
-
"oneOf": [
|
|
68
|
-
{
|
|
69
|
-
"properties": {
|
|
70
|
-
"title1": {
|
|
71
|
-
"type": "string"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"properties": {
|
|
77
|
-
"examId1": {
|
|
78
|
-
"type": "integer"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"oneOf": [
|
|
86
|
-
{
|
|
87
|
-
"properties": {
|
|
88
|
-
"title2": {
|
|
89
|
-
"type": "string"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"properties": {
|
|
95
|
-
"examId2": {
|
|
96
|
-
"type": "integer"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
9
|
+
"/api/v1/example": {
|
|
10
|
+
"get": {
|
|
11
|
+
"operationId": "v1_example",
|
|
12
|
+
"description": "Example API",
|
|
13
|
+
"parameters": [
|
|
14
|
+
{
|
|
15
|
+
"in": "query",
|
|
16
|
+
"name": "boolean_query_parameter",
|
|
17
|
+
"schema": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"in": "query",
|
|
24
|
+
"name": "integer_query_parameter",
|
|
25
|
+
"schema": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"default": 0
|
|
104
28
|
}
|
|
105
|
-
}
|
|
106
29
|
}
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
}
|
|
30
|
+
]
|
|
110
31
|
}
|
|
111
|
-
}
|
|
112
32
|
}
|
|
113
|
-
}
|
|
114
33
|
}
|
|
115
34
|
}
|
package/docs/specs/temp.yaml
CHANGED
|
@@ -1,298 +1,36 @@
|
|
|
1
1
|
openapi: 3.0.0
|
|
2
2
|
info:
|
|
3
|
-
|
|
3
|
+
title: all-of Models
|
|
4
|
+
description: Model composition using all-of
|
|
4
5
|
version: 1.0.0
|
|
5
|
-
title: Testing different data-types
|
|
6
6
|
paths:
|
|
7
|
-
/
|
|
8
|
-
post:
|
|
9
|
-
tags:
|
|
10
|
-
- Test with various data types
|
|
11
|
-
summary: Request Body accepting a JSON
|
|
12
|
-
requestBody:
|
|
13
|
-
content:
|
|
14
|
-
application/json:
|
|
15
|
-
schema:
|
|
16
|
-
$ref: "#/components/schemas/person"
|
|
17
|
-
/nested-object:
|
|
7
|
+
/all-of/employee:
|
|
18
8
|
get:
|
|
19
|
-
|
|
20
|
-
- Test with various data types
|
|
21
|
-
summary: Nested object
|
|
22
|
-
description: Response schema is made up of multiple nested object, For simple schema check out [simple object](#get-/simple-object)
|
|
9
|
+
summary: List of employees
|
|
23
10
|
responses:
|
|
24
|
-
|
|
25
|
-
description: successful operation
|
|
11
|
+
"200":
|
|
26
12
|
content:
|
|
27
13
|
application/json:
|
|
28
14
|
schema:
|
|
29
15
|
type: object
|
|
30
|
-
|
|
31
|
-
properties:
|
|
32
|
-
age:
|
|
33
|
-
description: Person's **Age** (age must be bold)
|
|
34
|
-
type: integer
|
|
35
|
-
fullName:
|
|
36
|
-
description: Person's Full name
|
|
37
|
-
type: object
|
|
38
|
-
properties:
|
|
39
|
-
firstName:
|
|
40
|
-
description: _First name_ (First name should be italics)
|
|
41
|
-
type: string
|
|
42
|
-
lastName:
|
|
43
|
-
description: |
|
|
44
|
-
`Last name` (last name must be monospaced)
|
|
45
|
-
type: string
|
|
46
|
-
dependentIds:
|
|
47
|
-
type: array
|
|
48
|
-
description: IDs of Dependents .
|
|
49
|
-
items:
|
|
50
|
-
type: integer
|
|
51
|
-
dependentNames:
|
|
52
|
-
type: array
|
|
53
|
-
description: Full Name of **Dependents** (Dependents must be bold).
|
|
54
|
-
items:
|
|
55
|
-
type: object
|
|
56
|
-
properties:
|
|
57
|
-
firstNameParts:
|
|
58
|
-
description: Parts of **First Name** (First Name must be bold)
|
|
59
|
-
type: object
|
|
60
|
-
properties:
|
|
61
|
-
firstName:
|
|
62
|
-
description: This is a very very long description to test how will it show up on a API spec renderer tool such as RapiDoc. This lable must be big enough to wrap into next line
|
|
63
|
-
type: string
|
|
64
|
-
aLongFieldForTestingHowItShowsUpInSchemaModelWhenItEncountersLongField:
|
|
65
|
-
description: Dependent Last Name
|
|
66
|
-
type: string
|
|
67
|
-
dependentLastName:
|
|
68
|
-
description: Dependent Last Name
|
|
69
|
-
type: string
|
|
70
|
-
hobbies:
|
|
71
|
-
type: array
|
|
72
|
-
description: array of objects
|
|
73
|
-
items:
|
|
74
|
-
type: object
|
|
75
|
-
|
|
76
|
-
/simple-object:
|
|
77
|
-
get:
|
|
78
|
-
tags:
|
|
79
|
-
- Test with various data types
|
|
80
|
-
summary: Simple object
|
|
81
|
-
description: Response schema is a simple object, which contains only primitive properties. For complex schema check out [nested object](#get-/nested-object)
|
|
82
|
-
responses:
|
|
83
|
-
'200':
|
|
84
|
-
description: successful operation
|
|
85
|
-
content:
|
|
86
|
-
application/json:
|
|
87
|
-
schema:
|
|
88
|
-
type: object
|
|
89
|
-
properties:
|
|
90
|
-
name:
|
|
91
|
-
description: Person Name
|
|
92
|
-
type: string
|
|
93
|
-
age:
|
|
94
|
-
description: Person Age
|
|
95
|
-
type: integer
|
|
96
|
-
minimum: 1
|
|
97
|
-
maximum: 100
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/person:
|
|
101
|
-
post:
|
|
102
|
-
tags:
|
|
103
|
-
- Test with various data types
|
|
104
|
-
summary: Data Types with constraints
|
|
105
|
-
description: Request-Parameters and Response-Schema contains various data types and constrains. Check out how is it desplayed below
|
|
106
|
-
parameters:
|
|
107
|
-
- name: height
|
|
108
|
-
in: query
|
|
109
|
-
description: height (in inches)
|
|
110
|
-
required: true
|
|
111
|
-
example: 70
|
|
112
|
-
schema:
|
|
113
|
-
type: integer
|
|
114
|
-
format: int32
|
|
115
|
-
minimum: 12
|
|
116
|
-
maximum: 120
|
|
117
|
-
- name: full-name
|
|
118
|
-
in: query
|
|
119
|
-
description: Name of a person
|
|
120
|
-
required: true
|
|
121
|
-
schema:
|
|
122
|
-
type: string
|
|
123
|
-
minimum: 3
|
|
124
|
-
- name: social-connection
|
|
125
|
-
in: query
|
|
126
|
-
description: facebook, linkedin, github, instagram, twitter etc
|
|
127
|
-
schema:
|
|
128
|
-
type: string
|
|
129
|
-
format: url
|
|
130
|
-
- name: email
|
|
131
|
-
in: query
|
|
132
|
-
required: true
|
|
133
|
-
schema:
|
|
134
|
-
type: string
|
|
135
|
-
format: email
|
|
136
|
-
- name: email-password
|
|
137
|
-
in: query
|
|
138
|
-
required: true
|
|
139
|
-
schema:
|
|
140
|
-
type: string
|
|
141
|
-
format: password
|
|
142
|
-
- name: date-of-birth
|
|
143
|
-
in: query
|
|
144
|
-
required: true
|
|
145
|
-
schema:
|
|
146
|
-
type: string
|
|
147
|
-
format: date
|
|
148
|
-
- name: phone
|
|
149
|
-
in: query
|
|
150
|
-
schema:
|
|
151
|
-
type: string
|
|
152
|
-
pattern: '/^\+(?:[0-9]-?){6,14}[0-9]$/'
|
|
153
|
-
- name: marital-status
|
|
154
|
-
in: query
|
|
155
|
-
required: true
|
|
156
|
-
example: married
|
|
157
|
-
schema:
|
|
158
|
-
type: string
|
|
159
|
-
enum:
|
|
160
|
-
- married
|
|
161
|
-
- unmarried
|
|
162
|
-
- widowed
|
|
163
|
-
- unknown
|
|
164
|
-
default: unknown
|
|
165
|
-
- name: interests
|
|
166
|
-
in: query
|
|
167
|
-
required: true
|
|
168
|
-
description: __Exploded Array__ will send separate querystring parameter for each items eg - `interests=computers&interests=movies`
|
|
169
|
-
schema:
|
|
170
|
-
type: array
|
|
171
|
-
example:
|
|
172
|
-
- computers
|
|
173
|
-
- reading
|
|
174
|
-
- ['music', 'movies']
|
|
175
|
-
minItems: 1
|
|
176
|
-
maxItems: 3
|
|
177
|
-
items:
|
|
178
|
-
type: string
|
|
179
|
-
enum:
|
|
180
|
-
- computers
|
|
181
|
-
- hiking
|
|
182
|
-
- swiming
|
|
183
|
-
- movies
|
|
184
|
-
- music
|
|
185
|
-
- dancing
|
|
186
|
-
- reading
|
|
187
|
-
- painting
|
|
188
|
-
default: hiking
|
|
189
|
-
- name: tags
|
|
190
|
-
in: query
|
|
191
|
-
description: __Not Exploded Array__ will send a single querystring parameter with comma separated string eg - `tags=tall,dark,handsome`
|
|
192
|
-
style: form
|
|
193
|
-
explode: false
|
|
194
|
-
schema:
|
|
195
|
-
type: array
|
|
196
|
-
items:
|
|
197
|
-
type: string
|
|
198
|
-
responses:
|
|
199
|
-
'200':
|
|
200
|
-
description: successful operation
|
|
201
|
-
content:
|
|
202
|
-
application/json:
|
|
203
|
-
schema:
|
|
204
|
-
type: array
|
|
205
|
-
items:
|
|
206
|
-
$ref: '#/components/schemas/person'
|
|
16
|
+
$ref: "#/components/schemas/person"
|
|
207
17
|
components:
|
|
18
|
+
securitySchemes:
|
|
19
|
+
JWT:
|
|
20
|
+
type: http
|
|
21
|
+
scheme: bearer
|
|
22
|
+
bearerFormat: JWT
|
|
23
|
+
ApiKey:
|
|
24
|
+
type: apiKey
|
|
25
|
+
in: header
|
|
26
|
+
name: API_TOKEN
|
|
208
27
|
schemas:
|
|
209
|
-
category:
|
|
210
|
-
type: object
|
|
211
|
-
properties:
|
|
212
|
-
catId:
|
|
213
|
-
description: Category ID
|
|
214
|
-
allOf:
|
|
215
|
-
- $ref: '#/components/schemas/id'
|
|
216
|
-
name:
|
|
217
|
-
description: Category name
|
|
218
|
-
type: string
|
|
219
|
-
deprecated: true
|
|
220
|
-
id:
|
|
221
|
-
type: string
|
|
222
|
-
format: uuid
|
|
223
|
-
readOnly: true
|
|
224
28
|
person:
|
|
225
29
|
type: object
|
|
226
30
|
required:
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
properties:
|
|
230
|
-
|
|
231
|
-
description: Pet ID
|
|
232
|
-
allOf:
|
|
233
|
-
- $ref: '#/components/schemas/id'
|
|
234
|
-
category:
|
|
235
|
-
description: Categories this person belongs to
|
|
236
|
-
allOf:
|
|
237
|
-
- $ref: '#/components/schemas/category'
|
|
238
|
-
country:
|
|
239
|
-
type: object
|
|
240
|
-
deprecated: true
|
|
241
|
-
properties:
|
|
242
|
-
countryCode:
|
|
243
|
-
type: string
|
|
244
|
-
countryName:
|
|
245
|
-
type: string
|
|
246
|
-
dependentIds:
|
|
247
|
-
type: array
|
|
248
|
-
deprecated: true
|
|
249
|
-
description: IDs of Dependents .
|
|
250
|
-
items:
|
|
251
|
-
type: integer
|
|
252
|
-
example:
|
|
253
|
-
- 278
|
|
254
|
-
- 279
|
|
255
|
-
- 280
|
|
256
|
-
- 281
|
|
257
|
-
name:
|
|
258
|
-
description: Name of the person
|
|
259
|
-
type: string
|
|
260
|
-
minLength: 4
|
|
261
|
-
example: Guru
|
|
262
|
-
photoUrls:
|
|
263
|
-
description: The list of URL to a cute photos featuring pet
|
|
264
|
-
type: array
|
|
265
|
-
maxItems: 20
|
|
266
|
-
items:
|
|
31
|
+
- prop1
|
|
32
|
+
anyOf:
|
|
33
|
+
- properties:
|
|
34
|
+
prop1:
|
|
267
35
|
type: string
|
|
268
|
-
|
|
269
|
-
tags:
|
|
270
|
-
description: Tags attached to the pet
|
|
271
|
-
type: array
|
|
272
|
-
minItems: 1
|
|
273
|
-
items:
|
|
274
|
-
$ref: '#/components/schemas/tag'
|
|
275
|
-
maritalStatus:
|
|
276
|
-
type: string
|
|
277
|
-
description: Marital status in case of adult
|
|
278
|
-
enum:
|
|
279
|
-
- married
|
|
280
|
-
- unmarried
|
|
281
|
-
- widowed
|
|
282
|
-
phone:
|
|
283
|
-
description: phone number in international format
|
|
284
|
-
type: string
|
|
285
|
-
pattern: '/^\+(?:[0-9]-?){6,14}[0-9]$/'
|
|
286
|
-
example: 123
|
|
287
|
-
nullable: true
|
|
288
|
-
tag:
|
|
289
|
-
type: object
|
|
290
|
-
properties:
|
|
291
|
-
id:
|
|
292
|
-
description: Tag ID
|
|
293
|
-
allOf:
|
|
294
|
-
- $ref: '#/components/schemas/id'
|
|
295
|
-
name:
|
|
296
|
-
description: Tag name
|
|
297
|
-
type: string
|
|
298
|
-
minLength: 1
|
|
36
|
+
description: Employee ID
|
package/docs/welcome.html
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
<meta charset="utf-8">
|
|
16
16
|
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
17
17
|
<meta name="description" content="RapiDoc is Web Component for viewing Swagger & OpenAPI Spec. Supports themes, styling and various rendering styles">
|
|
18
|
-
<meta name="keywords" content="
|
|
19
|
-
|
|
18
|
+
<meta name="keywords" content="RapiDoc, openapi viewer, openapi to html, openapi renderer, ReDoc, Swagger, SwaggerUI, Custom Element, Web Component, OpenAPI, REST, themes, dark mode, markdown, API documentation, API mock">
|
|
19
|
+
|
|
20
20
|
<link rel="shortcut icon" type="image/png" href="./images/logo.png"/>
|
|
21
21
|
|
|
22
22
|
<!-- Fonts -->
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
<pre class="shadow code-block"><code class="html" style="border-radius:4px"><!doctype html> <!-- Important: must specify -->
|
|
268
268
|
<html>
|
|
269
269
|
<head>
|
|
270
|
-
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8
|
|
270
|
+
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
|
|
271
271
|
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
|
|
272
272
|
</head>
|
|
273
273
|
<body>
|
package/index.html
CHANGED
|
@@ -30,22 +30,25 @@
|
|
|
30
30
|
./specs/oneof1.yaml <<< nested oneof
|
|
31
31
|
-->
|
|
32
32
|
<rapi-doc
|
|
33
|
-
spec-url = "./specs/
|
|
33
|
+
spec-url = "./specs/temp.yaml"
|
|
34
34
|
id="thedoc"
|
|
35
35
|
theme = "dark"
|
|
36
36
|
render-style="read"
|
|
37
37
|
schema-style="tree"
|
|
38
|
+
use-path-in-nav-bar="true"
|
|
38
39
|
show-components = "true"
|
|
39
40
|
show-info = "true"
|
|
40
41
|
show-header = "true"
|
|
42
|
+
allow-search = "false"
|
|
43
|
+
allow-advanced-search = "true"
|
|
41
44
|
allow-spec-url-load="false"
|
|
42
45
|
allow-spec-file-load="false"
|
|
43
|
-
allow-
|
|
44
|
-
allow-
|
|
45
|
-
allow-
|
|
46
|
-
allow-authentication = "false"
|
|
46
|
+
allow-spec-file-download="true"
|
|
47
|
+
allow-server-selection = "true"
|
|
48
|
+
allow-authentication = "true"
|
|
47
49
|
update-route="false"
|
|
48
50
|
match-type="regex"
|
|
51
|
+
persist-auth="true"
|
|
49
52
|
></rapi-doc>
|
|
50
53
|
<!--
|
|
51
54
|
<rapi-doc-mini
|