Why is this an issue?
When there are no database instances, cloud db list returns null in JSON mode (-j flag) instead of an empty array []. This breaks JSON parsing for any client consuming the CLI output programmatically.
What is causing it?
The API returns null (or no data) when there are no DB instances, and the SDK passes it through as-is.
How can it be solved?
The API should return an empty array [] when there are no results, not null.
Category
Severity
Steps to reproduce
cloud db list -j
# Output: null
# Expected: []
Why is this an issue?
When there are no database instances,
cloud db listreturnsnullin JSON mode (-jflag) instead of an empty array[]. This breaks JSON parsing for any client consuming the CLI output programmatically.What is causing it?
The API returns
null(or no data) when there are no DB instances, and the SDK passes it through as-is.How can it be solved?
The API should return an empty array
[]when there are no results, notnull.Category
Severity
Steps to reproduce