Opsmaru.Incus.Operations.Schema (opsmaru_incus v0.1.0)

Copy Markdown View Source

Validates operation input against its own JSON Schema subset.

Descriptor schemas are the only definition of an operation's input; direct callers and the MCP binding both validate against them. Only the keywords in keywords/0 are supported, so a schema cannot claim a constraint this validator ignores. Lengths count characters as JSON Schema does; byte bounds are enforced separately by each descriptor.

Summary

Functions

JSON Schema keywords this validator implements.

Validate value; returns :ok or {:error, path, reason} with a JSON-pointer-like path.

Functions

keywords()

JSON Schema keywords this validator implements.

validate(schema, value)

Validate value; returns :ok or {:error, path, reason} with a JSON-pointer-like path.