Skip to content

resolve Required error in machine create command#82

Merged
nitingoyal07O merged 5 commits intomainfrom
fix/machine-create-required-fix
Feb 7, 2026
Merged

resolve Required error in machine create command#82
nitingoyal07O merged 5 commits intomainfrom
fix/machine-create-required-fix

Conversation

@nitingoyal07O
Copy link
Contributor

Fixed an issue where the machine create command would fail with a generic
"Required" error when optional fields were not provided. The problem was that Zod enum schemas for optional flags (public-ip-type, auto-snapshot-frequency, restore-point-frequency) did not accept undefined values.
Added .optional() to these schemas so users now receive proper error messages from the API instead of the unhelpful "Required" error.

@nitingoyal07O nitingoyal07O merged commit 5db59b3 into main Feb 7, 2026
3 checks passed
@nitingoyal07O nitingoyal07O deleted the fix/machine-create-required-fix branch February 7, 2026 21:35
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🎉 This PR is included in version 1.10.2-canary.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🎉 This PR is included in version 1.10.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

2 participants