nika:validate
Data
Tool family from the canonical registry.
invoke
Call this builtin through the invoke verb.
Read this contract
This reference preserves the specification at the revision linked below. Source examples are fragments: their surrounding tasks, inputs and permissions are not supplied here. Consult engine status andnika catalog --tools --json for the installed implementation; a registry declaration is not a runtime qualification.
Usage and behavior
illustration
{ valid: bool, errors: [...] }. Invalid DATA is a report, never a task failure (gate on .valid downstream · or nika:assert it). Merges the former json_verify + yaml_validate (format: arg · one validator). schema: may be an object or a JSON/YAML string (a nika:read of a .json file is a string — the builtin parses it). Throws · NIKA-BUILTIN-VALIDATE-001 (the schema: itself is not a valid JSON Schema · validation_error) · -002 (format: yaml and the string does not parse as YAML).
Related concepts
Arguments
Pass the values required by the tool contract.
Permissions
Understand authority before granting effects.
Errors and recovery
Read diagnostics and choose a recovery policy.
Workflow templates
Put the fragment inside a complete workflow.
Contract provenance
Read the pinned specification · Canonical registry. Tool identity:nika:validate. Specification revision: f8c5df2127c7.
The Lab language identity is language:tool:validate; the registry view is ecosystem:tool/nika:validate. They refer to this contract without merging their graph identities.