Skip to main content

Function: verifyAuditSchemas()

verifyAuditSchemas(actions, recorded?): string[]

Defined in: packages/contracts/src/schemas/audit-check.ts:87

The audit contract check of 28, section 8: every registered action's payload is inside the identifier vocabulary, AuditRecorded is too, and the two agree on which actions exist. Run by verifyEstate, so a violation fails the build.

Parameters​

actions​

AuditActionRegistry

The registry to check.

recorded?​

TSchema = AuditRecorded

The union to check it against; defaults to AuditRecorded. Both sides come from the arguments, so a test can pass a registry and a union that disagree.

Returns​

string[]

Problems; empty when everything agrees.