Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/schemas/sdo/campaign.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ objects with additional temporal tracking fields.
export type Campaign = z.infer<typeof campaignBaseSchema>;
export type CampaignPartial = Partial<Campaign>;

const campaignChecks = (ctx: z.core.ParsePayload<CampaignPartial>): void => {
export const campaignChecks = (ctx: z.core.ParsePayload<CampaignPartial>): void => {
createFirstAliasRefinement()(ctx);
createCitationsRefinement()(ctx);
};
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/sdo/group.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ objects and strictly follow the STIX 2.1 specification without additional custom
export type Group = z.infer<typeof groupBaseSchema>;
export type GroupPartial = Partial<Group>;

const groupChecks = (ctx: z.core.ParsePayload<GroupPartial>): void => {
export const groupChecks = (ctx: z.core.ParsePayload<GroupPartial>): void => {
createFirstAliasRefinement()(ctx);
};

Expand Down
2 changes: 1 addition & 1 deletion src/schemas/sdo/malware.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const malwareBaseSchema = attackBaseDomainObjectSchema
export type Malware = z.infer<typeof malwareBaseSchema>;
export type MalwarePartial = Partial<Malware>;

const malwareChecks = (ctx: z.core.ParsePayload<MalwarePartial>): void => {
export const malwareChecks = (ctx: z.core.ParsePayload<MalwarePartial>): void => {
createFirstAliasRefinement()(ctx);
createFirstXMitreAliasRefinement()(ctx);
};
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/sdo/technique.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ They are represented as \`attack-pattern\` objects with the same structure as te
export type Technique = z.infer<typeof techniqueBaseSchema>;
export type TechniquePartial = Partial<Technique>;

const techniqueChecks = (ctx: z.core.ParsePayload<TechniquePartial>): void => {
export const techniqueChecks = (ctx: z.core.ParsePayload<TechniquePartial>): void => {
createAttackIdInExternalReferencesRefinement()(ctx);
createEnterpriseOnlyPropertiesRefinement()(ctx);
createMobileOnlyPropertiesRefinement()(ctx);
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/sdo/tool.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const toolBaseSchema = attackBaseDomainObjectSchema
export type Tool = z.infer<typeof toolBaseSchema>;
export type ToolPartial = Partial<Tool>;

const toolChecks = (ctx: z.core.ParsePayload<ToolPartial>): void => {
export const toolChecks = (ctx: z.core.ParsePayload<ToolPartial>): void => {
createFirstXMitreAliasRefinement()(ctx);
createFirstAliasRefinement()(ctx);
};
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/sro/relationship.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export const relationshipBaseSchema = attackBaseRelationshipObjectSchema
export type Relationship = z.infer<typeof relationshipBaseSchema>;
export type RelationshipPartial = Partial<Relationship>;

const relationshipChecks = (ctx: z.core.ParsePayload<RelationshipPartial>): void => {
export const relationshipChecks = (ctx: z.core.ParsePayload<RelationshipPartial>): void => {
createRelationshipValidationRefinement()(ctx);

// Check for deprecated pattern (partial-safe: skip if required fields are missing)
Expand Down