Skip to content

Commit 339512d

Browse files
authored
Merge pull request #43 from mitre-attack/fix-double-nonempty-on-analytic-schema
fix: remove duplicate nonempty on keys to fix docs showing min twice
2 parents 59a95cf + 46354b4 commit 339512d

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/schemas/sdo/analytic.schema.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ export const xMitreLogSourcePermutationKey = z.string();
2020
export const xMitreLogSourceRefSchema = z
2121
.object({
2222
ref: createStixIdValidator('x-mitre-log-source'),
23-
keys: z
24-
.array(z.string())
25-
.nonempty()
26-
.meta({
27-
description:
28-
'Must match one of the elements in the ``x_mitre_log_source_permutations`` array',
29-
})
30-
.nonempty(),
23+
keys: z.array(z.string()).nonempty().meta({
24+
description:
25+
'Must match one of the elements in the ``x_mitre_log_source_permutations`` array',
26+
}),
3127
})
3228
.meta({
3329
description: 'A reference to a log source permutation',

0 commit comments

Comments
 (0)