Skip to content

Commit f1eea3a

Browse files
committed
generated build for 9.3.3
1 parent aab6df7 commit f1eea3a

14 files changed

+68
-32
lines changed

dist/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
docEl.addEventListener('before-try', (e) => {
44
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
55
});
6-
});</script><style>rapi-doc::part(section-navbar-search){
7-
background-color: red;
8-
}</style><body><rapi-doc spec-url="https://petstore.swagger.io/v2/swagger.json" id="thedoc" theme="dark" goto-path="get-/pet/-petId-" render-style="focused" schema-style="table" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="false" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="true" allow-server-selection="true" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true" fill-request-fields-with-example="false"></rapi-doc></body></html>
6+
});</script><body><rapi-doc spec-url="./specs/temp.yaml" id="thedoc" theme="dark" render-style="view" schema-style="table" show-method-in-nav-bar="true" use-path-in-nav-bar="true" show-components="true" show-info="true" show-header="true" allow-search="false" allow-advanced-search="true" allow-spec-url-load="false" allow-spec-file-download="true" allow-server-selection="true" allow-authentication="true" update-route="false" match-type="regex" persist-auth="true"></rapi-doc></body></html>

dist/index.html.gz

-102 Bytes
Binary file not shown.

dist/rapidoc-min.js

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

dist/rapidoc-min.js.LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
/**
6060
* @preserve
61-
* RapiDoc 9.3.2 - WebComponent to View OpenAPI docs
61+
* RapiDoc 9.3.3 - WebComponent to View OpenAPI docs
6262
* License: MIT
6363
* Repo : https://github.com/rapi-doc/RapiDoc
6464
* Author : Mrinmoy Majumdar

dist/rapidoc-min.js.LICENSE.txt.gz

2 Bytes
Binary file not shown.

dist/rapidoc-min.js.gz

55 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

51 Bytes
Binary file not shown.

dist/rapidoc.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
/**
33
* @preserve
4-
* RapiDoc 9.3.2 - WebComponent to View OpenAPI docs
4+
* RapiDoc 9.3.3 - WebComponent to View OpenAPI docs
55
* License: MIT
66
* Repo : https://github.com/rapi-doc/RapiDoc
77
* Author : Mrinmoy Majumdar
@@ -29429,6 +29429,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
2942929429
obj['::title'] = schema.title || '';
2943029430
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
2943129431
obj['::type'] = 'object';
29432+
29433+
if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
29434+
obj['::dataTypeLabel'] = 'object or null';
29435+
}
29436+
2943229437
obj['::deprecated'] = schema.deprecated || false;
2943329438
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';
2943429439

@@ -29450,6 +29455,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
2945029455
obj['::title'] = schema.title || '';
2945129456
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
2945229457
obj['::type'] = 'array';
29458+
29459+
if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
29460+
obj['::dataTypeLabel'] = 'array or null';
29461+
}
29462+
2945329463
obj['::deprecated'] = schema.deprecated || false;
2945429464
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';
2945529465

@@ -30186,7 +30196,7 @@ class SchemaTree extends lit_element_s {
3018630196
<div class='inside-bracket ${data['::type'] || 'no-type-info'}' style='padding-left:${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' ? 0 : leftPadding}px;'>
3018730197
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}` : $`
3018830198
${Object.keys(data).map(dataKey => $`
30189-
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
30199+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
3019030200
`)}
3019130201
`}
3019230202
</div>
@@ -32286,14 +32296,14 @@ class SchemaTable extends lit_element_s {
3228632296
if (dataType === 'array') {
3228732297
detailObjType = 'array of object'; // Array of Object
3228832298
} else {
32289-
detailObjType = 'object';
32299+
detailObjType = data['::dataTypeLabel'] || data['::type'];
3229032300
}
3229132301
} else if (data['::type'] === 'array') {
3229232302
if (dataType === 'array') {
3229332303
// detailObjType = 'array of array'; // Array of array
3229432304
detailObjType = `array of array ${arrayType !== 'object' ? `of ${arrayType}` : ''}`; // Array of array
3229532305
} else {
32296-
detailObjType = 'array';
32306+
detailObjType = data['::dataTypeLabel'] || data['::type'];
3229732307
}
3229832308
}
3229932309

@@ -32331,7 +32341,7 @@ class SchemaTable extends lit_element_s {
3233132341
<div class='object-body'>
3233232342
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, '')}` : $`
3233332343
${Object.keys(data).map(dataKey => $`
32334-
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
32344+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
3233532345
`)}
3233632346
`}
3233732347
<div>
@@ -40459,7 +40469,7 @@ function getType(str) {
4045940469
/******/
4046040470
/******/ /* webpack/runtime/getFullHash */
4046140471
/******/ (() => {
40462-
/******/ __webpack_require__.h = () => ("668fc200d1a4aec66c96")
40472+
/******/ __webpack_require__.h = () => ("86e05890ecd1b58be1fc")
4046340473
/******/ })();
4046440474
/******/
4046540475
/******/ /* webpack/runtime/global */

