Pre-release — The API surface may change. Unaudited.
Callcium LogoCallcium
API

PolicyValidator

Static validation of policies against their declared signatures.

PolicyValidator

Semantic validation for policies.

Git Source

Methods

validate

Validate a policy for type mismatches, contradictions, redundancies, and vacuities.

function validate(data: PolicyData): Issue[];

Parameters

NameTypeDescription
dataPolicyDataThe canonical policy data to validate.

Returns

Issue[] — All validation issues found, ordered by group and constraint index.

Functions

isOpAllowed

True if operator opCode is allowed on a target with the given type info. Tolerates the NOT flag on opCode.

Git Source

function isOpAllowed(opCode: number, typeInfo: TypeInfo): boolean;

Parameters

NameTypeDescription
opCodenumber-
typeInfoTypeInfo-

Returns

boolean

On this page