Skip to content

Commit

Permalink
generated build for 9.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Jul 4, 2022
1 parent aab6df7 commit f1eea3a
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 32 deletions.
4 changes: 1 addition & 3 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
docEl.addEventListener('before-try', (e) => {
e.detail.request.headers.append('AAA-BBB', 'CCC DDDD');
});
});</script><style>rapi-doc::part(section-navbar-search){
background-color: red;
}</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>
});</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>
Binary file modified dist/index.html.gz
Binary file not shown.
12 changes: 6 additions & 6 deletions dist/rapidoc-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rapidoc-min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

/**
* @preserve
* RapiDoc 9.3.2 - WebComponent to View OpenAPI docs
* RapiDoc 9.3.3 - WebComponent to View OpenAPI docs
* License: MIT
* Repo : https://github.com/rapi-doc/RapiDoc
* Author : Mrinmoy Majumdar
Expand Down
Binary file modified dist/rapidoc-min.js.LICENSE.txt.gz
Binary file not shown.
Binary file modified dist/rapidoc-min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/rapidoc-min.js.map

Large diffs are not rendered by default.

Binary file modified dist/rapidoc-min.js.map.gz
Binary file not shown.
22 changes: 16 additions & 6 deletions dist/rapidoc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* @preserve
* RapiDoc 9.3.2 - WebComponent to View OpenAPI docs
* RapiDoc 9.3.3 - WebComponent to View OpenAPI docs
* License: MIT
* Repo : https://github.com/rapi-doc/RapiDoc
* Author : Mrinmoy Majumdar
Expand Down Expand Up @@ -29429,6 +29429,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
obj['::title'] = schema.title || '';
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
obj['::type'] = 'object';

if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
obj['::dataTypeLabel'] = 'object or null';
}

obj['::deprecated'] = schema.deprecated || false;
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';

Expand All @@ -29450,6 +29455,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
obj['::title'] = schema.title || '';
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
obj['::type'] = 'array';

if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
obj['::dataTypeLabel'] = 'array or null';
}

obj['::deprecated'] = schema.deprecated || false;
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';

Expand Down Expand Up @@ -30186,7 +30196,7 @@ class SchemaTree extends lit_element_s {
<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;'>
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}` : $`
${Object.keys(data).map(dataKey => $`
${['::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'] : '')}`}
${['::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'] : '')}`}
`)}
`}
</div>
Expand Down Expand Up @@ -32286,14 +32296,14 @@ class SchemaTable extends lit_element_s {
if (dataType === 'array') {
detailObjType = 'array of object'; // Array of Object
} else {
detailObjType = 'object';
detailObjType = data['::dataTypeLabel'] || data['::type'];
}
} else if (data['::type'] === 'array') {
if (dataType === 'array') {
// detailObjType = 'array of array'; // Array of array
detailObjType = `array of array ${arrayType !== 'object' ? `of ${arrayType}` : ''}`; // Array of array
} else {
detailObjType = 'array';
detailObjType = data['::dataTypeLabel'] || data['::type'];
}
}

Expand Down Expand Up @@ -32331,7 +32341,7 @@ class SchemaTable extends lit_element_s {
<div class='object-body'>
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, '')}` : $`
${Object.keys(data).map(dataKey => $`
${['::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'] : '')}`}
${['::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'] : '')}`}
`)}
`}
<div>
Expand Down Expand Up @@ -40459,7 +40469,7 @@ function getType(str) {
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ (() => {
/******/ __webpack_require__.h = () => ("668fc200d1a4aec66c96")
/******/ __webpack_require__.h = () => ("86e05890ecd1b58be1fc")
/******/ })();
/******/
/******/ /* webpack/runtime/global */
Expand Down
4 changes: 2 additions & 2 deletions dist/report.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/rapidoc-min.js

Large diffs are not rendered by default.

22 changes: 16 additions & 6 deletions docs/rapidoc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* @preserve
* RapiDoc 9.3.2 - WebComponent to View OpenAPI docs
* RapiDoc 9.3.3 - WebComponent to View OpenAPI docs
* License: MIT
* Repo : https://github.com/rapi-doc/RapiDoc
* Author : Mrinmoy Majumdar
Expand Down Expand Up @@ -29429,6 +29429,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
obj['::title'] = schema.title || '';
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
obj['::type'] = 'object';

if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
obj['::dataTypeLabel'] = 'object or null';
}

obj['::deprecated'] = schema.deprecated || false;
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';

Expand All @@ -29450,6 +29455,11 @@ function schemaInObjectNotation(schema, obj, level = 0, suffix = '') {
obj['::title'] = schema.title || '';
obj['::description'] = generateMarkdownForArrayAndObjectDescription(schema, level);
obj['::type'] = 'array';

if (Array.isArray(schema.type) && schema.type.includes('null') || schema.nullable) {
obj['::dataTypeLabel'] = 'array or null';
}

obj['::deprecated'] = schema.deprecated || false;
obj['::readwrite'] = schema.readOnly ? 'readonly' : schema.writeOnly ? 'writeonly' : '';

Expand Down Expand Up @@ -30186,7 +30196,7 @@ class SchemaTree extends lit_element_s {
<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;'>
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, data[0]['::readwrite'])}` : $`
${Object.keys(data).map(dataKey => $`
${['::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'] : '')}`}
${['::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'] : '')}`}
`)}
`}
</div>
Expand Down Expand Up @@ -32286,14 +32296,14 @@ class SchemaTable extends lit_element_s {
if (dataType === 'array') {
detailObjType = 'array of object'; // Array of Object
} else {
detailObjType = 'object';
detailObjType = data['::dataTypeLabel'] || data['::type'];
}
} else if (data['::type'] === 'array') {
if (dataType === 'array') {
// detailObjType = 'array of array'; // Array of array
detailObjType = `array of array ${arrayType !== 'object' ? `of ${arrayType}` : ''}`; // Array of array
} else {
detailObjType = 'array';
detailObjType = data['::dataTypeLabel'] || data['::type'];
}
}

Expand Down Expand Up @@ -32331,7 +32341,7 @@ class SchemaTable extends lit_element_s {
<div class='object-body'>
${Array.isArray(data) && data[0] ? $`${this.generateTree(data[0], 'xxx-of-option', '', '::ARRAY~OF', '', newSchemaLevel, newIndentLevel, '')}` : $`
${Object.keys(data).map(dataKey => $`
${['::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'] : '')}`}
${['::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'] : '')}`}
`)}
`}
<div>
Expand Down Expand Up @@ -40459,7 +40469,7 @@ function getType(str) {
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ (() => {
/******/ __webpack_require__.h = () => ("668fc200d1a4aec66c96")
/******/ __webpack_require__.h = () => ("86e05890ecd1b58be1fc")
/******/ })();
/******/
/******/ /* webpack/runtime/global */
Expand Down
18 changes: 18 additions & 0 deletions docs/specs/temp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ info:
version: "1"

paths:
/test:
get:
summary: Test endpoint
operationId: test
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
obj:
nullable: true
type: object
properties:
test:
type: string
/users:
get:
responses:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rapidoc",
"version": "9.3.2",
"version": "9.3.3",
"description": "RapiDoc - Open API spec viewer with built in console",
"author": "Mrinmoy Majumdar <mrin9@yahoo.com>",
"homepage": "https://rapidocweb.com",
Expand Down

0 comments on commit f1eea3a

Please sign in to comment.