You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Changes
Added JSON input validation for CLI commands. Now when invalid JSON
passed as a payload to CLI commands, CLI performs input normalisation
and detects if there are any mismatches such as incorrect types, unknown
fields and etc.
This diagnostic information is printed in standard error output and does
not block command execution, so the change is backward compatible.
Fixes#1769#1764#1625#1560
## Tests
Added unit tests
```
andrew.nester@HFW9Y94129 ~ % databricks jobs create --json '{"seeti}'
Error: error decoding JSON at (inline):1:2: unexpected EOF
andrew.nester@HFW9Y94129 ~ % databricks jobs create --json '{"seeti": true}'
Warning: unknown field: seeti
in (inline):1:9
Error: Job settings must be specified.
```
---------
Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
Describe the issue
When creating an IP access list using the CLI, it is created with
enabled: false
regardless of theenabled
parameter.Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
databricks account ip-access-lists create --json '{"list_type":"ALLOW","enabled":true,"ip_addresses":["0.0.0.0/32"],"label":"test"}'
Expected Behavior
The created list enabled state should align with the parameter.
Actual Behavior
The state is always false regardless of the parameter value.
OS and CLI version
Sonoma 14.5, Databricks CLI v0.224.0
Is this a regression?
No
Debug Logs
The text was updated successfully, but these errors were encountered: