{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.sectigoaxiom.com/contract/schemas/SimulateRequest.json",
  "type": "object",
  "properties": {
    "service_id": { "type": "string" },
    "operation": { "type": "string" },
    "tenant_id": { "type": "string" },
    "agent_id": { "type": "string" },
    "grant_id": { "type": "string" },
    "resource": {
      "type": "object",
      "properties": { "type": { "type": "string" }, "id": { "type": "string" } },
      "required": ["type", "id"]
    },
    "params": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} },
    "environment": { "type": "string" },
    "candidate": {
      "type": "object",
      "properties": {
        "policy_id": { "type": "string" },
        "rules": {
          "maxItems": 200,
          "type": "array",
          "items": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }
        }
      },
      "required": ["rules"]
    }
  },
  "required": ["service_id", "operation", "tenant_id", "resource", "params"]
}
