Skip to main content

BasicLineageInvariant

HardKAS SDK


HardKAS SDK / artifacts/src / BasicLineageInvariant

Class: BasicLineageInvariant

Defined in: packages/artifacts/src/invariants/definitions.ts:115

Basic lineage invariant: if parentArtifactId is present, it should ideally be resolvable.

Implements​

Constructors​

Constructor​

new BasicLineageInvariant(): BasicLineageInvariant

Returns​

BasicLineageInvariant

Properties​

description​

readonly description: "Parent artifact should be resolvable if specified" = "Parent artifact should be resolvable if specified"

Defined in: packages/artifacts/src/invariants/definitions.ts:117

Implementation of​

Invariant.description


id​

readonly id: "INVAR_BASIC_LINEAGE" = "INVAR_BASIC_LINEAGE"

Defined in: packages/artifacts/src/invariants/definitions.ts:116

Implementation of​

Invariant.id

Methods​

check()​

check(context): Promise<InvariantViolation[]>

Defined in: packages/artifacts/src/invariants/definitions.ts:119

Parameters​

context​

InvariantContext

Returns​

Promise<InvariantViolation[]>

Implementation of​

Invariant.check