StrictOptions
API / publicodes / StrictOptions
type StrictOptions: object;
Type declaration
Name | Type | Description | Defined in |
---|---|---|---|
noOrphanRule ? | boolean | 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 | packages/core/src/engine/index.ts:76 |
situation ? | boolean | 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 | packages/core/src/engine/index.ts:69 |