Skip to content

Commit

Permalink
Fixed create alert schema
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Feb 13, 2020
1 parent aaf1dd8 commit 0fa0825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/alerting/server/routes/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Alert } from '../types';
export const bodySchema = schema.object({
name: schema.string(),
alertTypeId: schema.string(),
enabled: schema.boolean(),
enabled: schema.boolean({ defaultValue: true }),
consumer: schema.string(),
tags: schema.arrayOf(schema.string(), { defaultValue: [] }),
throttle: schema.nullable(schema.string()), // getDurationSchema().default(null),
Expand Down

0 comments on commit 0fa0825

Please sign in to comment.