openapi-explorer 2.2.732 → 2.2.734
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.
@@ -244,8 +244,9 @@ export default class ApiRequest extends LitElement {
|
|
244
244
|
}}"> ${v === null ? '-' : v} </a>`}`)} </div>` : ''} </td> ` : ''} </tr>`;
|
245
245
|
};
|
246
246
|
let newRows = [];
|
247
|
-
|
248
|
-
|
247
|
+
// Only Object need special handling, arrays, are just a single property still so they should fall under the regular row generator.
|
248
|
+
if (paramStyle === 'form' && paramExplode && param.schema.type === 'object') {
|
249
|
+
newRows = Object.keys(param.schema.properties || {}).map(explodedParamKey => {
|
249
250
|
var _param$schema, _param$schema$require;
|
250
251
|
const explodedParam = param.schema.properties[explodedParamKey];
|
251
252
|
const explodedParamSchema = getTypeInfo(explodedParam, {
|
@@ -887,8 +888,8 @@ export default class ApiRequest extends LitElement {
|
|
887
888
|
request: fetchRequest
|
888
889
|
}
|
889
890
|
};
|
890
|
-
|
891
|
-
|
891
|
+
this.dispatchEvent(new CustomEvent('after-try', responseEvent));
|
892
|
+
this.dispatchEvent(new CustomEvent('response', responseEvent));
|
892
893
|
}
|
893
894
|
this.requestUpdate();
|
894
895
|
}
|
@@ -249,8 +249,9 @@ class ApiRequest extends _lit.LitElement {
|
|
249
249
|
}}"> ${v === null ? '-' : v} </a>`}`)} </div>` : ''} </td> ` : ''} </tr>`;
|
250
250
|
};
|
251
251
|
let newRows = [];
|
252
|
-
|
253
|
-
|
252
|
+
// Only Object need special handling, arrays, are just a single property still so they should fall under the regular row generator.
|
253
|
+
if (paramStyle === 'form' && paramExplode && param.schema.type === 'object') {
|
254
|
+
newRows = Object.keys(param.schema.properties || {}).map(explodedParamKey => {
|
254
255
|
var _param$schema, _param$schema$require;
|
255
256
|
const explodedParam = param.schema.properties[explodedParamKey];
|
256
257
|
const explodedParamSchema = (0, _schemaUtils.getTypeInfo)(explodedParam, {
|
@@ -892,8 +893,8 @@ class ApiRequest extends _lit.LitElement {
|
|
892
893
|
request: fetchRequest
|
893
894
|
}
|
894
895
|
};
|
895
|
-
|
896
|
-
|
896
|
+
this.dispatchEvent(new CustomEvent('after-try', responseEvent));
|
897
|
+
this.dispatchEvent(new CustomEvent('response', responseEvent));
|
897
898
|
}
|
898
899
|
this.requestUpdate();
|
899
900
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "openapi-explorer",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.734",
|
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",
|