decide-fyi · Schema
DecisionPatternResponse
Decision APIRule EngineSoftware-as-a-ServiceAutomationRuntime
Properties
| Name | Type | Description |
|---|---|---|
| ok | boolean | |
| policy_pattern | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/decide-fyi/json-schema/decide-fyi-decision-pattern-response-schema.json",
"title": "DecisionPatternResponse",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/decide-fyi-policy-patterns-api-openapi.yml#/components/schemas/DecisionPatternResponse",
"type": "object",
"required": [
"ok",
"policy_pattern"
],
"properties": {
"ok": {
"type": "boolean"
},
"policy_pattern": {
"$ref": "#/$defs/DecisionPattern"
}
},
"additionalProperties": true,
"$defs": {
"DecisionPattern": {
"type": "object",
"required": [
"decision_pattern_version",
"pattern_id",
"policy_id",
"pattern_hash"
],
"properties": {
"decision_pattern_version": {
"type": "string",
"const": "decision_pattern_v1"
},
"pattern_id": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"category": {
"type": "string"
},
"status": {
"type": "string"
},
"summary": {
"type": "string"
},
"policy_id": {
"type": "string"
},
"recommended_policy_version": {
"type": "string"
},
"source": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"required_context_fields": {
"type": "array",
"items": {
"type": "string"
}
},
"recommended_context_fields": {
"type": "array",
"items": {
"type": "string"
}
},
"evidence_codes": {
"type": "array",
"items": {
"type": "string"
}
},
"decision_request_template": {
"$ref": "#/$defs/DecisionRequest"
},
"outcome_template": {
"type": "object",
"additionalProperties": true
},
"crm_sync_template": {
"type": "object",
"additionalProperties": true
},
"sdk_examples": {
"type": "array",
"items": {
"type": "string"
}
},
"pattern_hash": {
"type": "string"
}
},
"additionalProperties": true
},
"DecisionRequest": {
"type": "object",
"anyOf": [
{
"required": [
"question"
]
},
{
"required": [
"prompt",
"context"
]
},
{
"required": [
"mode",
"rulebook",
"context"
],
"properties": {
"mode": {
"const": "rulebook"
}
}
}
],
"properties": {
"question": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"single",
"multi",
"runtime",
"rulebook"
]
},
"prompt": {
"type": "string"
},
"stem": {
"type": "string"
},
"options": {
"type": "array",
"minItems": 2,
"maxItems": 8,
"items": {
"type": "string"
}
},
"context": {
"type": [
"object",
"string"
],
"additionalProperties": true
},
"response_view": {
"type": "string",
"enum": [
"minimal",
"standard",
"full"
]
},
"rulebook": {
"$ref": "#/$defs/RulebookV1"
},
"adapter": {
"$ref": "#/$defs/TrustedAdapterInvocation"
}
},
"additionalProperties": false
},
"RulebookCondition": {
"oneOf": [
{
"type": "object",
"required": [
"all"
],
"properties": {
"all": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"items": {
"$ref": "#/$defs/RulebookCondition"
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"any"
],
"properties": {
"any": {
"type": "array",
"minItems": 1,
"maxItems": 32,
"items": {
"$ref": "#/$defs/RulebookCondition"
}
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"not"
],
"properties": {
"not": {
"$ref": "#/$defs/RulebookCondition"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"field",
"operator"
],
"properties": {
"field": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,159}$"
},
"operator": {
"type": "string",
"enum": [
"exists",
"not_exists",
"eq",
"neq",
"gt",
"gte",
"lt",
"lte",
"in",
"not_in",
"contains",
"not_contains"
]
},
"value": {}
},
"additionalProperties": false
}
]
},
"RulebookInputSchema": {
"type": "object",
"properties": {
"required": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,159}$"
}
},
"properties": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"string",
"number",
"integer",
"boolean",
"array",
"object",
"null"
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"RulebookOutcome": {
"type": "object",
"required": [
"decision",
"verdict",
"action",
"reason_code"
],
"properties": {
"decision": {
"type": "string",
"enum": [
"yes",
"no",
"review"
]
},
"verdict": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9_]{1,79}$"
},
"action": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"reason_code": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9_]{1,79}$"
}
},
"additionalProperties": false
},
"RulebookRule": {
"type": "object",
"required": [
"rule_id",
"condition",
"outcome"
],
"properties": {
"rule_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{1,119}$"
},
"priority": {
"type": "integer",
"minimum": -1000,
"maximum": 1000,
"default": 0
},
"condition": {
"$ref": "#/$defs/RulebookCondition"
},
"outcome": {
"$ref": "#/$defs/RulebookOutcome"
}
},
"additionalProperties": false
},
"RulebookV1": {
"type": "object",
"required": [
"schema_version",
"rulebook_id",
"version",
"rules",
"default_outcome"
],
"properties": {
"schema_version": {
"type": "string",
"const": "rulebook_v1"
},
"rulebook_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{1,119}$"
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"input_schema": {
"$ref": "#/$defs/RulebookInputSchema"
},
"rules": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"$ref": "#/$defs/RulebookRule"
}
},
"default_outcome": {
"$ref": "#/$defs/RulebookOutcome"
}
},
"additionalProperties": false
},
"TrustedAdapterInvocation": {
"type": "object",
"required": [
"adapter_id",
"version",
"manifest_hash",
"input"
],
"properties": {
"adapter_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.:-]{1,119}$"
},
"version": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
},
"manifest_hash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"input": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/decide-fyi-decision-pattern-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.