feat: add schema and data options for apps management commands - #1664
Merged
Merged
Conversation
ramya18101
changed the base branch from
main
to
DXCDT-2107-agent-rollout-for-apis
September 16, 2026 08:22
ramya18101
marked this pull request as ready for review
September 17, 2026 07:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
Extends the JSON-input / schema-discovery surface to the
auth0 appscommands,mirroring the pattern already applied to
actions,roles,users, andapiswith machine-readable schemas and whole-payload JSON).
📚 References
Follows the same pattern as the merged
actions/roles/users/apisPRs🔬 Testing
internal/cli/apps_json_test.go:TestAppsListCmdInvalidQuery— invalid--queryJSON is rejected before anyAPI call.
TestAppsCreateCmdData— a valid--datapayload is sent asPOST /clients;a schema-invalid payload (
{"name":123}) fails validation and never reachesthe API.
TestAppsUpdateCmdData—--datawith an ID is sent asPATCH /clients/<id>.make lint,make build,make test-unit, andmake docs(check-docs) all pass.auth0 apps create --schema/auth0 apps list --schema— prints schema, no write.auth0 apps create --data '{"name":"myapp","app_type":"spa"}'auth0 apps update <app-id> --data '{"description":"updated"}'auth0 apps list --query '{"app_type":"spa"}'auth0 apps create --data '{"name":"x"}' --name yerrors.📝 Checklist