Skip to content

Commit

Permalink
[Security Solution][Detection Engine] fixes empty item_id in exceptio…
Browse files Browse the repository at this point in the history
…n item update request schema (elastic#194175)

## Summary

- fixes schema for `updateExceptionListItemSchema` , that led to [error
in 8.15](elastic#191315)

8.15 is fixed in elastic#194172, in
separate PR, since 8.16+ error in not reproducible.
But schema still is not correct. So this PR just fixes schema
  • Loading branch information
vitaliidm authored Sep 30, 2024
1 parent 32144fc commit 49661a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { description } from '../../common/description';
import { name } from '../../common/name';
import { _version } from '../../common/underscore_version';
import { id } from '../../common/id';
import { item_id } from '../../common/item_id';
import { meta } from '../../common/meta';
import { namespace_type } from '../../common/namespace_type';
import { ExpireTimeOrUndefined, expireTimeOrUndefined } from '../../common';
Expand All @@ -40,7 +41,7 @@ export const updateExceptionListItemSchema = t.intersection([
comments: DefaultUpdateCommentsArray, // defaults to empty array if not set during decode
expire_time: expireTimeOrUndefined,
id, // defaults to undefined if not set during decode
item_id: t.union([t.string, t.undefined]),
item_id,
meta, // defaults to undefined if not set during decode
namespace_type, // defaults to 'single' if not set during decode
os_types: osTypeArrayOrUndefined, // defaults to empty array if not set during decode
Expand Down

0 comments on commit 49661a3

Please sign in to comment.