diff --git a/x-pack/plugins/cases/server/connectors/cases/schema.test.ts b/x-pack/plugins/cases/server/connectors/cases/schema.test.ts index efce618425678..bf910fae3eb6e 100644 --- a/x-pack/plugins/cases/server/connectors/cases/schema.test.ts +++ b/x-pack/plugins/cases/server/connectors/cases/schema.test.ts @@ -75,28 +75,6 @@ describe('CasesConnectorRunParamsSchema', () => { ).not.toThrow(); }); - it('does not accept more than 10 tags', () => { - const params = getParams(); - - expect(() => - CasesConnectorRunParamsSchema.validate({ - ...params, - rule: { ...params.rule, tags: Array(11).fill('test') }, - }) - ).toThrow(); - }); - - it('does not accept a tag that is more than 50 characters', () => { - const params = getParams(); - - expect(() => - CasesConnectorRunParamsSchema.validate({ - ...params, - rule: { ...params.rule, tags: ['x'.repeat(51)] }, - }) - ).toThrow(); - }); - it('does not accept an empty tag', () => { const params = getParams(); diff --git a/x-pack/plugins/cases/server/connectors/cases/schema.ts b/x-pack/plugins/cases/server/connectors/cases/schema.ts index 7a2bb8c26e2ac..ddea351e2ffe2 100644 --- a/x-pack/plugins/cases/server/connectors/cases/schema.ts +++ b/x-pack/plugins/cases/server/connectors/cases/schema.ts @@ -25,13 +25,7 @@ const GroupingSchema = schema.arrayOf(schema.string(), { minSize: 0, maxSize: 1 const RuleSchema = schema.object({ id: schema.string(), name: schema.string(), - /** - * TODO: Verify limits - */ - tags: schema.arrayOf(schema.string({ minLength: 1, maxLength: 50 }), { - minSize: 0, - maxSize: 10, - }), + tags: schema.arrayOf(schema.string(), { defaultValue: [] }), ruleUrl: schema.nullable(schema.string()), });