@rjsf/utils 5.19.3 → 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 +9 -4
- package/dist/index.js.map +2 -2
- package/dist/utils.esm.js +9 -4
- package/dist/utils.esm.js.map +2 -2
- package/dist/utils.umd.js +9 -4
- package/lib/enums.d.ts +15 -8
- package/lib/enums.js +15 -8
- package/lib/enums.js.map +1 -1
- package/lib/parser/ParserValidator.d.ts +3 -0
- package/lib/parser/ParserValidator.js +5 -0
- package/lib/parser/ParserValidator.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types.d.ts +4 -0
- package/package.json +2 -2
- package/src/enums.ts +15 -8
- package/src/parser/ParserValidator.ts +6 -0
- package/src/types.ts +4 -0
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:
|
|
2651
|
+
TranslatableString2["InvalidObjectField"] = 'Invalid "%1" object field configuration: _%2_.';
|
|
2652
2652
|
TranslatableString2["UnsupportedField"] = "Unsupported field schema.";
|
|
2653
|
-
TranslatableString2["UnsupportedFieldWithId"] = "Unsupported field schema for field
|
|
2654
|
-
TranslatableString2["UnsupportedFieldWithReason"] = "Unsupported field schema:
|
|
2655
|
-
TranslatableString2["UnsupportedFieldWithIdAndReason"] = "Unsupported field schema for field
|
|
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).
|