-
Notifications
You must be signed in to change notification settings - Fork 221
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
feat: Add zod schemas for CI validation #479
Conversation
✅ Deploy Preview for sveltesociety-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@MacFJA would you be able to have a look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are using Zod, let's go full out with it.
If it can help to prevent new categories to be wrongly added (it's not like new category can't be added, but it had to have some sense), or the NPM field not to be a URL, I'm for.
@MacFJA I've applied these changes! |
Hi @MacFJA and @benmccann, would either of you be able to review this? Thanks! |
Hey @MacFJA , thanks for reviewing this! I was wondering if there's anything else I need to do before we can merge it? I appreciate your help! |
@MacFJA sorry to tag you again, just checking if this was ready to merge? I have another PR lined up that depends on this :) |
Don't worry. As no-one have voiced anything against this PR, I will merge it |
This adds the main feature of #427, which is Zod validation of the JSON files during linting.
Note that the
npm
field is currently optional; this is becausesvelte-layout-resizable
andSvelteStore
are missing this field. This can be corrected in a subsequent PR.