StrictOptions

API / publicodes / StrictOptions

type StrictOptions = object;

Defined in: packages/core/src/engine/index.ts:61

Type declaration

NameTypeDescriptionDefined in
checkPossibleValues?booleanIf set to true, the engine will throw when a rule with ‘une possibilité’ is evaluated to a value that is not in the list. Default falsepackages/core/src/engine/index.ts:90
noCycleRuntime?booleanIf set to true, the engine will throw when a cycle is detected at runtime Default falsepackages/core/src/engine/index.ts:83
noOrphanRule?booleanIf set to true, the engine will throw when parsing a rule whose parent doesn’t exist This can be set to false to parse partial rule sets (e.g. optimized ones). Default truepackages/core/src/engine/index.ts:77
situation?booleanIf set to true, the engine will throw when the situation contains invalid values (rules that don’t exists, or values with syntax errors). If set to false, it will log the error and filter the invalid values from the situation Default truepackages/core/src/engine/index.ts:70