sigo-entities 0.0.127 → 0.0.129
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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -253,7 +253,8 @@ async function validateAndFormatData(data, dtoClass, propertiesToValidate) {
|
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
255
|
const instance = (0, import_class_transformer2.plainToInstance)(dtoClass, data, { excludeExtraneousValues: true });
|
|
256
|
-
const errors = await (0, import_class_validator2.validate)(instance
|
|
256
|
+
const errors = await (0, import_class_validator2.validate)(instance);
|
|
257
|
+
console.log(errors);
|
|
257
258
|
if (errors.length > 0) {
|
|
258
259
|
const formattedErrors = formatErrors(errors);
|
|
259
260
|
const errorMessage = `Response validation failed: ${formattedErrors[0]}`;
|
package/dist/index.mjs
CHANGED
|
@@ -53,7 +53,8 @@ async function validateAndFormatData(data, dtoClass, propertiesToValidate) {
|
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
const instance = plainToInstance(dtoClass, data, { excludeExtraneousValues: true });
|
|
56
|
-
const errors = await validate(instance
|
|
56
|
+
const errors = await validate(instance);
|
|
57
|
+
console.log(errors);
|
|
57
58
|
if (errors.length > 0) {
|
|
58
59
|
const formattedErrors = formatErrors(errors);
|
|
59
60
|
const errorMessage = `Response validation failed: ${formattedErrors[0]}`;
|