From efcfbe1e20e234ae5d046dc914e1709c8c73706c Mon Sep 17 00:00:00 2001 From: Sean Sica <23294618+seansica@users.noreply.github.com> Date: Wed, 29 Apr 2026 14:55:34 -0400 Subject: [PATCH] fix(detection-strategies): make x_mitre_contributors optional --- src/schemas/sdo/detection-strategy.schema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schemas/sdo/detection-strategy.schema.ts b/src/schemas/sdo/detection-strategy.schema.ts index b54b2ede..e6c4892f 100644 --- a/src/schemas/sdo/detection-strategy.schema.ts +++ b/src/schemas/sdo/detection-strategy.schema.ts @@ -1,4 +1,5 @@ import { z } from 'zod/v4'; +import { validateNoDuplicates } from '../../refinements/index.js'; import { attackBaseDomainObjectSchema } from '../common/index.js'; import { createAttackExternalReferencesSchema, @@ -8,7 +9,6 @@ import { xMitreDomainsSchema, xMitreModifiedByRefSchema, } from '../common/property-schemas/index.js'; -import { validateNoDuplicates } from '../../refinements/index.js'; //============================================================================== // @@ -26,7 +26,7 @@ export const detectionStrategySchema = attackBaseDomainObjectSchema x_mitre_modified_by_ref: xMitreModifiedByRefSchema, - x_mitre_contributors: xMitreContributorsSchema, + x_mitre_contributors: xMitreContributorsSchema.optional(), x_mitre_analytic_refs: z .array(createStixIdValidator('x-mitre-analytic'))