Skip to content

Conversation

@RC-Projects
Copy link

@RC-Projects RC-Projects commented Sep 8, 2025

Summary

Tests Performed

  • Test list-projects without specifying type parameter (should default to "all")
  • Test list-projects with type: "all" (should not throw 422 error)
  • Test list-projects with specific types like "secret-manager"

rcaril and others added 4 commits September 8, 2025 18:46
- Add .default("all") to Zod schema to ensure default type is applied when not specified
- Skip type query parameter when type is "all" to prevent 422 errors from API
- Fixes both the default value not working and the 422 error when using type "all"

Resolves Infisical#9

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

list-projects type "all" always throw a 422 error

2 participants