Protocol.Validate
protocol.validateValidate a neurofeedback protocol document WITHOUT saving it. Returns {valid: true, spec} on success, or {valid: false, errors: [...]} with the per-violation list (loc/msg) when the document is invalid — the verdict is data, never an exception.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | Wire-format protocol document (camelCase): id, name, indicator {name, transform}, armDefaults, blocks [{id, kind: assessment|training, durationSec, feedback?}], threshold, sessions, breakCriteria. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||