chore: switch input schemas to zod mini#98
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the action’s run-install input validation to use Zod’s smaller zod/mini entrypoint (Zod v4), adjusting optional-field and error handling to the mini API with the goal of reducing the bundled action size.
Changes:
- Switched schema definitions used for
run-installinputs fromzodtozod/mini. - Updated optional field declarations to
z.optional(...)for compatibility withzod/mini. - Updated Zod error detection in
parseRunInstallfor thezod/minisurface area.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/types.ts | Moves RunInstallSchema/RunInstallInputSchema to zod/mini and updates optional field definitions. |
| src/inputs.ts | Uses zod/mini and updates the Zod error class check when parsing run-install. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
run-installinput validation schemas tozod/mini.zod/miniAPI.dist/index.mjs.