diff --git a/CHANGELOG.md b/CHANGELOG.md index 90bc5ea0..fe8909a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ - TBD ## Other changes -- TBD +- [Indexer] Fixed fields types error on instance indexer_alert_config in schema.yml - [#1499](https://github.com/jertel/elastalert2/pull/1499) - @olehpalanskyi # 2.19.0 diff --git a/elastalert/schema.yaml b/elastalert/schema.yaml index 5e88063b..dd781a7e 100644 --- a/elastalert/schema.yaml +++ b/elastalert/schema.yaml @@ -562,11 +562,16 @@ properties: "^.+$": oneOf: - type: [boolean, string, integer] + - type: array + items: + type: object + properties: + name: { type: string , minLength: 1 } + value: { type: [boolean, string, integer] , minLength: 1 } + "^.+$": { type: [boolean, string, integer], minLength: 1 } - type: object - additionalProperties: false - required: [ field ] properties: - field: { type: [boolean, string, integer], minLength: 1 } + "^.+$": { type: [boolean, string, integer], minLength: 1 } ### IRIS iris_host: {type: string}