StrictOptions

API / publicodes / StrictOptions

type StrictOptions = object;

Defined in: packages/core/src/engine/types.ts:27

Properties

checkPossibleValues?

optional checkPossibleValues?: boolean;

Defined in: packages/core/src/engine/types.ts:56

If 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

false

noCycleRuntime?

optional noCycleRuntime?: boolean;

Defined in: packages/core/src/engine/types.ts:49

If set to true, the engine will throw when a cycle is detected at runtime

Default

false

noOrphanRule?

optional noOrphanRule?: boolean;

Defined in: packages/core/src/engine/types.ts:43

If 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

true

situation?

optional situation?: boolean;

Defined in: packages/core/src/engine/types.ts:36

If 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

true