Skip to content

Migrates util commands to Zod. Closes #7357 - #7618

Merged
milanholemans merged 1 commit into
pnp:mainfrom
MartinM85:feature/7357-migrate-util-commands-to-zod
Oct 9, 2026
Merged

milanholemans merged 1 commit into
pnp:mainfrom
MartinM85:feature/7357-migrate-util-commands-to-zod

Conversation

@MartinM85

Copy link
Copy Markdown
Contributor

Closes #7357

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.

🟢 Approval recommended

The migration follows established Zod patterns, preserves existing behavior, and includes appropriate validation coverage.

0 open findings

What changed in this PR

Migrates util accesstoken get from legacy option registration and telemetry to Zod-based validation.

Changes:

  • Adds a strict Zod schema preserving options, alias, and telemetry behavior.
  • Updates tests to parse command options and verify validation rules.
File Description
accesstoken-get.ts Defines and exposes the command’s Zod schema.
accesstoken-get.spec.ts Adopts schema parsing and adds validation tests.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@milanholemans
milanholemans merged commit cd0a9a4 into pnp:main Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate util commands to Zod

3 participants