Skip to content

Support new flags in actions - #1630

Open
ramya18101 wants to merge 10 commits into
mainfrom
DXCDT-2030-support-new-flags-in-actions
Open

Support new flags in actions#1630
ramya18101 wants to merge 10 commits into
mainfrom
DXCDT-2030-support-new-flags-in-actions

Conversation

@ramya18101

@ramya18101 ramya18101 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🔧 Changes

Adds schema discovery and JSON input to auth0 actions create / auth0 actions update, driven by the Auth0 Management API OpenAPI schema. Payloads are validated locally before any API call — making the commands easy to drive from AI agents and automation.

New flags:

  • --schema — Print the request payload schema and exit (--json for machine-readable output).
  • --data — Supply the full payload as JSON: inline, a file (@action.json), or stdin (--data - or piped). Mutually exclusive with granular input flags .

📚 References

🔬 Testing

  • Unit tests: internal/openapi/*_test.go, internal/cli/data_json_test.go (schema load/resolve, validation, error enhancement, --data parsing).
  • Manual: --schema (text + --json); --data inline / @file / stdin; invalid payloads report all errors pre-call; 400 includes expected schema.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ramya18101 ramya18101 changed the title Dxcdt 2030 support new flags in actions Support new flags in actions Aug 27, 2026
@ramya18101
ramya18101 marked this pull request as ready for review August 27, 2026 09:00
@ramya18101
ramya18101 requested a review from a team as a code owner August 27, 2026 09:00
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.

1 participant