function_contracts library
Local project contract validation shared by generation and emulation.
Functions
-
validateFunctionDefinitions(
Object? value, {Set< String> modelNames = const {}, Set<String> queryNames = const {}, Set<String> fileCollectionNames = const {}}) → Map<String, Map< String, Object?> > - Validates structure against generated TypeBox tables, then semantic bounds. Returned definitions and all nested values are immutable and canonically ordered.
Exceptions / Errors
- FunctionContractException
- A deterministic configuration finding with a JSON pointer and repair hint.