sigo-entities 1.2.374 → 1.2.375
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50066,7 +50066,7 @@ function getFirstError(errors, parentPath = "") {
|
|
|
50066
50066
|
|
|
50067
50067
|
// src/v2/utils/validateCustom.ts
|
|
50068
50068
|
async function validateCustom(plain, cls, UnprocessableEntityException, groups) {
|
|
50069
|
-
const instance = (0, import_class_transformer785.plainToInstance)(cls, plain, { excludeExtraneousValues: true });
|
|
50069
|
+
const instance = (0, import_class_transformer785.plainToInstance)(cls, plain, { excludeExtraneousValues: true, groups });
|
|
50070
50070
|
const errors = await (0, import_class_validator762.validate)(instance, { groups });
|
|
50071
50071
|
if (errors.length) {
|
|
50072
50072
|
const msg = getFirstError(errors);
|
package/dist/index.mjs
CHANGED
|
@@ -49593,7 +49593,7 @@ function getFirstError(errors, parentPath = "") {
|
|
|
49593
49593
|
|
|
49594
49594
|
// src/v2/utils/validateCustom.ts
|
|
49595
49595
|
async function validateCustom(plain, cls, UnprocessableEntityException, groups) {
|
|
49596
|
-
const instance = plainToInstance4(cls, plain, { excludeExtraneousValues: true });
|
|
49596
|
+
const instance = plainToInstance4(cls, plain, { excludeExtraneousValues: true, groups });
|
|
49597
49597
|
const errors = await validate3(instance, { groups });
|
|
49598
49598
|
if (errors.length) {
|
|
49599
49599
|
const msg = getFirstError(errors);
|