@mitre-attack/attack-data-model
Version:
A TypeScript API for the MITRE ATT&CK data model
14 lines (12 loc) • 650 B
JavaScript
// src/schemas/common/property-schemas/stix-versioning.ts
import { z } from "zod/v4";
var specVersionDescription = [
"The version of the STIX specification used to represent this object.",
"The value of this property MUST be 2.1 for STIX Objects defined according to this specification.",
"If objects are found where this property is not present, the implicit value for all STIX Objects other than SCOs is 2.0.",
"Since SCOs are now top-level objects in STIX 2.1, the default value for SCOs is 2.1."
].join(" ");
var stixSpecVersionSchema = z.literal("2.1").meta({ description: specVersionDescription });
export {
stixSpecVersionSchema
};