@mcpc-tech/cli 0.1.45 → 0.1.46
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/bin/mcpc.cjs +2 -1
- package/bin/mcpc.mjs +2 -1
- package/package.json +1 -1
package/bin/mcpc.cjs
CHANGED
|
@@ -10853,7 +10853,8 @@ var ajv = new import_ajv2.Ajv({
|
|
|
10853
10853
|
import_ajv_formats2.default.default(ajv);
|
|
10854
10854
|
import_ajv_errors.default.default(ajv);
|
|
10855
10855
|
function validateSchema(data, schema) {
|
|
10856
|
-
const
|
|
10856
|
+
const cleanedSchema = cleanToolSchema(schema);
|
|
10857
|
+
const validate = ajv.compile(cleanedSchema);
|
|
10857
10858
|
if (!validate(data)) {
|
|
10858
10859
|
const errors = validate.errors;
|
|
10859
10860
|
const customErrors = errors.filter((err) => err.keyword === "errorMessage");
|
package/bin/mcpc.mjs
CHANGED
|
@@ -10861,7 +10861,8 @@ var ajv = new Ajv2({
|
|
|
10861
10861
|
addFormats.default(ajv);
|
|
10862
10862
|
ajvErrors.default(ajv);
|
|
10863
10863
|
function validateSchema(data, schema) {
|
|
10864
|
-
const
|
|
10864
|
+
const cleanedSchema = cleanToolSchema(schema);
|
|
10865
|
+
const validate = ajv.compile(cleanedSchema);
|
|
10865
10866
|
if (!validate(data)) {
|
|
10866
10867
|
const errors = validate.errors;
|
|
10867
10868
|
const customErrors = errors.filter((err) => err.keyword === "errorMessage");
|