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

feature(#285): Add Zod to Massively Improve Validation #494

Closed
wants to merge 18 commits into from

Conversation

FlorianWendelborn
Copy link
Member

@FlorianWendelborn FlorianWendelborn commented Sep 7, 2021

Closes #285

Split to multiple PRs. See #504


⚠️ Remember to publish a new yoco version once this is merged and ready for publish

@FlorianWendelborn FlorianWendelborn added type:enhancement features, etc. priority:4-high ⚠️ Needs to be fixed ASAP, but without HACKs package:kotti-ui @3yourmind/kotti-ui labels Sep 7, 2021
@render
Copy link

render bot commented Sep 7, 2021

@Isokaeder
Copy link
Collaborator

lgtm so far. Not all components got a redo, but we can do that incrementally. Approved

Isokaeder
Isokaeder previously approved these changes Sep 9, 2021
@FlorianWendelborn FlorianWendelborn changed the title refactor(#285): Add Zod feature(#285): Add Zod to Massively Improve Validation Sep 14, 2021
FlorianWendelborn and others added 18 commits September 15, 2021 23:37
TS 4.4.2 is unfortunately not possible yet, as there’s this rollup+typescript bug that will most likely be fixed in TS 4.4.3:

rollup/plugins#983
microsoft/TypeScript#45633
Previously, the upgrade to 4.3 made the pipelines fail. This should hopefully now be fixed.

Co-Authored-By: Moritz Vetter <16950410+HansAuger@users.noreply.github.com>
…Defined

This isn’t necessary for TS itself, but somehow ts-jest didn’t see this... upgrading to latest didn’t fix this bug unfortunately, so this is as good as it gets
Unfortunately, while this works for some types in Vue, this resolves some others to any. As far as I can tell, this is due to PropType<> being buggy.

I also tested @vue/composition-api@1.1.5 and PropType does appear to be broken there as well.

Let’s hope that one day Vue will properly support this.
@FlorianWendelborn FlorianWendelborn added the autorebase:opt-in Apply this label to enable automatic rebasing label Sep 15, 2021
@Isokaeder Isokaeder dismissed their stale review September 15, 2021 23:58

Since there are a bunch of changes since my review I dismiss my last one. Please mark MR as draft

@FlorianWendelborn
Copy link
Member Author

FlorianWendelborn commented Sep 16, 2021

@HansAuger Well, it’s not really a draft, it’s just that I found some ways to improve it while I’m waiting for @carsoli’s review :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autorebase:opt-in Apply this label to enable automatic rebasing package:kotti-ui @3yourmind/kotti-ui priority:4-high ⚠️ Needs to be fixed ASAP, but without HACKs type:enhancement features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Prop Validation EVERYWHERE
2 participants