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 */
0 commit comments