Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Infra] Inventory-view saved object schema fix (elastic#210023)
fixes [elastic#209996](elastic#209996) ## Summary Fix the `inventory-view` schema. The wrong schema was causing an error when trying to create/update a saved view on Infra Inventory UI ![inventory-saved-view](https://github.com/user-attachments/assets/682533c0-1893-47a6-9f87-99a2390bb19a) ### How to test - Run on dev tools the request below, it should return a 400 containing the message: `"[attributes.legend.steps]: Value must be equal to or lower than [18].: Bad Request"` ``` POST kbn:/api/saved_objects/inventory-view { "attributes": { "metric": { "type": "cpuV2" }, "sort": { "by": "name", "direction": "desc" }, "groupBy": [], "nodeType": "host", "view": "map", "customOptions": [], "customMetrics": [], "boundsOverride": { "max": 1, "min": 0 }, "autoBounds": true, "accountId": "", "region": "", "time": 1738848614746, "autoReload": false, "filterQuery": { "expression": "", "kind": "kuery" }, "legend": { "palette": "cool", "steps": 20, "reverseColors": false }, "timelineOpen": false, "name": "sss" } } ``` - Navigate to Infra > Inventory - Create a new saved view
- Loading branch information