dist/report.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/rapidoc-min.js

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

docs/rapidoc.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
/**
33
* @preserve
4-
* RapiDoc 9.3.2 - WebComponent to View OpenAPI docs
4+
* RapiDoc 9.3.3 - WebComponent to View OpenAPI docs
55
* License: MIT
66
* Repo : https://github.com/rapi-doc/RapiDoc
77
* Author : Mrinmoy Majumdar
@@ -29429,6 +29429,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
2942929429
obj['::title'] = schema.title || '';
2943029430
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
2943129431
obj['::type'] = 'object';
29432+
29433+
if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
29434+
obj['::dataTypeLabel'] = 'object or null';
29435+
}
29436+
2943229437
obj['::deprecated'] = schema.deprecated || false;
2943329438
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';
2943429439

@@ -29450,6 +29455,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
2945029455
obj['::title'] = schema.title || '';
2945129456
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
2945229457
obj['::type'] = 'array';
29458+
29459+
if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
29460+
obj['::dataTypeLabel'] = 'array or null';
29461+
}
29462+
2945329463
obj['::deprecated'] = schema.deprecated || false;
2945429464
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';
2945529465

@@ -30186,7 +30196,7 @@ class SchemaTree extends lit_element_s {
3018630196
<div class='inside-bracket ${data['::type'] || 'no-type-info'}' style='padding-left:${data['::type'] === 'xxx-of-option' || data['::type'] === 'xxx-of-array' ? 0 : leftPadding}px;'>
3018730197
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}` : $`
3018830198
${Object.keys(data).map(dataKey => $`
30189-
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
30199+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
3019030200
`)}
3019130201
`}
3019230202
</div>
@@ -32286,14 +32296,14 @@ class SchemaTable extends lit_element_s {
3228632296
if (dataType === 'array') {
3228732297
detailObjType = 'array of object'; // Array of Object
3228832298
} else {
32289-
detailObjType = 'object';
32299+
detailObjType = data['::dataTypeLabel'] || data['::type'];
3229032300
}
3229132301
} else if (data['::type'] === 'array') {
3229232302
if (dataType === 'array') {
3229332303
// detailObjType = 'array of array'; // Array of array
3229432304
detailObjType = `array of array ${arrayType !== 'object' ? `of ${arrayType}` : ''}`; // Array of array
3229532305
} else {
32296-
detailObjType = 'array';
32306+
detailObjType = data['::dataTypeLabel'] || data['::type'];
3229732307
}
3229832308
}
3229932309

@@ -32331,7 +32341,7 @@ class SchemaTable extends lit_element_s {
3233132341
<div class='object-body'>
3233232342
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, '')}` : $`
3233332343
${Object.keys(data).map(dataKey => $`
32334-
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
32344+
${['::title', '::description', '::type', '::props', '::deprecated', '::array-type', '::readwrite', '::dataTypeLabel'].includes(dataKey) ? data[dataKey]['::type'] === 'array' || data[dataKey]['::type'] === 'object' ? $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}` : '' : $`${this.generateTree(data[dataKey]['::type'] === 'array' ? data[dataKey]['::props'] : data[dataKey], data[dataKey]['::type'], data[dataKey]['::array-type'] || '', dataKey, data[dataKey]['::description'], newSchemaLevel, newIndentLevel, data[dataKey]['::readwrite'] ? data[dataKey]['::readwrite'] : '')}`}
3233532345
`)}
3233632346
`}
3233732347
<div>
@@ -40459,7 +40469,7 @@ function getType(str) {
4045940469
/******/
4046040470
/******/ /* webpack/runtime/getFullHash */
4046140471
/******/ (() => {
40462-
/******/ __webpack_require__.h = () => ("668fc200d1a4aec66c96")
40472+
/******/ __webpack_require__.h = () => ("86e05890ecd1b58be1fc")
4046340473
/******/ })();
4046440474
/******/
4046540475
/******/ /* webpack/runtime/global */

docs/specs/temp.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ info:
44
version: "1"
55

66
paths:
7+
/test:
8+
get:
9+
summary: Test endpoint
10+
operationId: test
11+
responses:
12+
'200':
13+
description: OK
14+
content:
15+
application/json:
16+
schema:
17+
type: object
18+
properties:
19+
obj:
20+
nullable: true
21+
type: object
22+
properties:
23+
test:
24+
type: string
725
/users:
826
get:
927
responses:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rapidoc",
3-
"version": "9.3.2",
3+
"version": "9.3.3",
44
"description": "RapiDoc - Open API spec viewer with built in console",
55
"author": "Mrinmoy Majumdar <mrin9@yahoo.com>",
66
"homepage": "https://rapidocweb.com",

0 commit comments

Comments
 (0)