Primitive
data.validateObjectShape
BETAShort name: validateObjectShape
Version: 1.0.0
Validate object key shape against requiredKeys and allowedKeys constraints.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| allowedKeys | array | false | When provided, only these keys are allowed. |
| requiredKeys | array | false | Keys that must exist on the object. |
| value | any | false | Value to validate as an object. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| ok | boolean | false | True when object satisfies all configured key constraints. |
| reason | string | false | Failure reason when ok is false. Empty string when ok is true. |