Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Seclib.Schema.Contract

ContractField — ⚪ definition

structure · source

ContractField — one entry in the collector contract

structure ContractField where

Contract.fieldPaths — ⚪ definition

def · source

Contract queries

def Contract.fieldPaths (c : Contract) : List String

Contract.consumersOf — ⚪ definition

def · source

def Contract.consumersOf (c : Contract) (path : String) : List ControlId

Contract.fieldsForControl — ⚪ definition

def · source

def Contract.fieldsForControl (c : Contract) (id : ControlId) : List ContractField

Contract.hasField — ⚪ definition

def · source

def Contract.hasField (c : Contract) (path : String) : Bool

predicateConsistentWithContract — ⚪ definition

def · source

Schema-predicate consistency check A predicate is contract-consistent when every field path it references (after stripping the “properties.” prefix) appears in the contract.

def predicateConsistentWithContract (pred : UnsafePredicate) (contract : Contract) : Bool