Korala AI · Schema

RiskPolicyValidationDto

IdentityFraud PreventionE-SignatureArtificial Intelligence

Properties

Name Type Description
valid boolean
errors array
definition object
View JSON Schema on GitHub

JSON Schema

korala-ai-risk-policy-validation-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/korala-ai/json-schema/korala-ai-risk-policy-validation-dto-schema.json",
  "title": "RiskPolicyValidationDto",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/korala-ai-openapi.json#/components/schemas/RiskPolicyValidationDto",
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RiskPolicyValidationErrorDto"
      }
    },
    "definition": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "schemaVersion": {
              "description": "Policy format version. Omission denotes legacy version 1; unrelated to the published policy revision.",
              "type": "string",
              "const": "1"
            },
            "inputs": {
              "minItems": 1,
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "subject",
                      "current_context"
                    ]
                  },
                  "derivedReuse": {
                    "type": "object",
                    "properties": {
                      "profileId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "output": {
                        "type": "string",
                        "const": "observed_match_count"
                      }
                    },
                    "required": [
                      "profileId",
                      "output"
                    ],
                    "additionalProperties": false
                  },
                  "verification": {
                    "type": "object",
                    "properties": {
                      "stepType": {
                        "type": "string",
                        "pattern": "^[a-z_]{2,30}$"
                      },
                      "stepIndex": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 99
                      },
                      "field": {
                        "type": "string",
                        "pattern": "^(?:[a-zA-Z][a-zA-Z0-9_]{0,79}|output\\.[a-zA-Z][a-zA-Z0-9_]{0,39}(?:\\.[a-zA-Z][a-zA-Z0-9_]{0,39}){0,4})$"
                      },
                      "transform": {
                        "type": "string",
                        "enum": [
                          "identity",
                          "age_years"
                        ]
                      },
                      "workflowDefinitionId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "workflowUpdatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                      }
                    },
                    "required": [
                      "stepIndex",
                      "field",
                      "workflowDefinitionId",
                      "workflowUpdatedAt"
                    ],
                    "additionalProperties": false
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "boolean",
                      "list",
                      "country",
                      "choice",
                      "money",
                      "date",
                      "datetime"
                    ]
                  },
                  "allowedValues": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "decimalPlaces": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4
                  },
                  "unit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "itemType": {
                    "type": "string",
                    "enum": [
                      "string",
                      "number",
                      "boolean"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "string",
                      "number",
                      "boolean",
                      "list"
                    ]
                  },
                  "evidenceKind": {
                    "type": "string",
                    "enum": [
                      "observed",
                      "model_signal"
                    ]
                  },
                  "requirement": {
                    "type": "string",
                    "enum": [
                      "required",
                      "supporting"
                    ]
                  },
                  "acceptedSources": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    }
                  },
                  "maxAgeSeconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31536000
                  }
                },
                "required": [
                  "key",
                  "type",
                  "acceptedSources",
                  "maxAgeSeconds"
                ],
                "additionalProperties": false
              }
            },
            "applicability": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                  },
                  "all": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fact": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "in",
                            "contains",
                            "gte",
                            "gt",
                            "lte",
                            "lt",
                            "eq_fact",
                            "neq_fact"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2000
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "fact",
                        "operator",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "all"
                ],
                "additionalProperties": false
              }
            },
            "eligibility": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  },
                  "all": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fact": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "in",
                            "contains",
                            "gte",
                            "gt",
                            "lte",
                            "lt",
                            "eq_fact",
                            "neq_fact"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2000
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "fact",
                        "operator",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "reason",
                  "all"
                ],
                "additionalProperties": false
              }
            },
            "factors": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  },
                  "match": {
                    "default": "first",
                    "type": "string",
                    "enum": [
                      "first",
                      "highest"
                    ]
                  },
                  "weight": {
                    "default": 1,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "defaultPoints": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000
                  },
                  "cases": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "when": {
                          "type": "object",
                          "properties": {
                            "fact": {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                            },
                            "operator": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "in",
                                "contains",
                                "gte",
                                "gt",
                                "lte",
                                "lt",
                                "eq_fact",
                                "neq_fact"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 2000
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                },
                                {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "maxLength": 2000
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      }
                                    ]
                                  }
                                }
                              ]
                            }
                          },
                          "required": [
                            "fact",
                            "operator",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "points": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100000
                        }
                      },
                      "required": [
                        "when",
                        "points"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "label",
                  "match",
                  "weight",
                  "cases"
                ],
                "additionalProperties": false
              }
            },
            "aggregation": {
              "default": "sum",
              "type": "string",
              "enum": [
                "sum",
                "max"
              ]
            },
            "floor": {
              "default": 0,
              "type": "number",
              "minimum": 0,
              "maximum": 10000000
            },
            "ceiling": {
              "default": 10000000,
              "type": "number",
              "minimum": 0,
              "maximum": 10000000
            },
            "bands": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                  },
                  "min": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000000
                  },
                  "effect": {
                    "type": "object",
                    "properties": {
                      "decision": {
                        "default": "none",
                        "type": "string",
                        "enum": [
                          "none",
                          "review",
                          "restrict",
                          "reject"
                        ]
                      },
                      "actions": {
                        "default": [],
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                        }
                      }
                    },
                    "required": [
                      "decision",
                      "actions"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "min",
                  "effect"
                ],
                "additionalProperties": false
              }
            },
            "rules": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  },
                  "all": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fact": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "in",
                            "contains",
                            "gte",
                            "gt",
                            "lte",
                            "lt",
                            "eq_fact",
                            "neq_fact"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 2000
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            },
                            {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 2000
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "fact",
                        "operator",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "forceBand": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                  },
                  "effect": {
                    "type": "object",
                    "properties": {
                      "decision": {
                        "default": "none",
                        "type": "string",
                        "enum": [
                          "none",
                          "review",
                          "restrict",
                          "reject"
                        ]
                      },
                      "actions": {
                        "default": [],
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_.-]{0,79}$"
                        }
                      }
                    },
                    "required": [
                      "decision",
                      "actions"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "reason",
                  "all",
                  "effect"
                ],
                "additionalProperties": false
              }
            },
            "missingEvidence": {
              "default": "awaiting_evidence",
              "type": "string",
              "enum": [
                "awaiting_evidence",
                "review"
              ]
            },
            "reviewAfterSeconds": {
              "type": "integer",
              "minimum": 60,
              "maximum": 31536000
            }
          },
          "required": [
            "inputs",
            "factors",
            "aggregation",
            "floor",
            "ceiling",
            "bands",
            "rules",
            "missingEvidence"
          ],
          "additionalProperties": false
        }
      ],
      "nullable": true
    }
  },
  "required": [
    "valid",
    "errors",
    "definition"
  ],
  "$defs": {
    "RiskPolicyValidationErrorDto": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "path",
        "message"
      ]
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/korala-ai-risk-policy-validation-dto"
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.