contracts $0.0008 / call
OpenAPI Diff
Detect selected direct breaking changes between OpenAPI 3.0 documents.
contracts.openapi-diffcontracts.openapi-lint · v1.0.0
Validate OpenAPI 3.0 JSON structure and internal references.
{
"document": {
"openapi": "3.0.3",
"info": {
"title": "Demo",
"version": "1"
},
"paths": {
"/hello": {
"get": {
"responses": {
"200": {
"description": "OK"
}
}
}
}
}
}
}{
"valid": true,
"issues": [],
"scope": "OpenAPI 3.0 structure, internal reference existence and operation IDs; no remote resolution."
}Generated from the actual handler using this example input; this is a preview, not a paid API call. Paid responses wrap the result with a receipt and recovery expiry.
Add credits in the workspace and keep your API key in private environment storage. Use the same request ID and exact body to recover a lost response within ten minutes.
// Node.js 22+. Read the key from your private environment.
const requestId = Date.now() + '_' + crypto.randomUUID();
const response = await fetch('https://agent-utilities.agent-utilities.workers.dev/v1/tools/contracts.openapi-lint', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + process.env.AGENT_UTILITIES_API_KEY,
'Idempotency-Key': requestId
},
body: JSON.stringify({
"document": {
"openapi": "3.0.3",
"info": {
"title": "Demo",
"version": "1"
},
"paths": {
"/hello": {
"get": {
"responses": {
"200": {
"description": "OK"
}
}
}
}
}
}
})
});
const data = await response.json();
if (!response.ok) throw new Error(data.error?.message ?? 'Request failed');
console.log(data);
// On response loss, retry this SAME requestId, tool and body.
// Do not rerun the line that generates requestId for a retry.{
"type": "object",
"properties": {
"document": {
"type": "object"
}
},
"required": [
"document"
],
"additionalProperties": false
}{
"type": "object",
"properties": {
"valid": {
"type": "boolean"
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"rule": {
"type": "string"
}
},
"required": [
"path",
"rule"
],
"additionalProperties": false
}
},
"scope": {
"type": "string"
}
},
"required": [
"valid",
"issues",
"scope"
],
"additionalProperties": false
}Prices are experimental. The service currently allows 1,000 new calls per day across all accounts. Failed operations return reserved credits. Successful results are encrypted for ten-minute retry recovery. Review data handling and service limits.
contracts $0.0008 / call
Detect selected direct breaking changes between OpenAPI 3.0 documents.
contracts.openapi-diffcontracts $0.0003 / call
Validate data using a bounded JSON Schema 2020-12 subset.
contracts.jsonschema-validate