Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / isStrictCompatibleSchema

Function: isStrictCompatibleSchema()

ts
function isStrictCompatibleSchema(schema): boolean;

Defined in: packages/core/src/model/caps.ts:24

Strict-schema compatibility as both first-class providers define it: every object node declares additionalProperties: false and lists every property in required. Boolean schemas and non-object shapes are trivially compatible.

Parameters

ParameterType
schemaboolean | JsonSchema

Returns

boolean