@rjsf/utils 5.7.2 → 5.7.3

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.
@@ -170,6 +170,7 @@
170
170
  var ID_KEY = '$id';
171
171
  var IF_KEY = 'if';
172
172
  var ITEMS_KEY = 'items';
173
+ var JUNK_OPTION_ID = '_$junk_option_schema_id$_';
173
174
  var NAME_KEY = '$name';
174
175
  var ONE_OF_KEY = 'oneOf';
175
176
  var PROPERTIES_KEY = 'properties';
@@ -983,6 +984,7 @@
983
984
  */
984
985
  var JUNK_OPTION = {
985
986
  type: 'object',
987
+ $id: JUNK_OPTION_ID,
986
988
  properties: {
987
989
  __not_really_there__: {
988
990
  type: 'number'
@@ -3511,6 +3513,9 @@
3511
3513
  });
3512
3514
  }
3513
3515
  });
3516
+ if (ITEMS_KEY in schema && !Array.isArray(schema.items) && typeof schema.items !== 'boolean') {
3517
+ parseSchema(validator, recurseList, rootSchema, schema.items);
3518
+ }
3514
3519
  }
3515
3520
  });
3516
3521
  }
@@ -3541,6 +3546,7 @@
3541
3546
  exports.ID_KEY = ID_KEY;
3542
3547
  exports.IF_KEY = IF_KEY;
3543
3548
  exports.ITEMS_KEY = ITEMS_KEY;
3549
+ exports.JUNK_OPTION_ID = JUNK_OPTION_ID;
3544
3550
  exports.NAME_KEY = NAME_KEY;
3545
3551
  exports.ONE_OF_KEY = ONE_OF_KEY;
3546
3552
  exports.PROPERTIES_KEY = PROPERTIES_KEY;