openapi-explorer 2.4.791 → 2.4.797
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.
|
@@ -56,7 +56,7 @@ export default class SchemaTable extends LitElement {
|
|
|
56
56
|
this.interactive = true; // Note: interactive is not a reactive property
|
|
57
57
|
}
|
|
58
58
|
static finalizeStyles() {
|
|
59
|
-
return [FontStyles, KeyFrameStyles, SchemaStyles, css`.table{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.table .tr{width:calc(100% - 5px);padding:0 0 0 5px;border-bottom:1px dotted var(--light-border-color)}.table .td{padding:4px 0}.requiredStar::after{content:'*';color:var(--red);font-size:larger}.key.deprecated .key-label{text-decoration:line-through}.table .key-type{white-space:normal}.key-type{display:flex}.key-type>.attributes{margin:.0625rem 0 0 .25rem}.obj-toggle{display:inline-flex;margin-left:-.8rem;margin-right:.8rem;color:var(--primary-color);cursor:pointer;font-size:calc(var(--font-size-small) + 4px);font-family:var(--font-mono);background-clip:border-box}.tr+.object-body{overflow:hidden}.table:not(.interactive) .object-body{animation-duration:0s!important}.tr:not(.collapsed)+.object-body{animation:linear .2s expand-height}.tr.collapsed+.object-body{animation:linear .2s collapse-height;max-height:0}.obj-toggle{transition:transform .1s ease}.tr.collapsed .obj-toggle{transform:rotate(-90deg)}.tr.object.circular-object .obj-toggle{display:none}.tr.object:not(.circular-object) .key-label{margin-left:-6px}`];
|
|
59
|
+
return [FontStyles, KeyFrameStyles, SchemaStyles, css`.table{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.table .tr{width:calc(100% - 5px);padding:0 0 0 5px;border-bottom:1px dotted var(--light-border-color)}.table .td{padding:4px 0}.requiredStar::after{content:'*';color:var(--red);font-size:larger}.key.deprecated .key-label{text-decoration:line-through}.table .key-type{white-space:normal}.key-type{display:flex}.key-type>.attributes{margin:.0625rem 0 0 .25rem}.obj-toggle{display:inline-flex;margin-left:-.8rem;margin-right:.8rem;color:var(--primary-color);cursor:pointer;font-size:calc(var(--font-size-small) + 4px);font-family:var(--font-mono);background-clip:border-box}.tr+.object-body{overflow:hidden}.table:not(.interactive) .object-body{animation-duration:0s!important}.tr:not(.collapsed)+.object-body{animation:linear .2s expand-height}.tr.collapsed+.object-body{animation:linear .2s collapse-height;max-height:0}.obj-toggle{transition:transform .1s ease}.tr.collapsed .obj-toggle{transform:rotate(-90deg)}.tr.object.circular-object .obj-toggle{display:none}.tr.object:not(.circular-object) .key-label{margin-left:-6px}.tr .xxx-of-key{margin-left:4px}`];
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/* eslint-disable indent */
|
|
@@ -493,6 +493,9 @@ export function schemaInObjectNotation(rawSchema, options, level = 0, suffix = '
|
|
|
493
493
|
objTypeOption[key] = schemaInObjectNotation(schemaProperties[key], options, level + 1);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
+
if (schema.additionalProperties) {
|
|
497
|
+
objTypeOption['<any-key>'] = schemaInObjectNotation(schema.additionalProperties, options);
|
|
498
|
+
}
|
|
496
499
|
multiTypeOptions[`::OPTION~${i + 1}`] = objTypeOption;
|
|
497
500
|
} else if (v === 'array') {
|
|
498
501
|
multiTypeOptions[`::OPTION~${i + 1}`] = {
|
|
@@ -61,7 +61,7 @@ class SchemaTable extends _lit.LitElement {
|
|
|
61
61
|
this.interactive = true; // Note: interactive is not a reactive property
|
|
62
62
|
}
|
|
63
63
|
static finalizeStyles() {
|
|
64
|
-
return [_fontStyles.default, _keyFrameStyles.default, _schemaStyles.default, (0, _lit.css)`.table{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.table .tr{width:calc(100% - 5px);padding:0 0 0 5px;border-bottom:1px dotted var(--light-border-color)}.table .td{padding:4px 0}.requiredStar::after{content:'*';color:var(--red);font-size:larger}.key.deprecated .key-label{text-decoration:line-through}.table .key-type{white-space:normal}.key-type{display:flex}.key-type>.attributes{margin:.0625rem 0 0 .25rem}.obj-toggle{display:inline-flex;margin-left:-.8rem;margin-right:.8rem;color:var(--primary-color);cursor:pointer;font-size:calc(var(--font-size-small) + 4px);font-family:var(--font-mono);background-clip:border-box}.tr+.object-body{overflow:hidden}.table:not(.interactive) .object-body{animation-duration:0s!important}.tr:not(.collapsed)+.object-body{animation:linear .2s expand-height}.tr.collapsed+.object-body{animation:linear .2s collapse-height;max-height:0}.obj-toggle{transition:transform .1s ease}.tr.collapsed .obj-toggle{transform:rotate(-90deg)}.tr.object.circular-object .obj-toggle{display:none}.tr.object:not(.circular-object) .key-label{margin-left:-6px}`];
|
|
64
|
+
return [_fontStyles.default, _keyFrameStyles.default, _schemaStyles.default, (0, _lit.css)`.table{font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.table .tr{width:calc(100% - 5px);padding:0 0 0 5px;border-bottom:1px dotted var(--light-border-color)}.table .td{padding:4px 0}.requiredStar::after{content:'*';color:var(--red);font-size:larger}.key.deprecated .key-label{text-decoration:line-through}.table .key-type{white-space:normal}.key-type{display:flex}.key-type>.attributes{margin:.0625rem 0 0 .25rem}.obj-toggle{display:inline-flex;margin-left:-.8rem;margin-right:.8rem;color:var(--primary-color);cursor:pointer;font-size:calc(var(--font-size-small) + 4px);font-family:var(--font-mono);background-clip:border-box}.tr+.object-body{overflow:hidden}.table:not(.interactive) .object-body{animation-duration:0s!important}.tr:not(.collapsed)+.object-body{animation:linear .2s expand-height}.tr.collapsed+.object-body{animation:linear .2s collapse-height;max-height:0}.obj-toggle{transition:transform .1s ease}.tr.collapsed .obj-toggle{transform:rotate(-90deg)}.tr.object.circular-object .obj-toggle{display:none}.tr.object:not(.circular-object) .key-label{margin-left:-6px}.tr .xxx-of-key{margin-left:4px}`];
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/* eslint-disable indent */
|
|
@@ -502,6 +502,9 @@ function schemaInObjectNotation(rawSchema, options, level = 0, suffix = '') {
|
|
|
502
502
|
objTypeOption[key] = schemaInObjectNotation(schemaProperties[key], options, level + 1);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
+
if (schema.additionalProperties) {
|
|
506
|
+
objTypeOption['<any-key>'] = schemaInObjectNotation(schema.additionalProperties, options);
|
|
507
|
+
}
|
|
505
508
|
multiTypeOptions[`::OPTION~${i + 1}`] = objTypeOption;
|
|
506
509
|
} else if (v === 'array') {
|
|
507
510
|
multiTypeOptions[`::OPTION~${i + 1}`] = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-explorer",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.797",
|
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
|
5
5
|
"author": "Authress Developers <developers@authress.io>",
|
|
6
6
|
"type": "module",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"openapi-resolver": "^4.1.71",
|
|
65
65
|
"prismjs": "^1.29.0",
|
|
66
66
|
"randexp": "^0.5.3",
|
|
67
|
+
"toposort": "^2.0.2",
|
|
67
68
|
"xml-but-prettier": "^1.0.1"
|
|
68
69
|
},
|
|
69
70
|
"scripts": {
|
|
@@ -117,7 +118,6 @@
|
|
|
117
118
|
"sinon-chai": "^3.3.0",
|
|
118
119
|
"style-loader": "^2.0.0",
|
|
119
120
|
"terser-webpack-plugin": "^5.1.1",
|
|
120
|
-
"toposort": "^2.0.2",
|
|
121
121
|
"webpack": "^5.103.0",
|
|
122
122
|
"webpack-bundle-analyzer": "^5.0.1",
|
|
123
123
|
"webpack-cli": "^6.0.1",
|