validate

v0.1.2
io.github.machinegrade/validate Checked 13 hours ago Published 4 months ago

Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate

Validate an artifact against a contract (json_schema | openapi_response | sql) via the machinegrade validate API.

ParameterTypeDescription
artifact *object | array | string | number | boolean | nullThe artifact to validate, as a JSON value — not a JSON-encoded string. json_schema/openapi_response: the object/array/value itself. sql: the SQL statement as a string.
type *stringWhich validator to run.
contractobjectValidator-specific contract. json_schema: { schema }. openapi_response: { spec, path, method, status }. sql: { dialect }.