@rjsf/utils 5.19.2 → 5.19.4

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.
package/dist/index.js CHANGED
@@ -2648,11 +2648,11 @@ var TranslatableString = /* @__PURE__ */ ((TranslatableString2) => {
2648
2648
  TranslatableString2["OptionPrefix"] = "Option %1";
2649
2649
  TranslatableString2["TitleOptionPrefix"] = "%1 option %2";
2650
2650
  TranslatableString2["KeyLabel"] = "%1 Key";
2651
- TranslatableString2["InvalidObjectField"] = 'Invalid "%1" object field configuration: <em>%2</em>.';
2651
+ TranslatableString2["InvalidObjectField"] = 'Invalid "%1" object field configuration: _%2_.';
2652
2652
  TranslatableString2["UnsupportedField"] = "Unsupported field schema.";
2653
- TranslatableString2["UnsupportedFieldWithId"] = "Unsupported field schema for field <code>%1</code>.";
2654
- TranslatableString2["UnsupportedFieldWithReason"] = "Unsupported field schema: <em>%1</em>.";
2655
- TranslatableString2["UnsupportedFieldWithIdAndReason"] = "Unsupported field schema for field <code>%1</code>: <em>%2</em>.";
2653
+ TranslatableString2["UnsupportedFieldWithId"] = "Unsupported field schema for field `%1`.";
2654
+ TranslatableString2["UnsupportedFieldWithReason"] = "Unsupported field schema: _%1_.";
2655
+ TranslatableString2["UnsupportedFieldWithIdAndReason"] = "Unsupported field schema for field `%1`: _%2_.";
2656
2656
  TranslatableString2["FilesInfo"] = "**%1** (%2, %3 bytes)";
2657
2657
  return TranslatableString2;
2658
2658
  })(TranslatableString || {});
@@ -2676,6 +2676,11 @@ var ParserValidator = class {
2676
2676
  this.rootSchema = rootSchema;
2677
2677
  this.addSchema(rootSchema, hashForSchema(rootSchema));
2678
2678
  }
2679
+ /** Resets the internal AJV validator to clear schemas from it. Can be helpful for resetting the validator for tests.
2680
+ */
2681
+ reset() {
2682
+ this.schemaMap = {};
2683
+ }
2679
2684
  /** Adds the given `schema` to the `schemaMap` keyed by the `hash` or `ID_KEY` if present on the `schema`. If the
2680
2685
  * schema does not have an `ID_KEY`, then the `hash` will be added as the `ID_KEY` to allow the schema to be
2681
2686
  * associated with it's `hash` for future use (by a schema compiler).