[Detection Rules] Remove empty values in threshold.field array for threshold rules (#97111)

## Issues
related to https://github.com/elastic/detection-rules/issues/1097
related to https://github.com/elastic/detection-rules/pull/1099

## Summary

`threshold.field` is an array that currently requires at least one value. An empty string `""` was required if no value was supplied. Instead, this needs to be replaced with no string and just an empty array.
### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
This commit is contained in:
Justin Ibarra 2021-04-15 12:08:45 -05:00 committed by GitHub
parent 83831ce990
commit 069b04bed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,11 +46,9 @@
}
],
"threshold": {
"field": [
""
],
"field": [],
"value": 25
},
"type": "threshold",
"version": 3
"version": 4
}