test_validate
Validate test content as JSON string or object before saving. Returns a summary on success or an error if invalid, ensuring only valid tests are created or updated.
Instructions
Validates test content (JSON string or object) without saving it. Returns {ok: true, doc: summary} or {ok: false, error}. Useful before test_create/test_update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Suggested name (optional) | |
| content | Yes | Test content: JSON string or object |