Skip to content

Commit

Permalink
update response schema
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Mar 19, 2020
1 parent aaf4df5 commit 1b03386
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ export const filters = t.array(t.unknown); // Filters are not easily type-able y
* Params is an "object", since it is a type of AlertActionParams which is action templates.
* @see x-pack/plugins/alerting/common/alert.ts
*/
export const action_group = t.string;
export const action_id = t.string;
export const action_action_type_id = t.string;
export const action_params = t.object;
export const action = t.exact(
t.type({
group: t.string,
id: t.string,
actionTypeId: t.string,
params: t.object,
group: action_group,
id: action_id,
actionTypeId: action_action_type_id,
params: action_params,
})
);

Expand Down

0 comments on commit 1b03386

Please sign in to comment.