Skip to content

chore: switch input schemas to zod mini#98

Open
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:chore/use-zod-mini
Open

chore: switch input schemas to zod mini#98
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:chore/use-zod-mini

Conversation

@jong-kyung

Copy link
Copy Markdown
Contributor

Summary

  • Switch run-install input validation schemas to zod/mini.
  • Update optional field definitions and Zod error detection for the zod/mini API.
  • Rebuild the bundled action output in dist/index.mjs.
  • Reduce the bundled action size by 53,886 bytes, from 1,320,074 bytes to 1,266,188 bytes.

Copilot AI review requested due to automatic review settings June 29, 2026 07:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-install inputs from zod to zod/mini.
  • Updated optional field declarations to z.optional(...) for compatibility with zod/mini.
  • Updated Zod error detection in parseRunInstall for the zod/mini surface 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants