File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ export const ATTACK_SPEC_VERSION = '3.3.0' as const ;
Original file line number Diff line number Diff line change
1
+ export { ATTACK_SPEC_VERSION } from '@/attack-spec-version.js' ;
1
2
export * from '@/classes/index.js' ;
2
3
export * from '@/data-sources/index.js' ;
3
- export * from '@/schemas/index.js' ;
4
- export * from '@/refinements/index.js' ;
5
4
export * from '@/main.js' ;
5
+ export * from '@/refinements/index.js' ;
6
+ export * from '@/schemas/index.js' ;
Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ export const objectMarkingRefsSchema = z
263
263
'Identifier must start with "marking-definition--"' ,
264
264
) ,
265
265
)
266
+ . nonempty ( )
266
267
. meta ( {
267
268
description : 'The list of marking-definition objects to be applied to this object.' ,
268
269
} ) ;
Original file line number Diff line number Diff line change 7
7
createAttackExternalReferencesSchema ,
8
8
createStixIdValidator ,
9
9
stixTimestampSchema ,
10
+ xMitreContributorsSchema ,
10
11
xMitreDomainsSchema ,
11
12
xMitreModifiedByRefSchema ,
12
13
} from '../common/index.js' ;
@@ -30,7 +31,7 @@ export const groupSchema = attackBaseDomainObjectSchema
30
31
31
32
x_mitre_domains : xMitreDomainsSchema ,
32
33
33
- x_mitre_contributors : z . array ( z . string ( ) ) . optional ( ) ,
34
+ x_mitre_contributors : xMitreContributorsSchema . optional ( ) ,
34
35
35
36
x_mitre_modified_by_ref : xMitreModifiedByRefSchema . optional ( ) ,
36
37
Original file line number Diff line number Diff line change 5
5
createMultiStixTypeValidator ,
6
6
descriptionSchema ,
7
7
externalReferencesSchema ,
8
- objectMarkingRefsSchema ,
9
8
stixCreatedByRefSchema ,
9
+ xMitreContributorsSchema ,
10
10
xMitreDomainsSchema ,
11
11
xMitreModifiedByRefSchema ,
12
12
xMitrePlatformsSchema ,
@@ -29,13 +29,11 @@ export const softwareSchema = attackBaseDomainObjectSchema.extend({
29
29
30
30
external_references : externalReferencesSchema ,
31
31
32
- object_marking_refs : objectMarkingRefsSchema ,
33
-
34
32
// Malware: Required
35
33
// Tool: Optional
36
34
x_mitre_platforms : xMitrePlatformsSchema . optional ( ) ,
37
35
38
- x_mitre_contributors : z . array ( z . string ( ) ) . optional ( ) ,
36
+ x_mitre_contributors : xMitreContributorsSchema . optional ( ) ,
39
37
40
38
x_mitre_aliases : aliasesSchema . optional ( ) . meta ( {
41
39
description :
You can’t perform that action at this time.
0 commit comments