openapi-explorer 2.2.732 → 2.2.733

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
- if (paramStyle === 'form' && paramExplode) {
248
- newRows = Object.keys(param.schema.properties).map(explodedParamKey => {
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, {
@@ -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
- if (paramStyle === 'form' && paramExplode) {
253
- newRows = Object.keys(param.schema.properties).map(explodedParamKey => {
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-explorer",
3
- "version": "2.2.732",
3
+ "version": "2.2.733",
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",