Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(yupResolver): multiple errors messages with same type #156

Merged
merged 1 commit into from Apr 15, 2021

Conversation

jorisre
Copy link
Member

@jorisre jorisre commented Apr 14, 2021

Related to #155

I'll update the v1 as well

@github-actions
Copy link
Contributor

github-actions bot commented Apr 14, 2021

Size Change: +115 B (+1%)

Total Size: 16.5 kB

Filename Size Change
yup/dist/yup.js 568 B +27 B (+5%) 🔍
yup/dist/yup.modern.js 503 B +32 B (+7%) 🔍
yup/dist/yup.module.js 582 B +29 B (+5%) 🔍
yup/dist/yup.umd.js 669 B +27 B (+4%)
ℹ️ View Unchanged
Filename Size Change
class-validator/dist/class-validator.js 478 B 0 B
class-validator/dist/class-validator.modern.js 437 B 0 B
class-validator/dist/class-validator.module.js 499 B 0 B
class-validator/dist/class-validator.umd.js 583 B 0 B
dist/resolvers.js 190 B 0 B
dist/resolvers.modern.js 195 B 0 B
dist/resolvers.module.js 197 B 0 B
dist/resolvers.umd.js 292 B 0 B
io-ts/dist/io-ts.js 1.05 kB 0 B
io-ts/dist/io-ts.modern.js 1.08 kB 0 B
io-ts/dist/io-ts.module.js 1.12 kB 0 B
io-ts/dist/io-ts.umd.js 1.19 kB 0 B
joi/dist/joi.js 525 B 0 B
joi/dist/joi.modern.js 419 B 0 B
joi/dist/joi.module.js 540 B 0 B
joi/dist/joi.umd.js 630 B 0 B
superstruct/dist/superstruct.js 269 B 0 B
superstruct/dist/superstruct.modern.js 274 B 0 B
superstruct/dist/superstruct.module.js 282 B 0 B
superstruct/dist/superstruct.umd.js 367 B 0 B
vest/dist/vest.js 419 B 0 B
vest/dist/vest.modern.js 335 B 0 B
vest/dist/vest.module.js 389 B 0 B
vest/dist/vest.umd.js 508 B 0 B
zod/dist/zod.js 470 B 0 B
zod/dist/zod.modern.js 408 B 0 B
zod/dist/zod.module.js 485 B 0 B
zod/dist/zod.umd.js 578 B 0 B

compressed-size-action

yup/src/yup.ts Outdated
previous[error.path!] = appendErrors(
error.path!,
validateAllFieldCriteria,
previous,
error.type!,
error.message,
// eslint-disable-next-line
// @ts-expect-error
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2021-04-14 at 17 09 57

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can do a cast here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, you can review again

bluebill1049
bluebill1049 previously approved these changes Apr 14, 2021
Copy link
Member

@bluebill1049 bluebill1049 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! thanks @jorisre

Copy link
Member

@bluebill1049 bluebill1049 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ awesome.

@jorisre jorisre merged commit 4f87888 into master Apr 15, 2021
@jorisre jorisre deleted the yup-criteriaMode-all branch April 15, 2021 08:23
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants