{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/credo-ai/json-schema/credo-ai-entity-risk-scenario-response-schema.json",
  "title": "EntityRiskScenarioResponse",
  "description": "A JSON-API document with a single [EntityRiskScenarioResource](#entityriskscenarioresource) resource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/credo-ai-entity-risk-scenarios-api-openapi.yml#/components/schemas/EntityRiskScenarioResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/EntityRiskScenarioResource"
    },
    "included": {
      "description": "Included resources",
      "items": {
        "properties": {
          "id": {
            "description": "The JSON-API resource ID",
            "type": "string"
          },
          "type": {
            "description": "The JSON-API resource type",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "data"
  ],
  "type": "object",
  "$defs": {
    "EntityRiskScenarioResource": {
      "description": "",
      "properties": {
        "attributes": {
          "properties": {
            "description": {
              "description": "",
              "type": "string"
            },
            "entity_id": {
              "description": "",
              "type": "string"
            },
            "inherent_risk": {
              "description": "",
              "type": "string"
            },
            "inherent_risk_impact": {
              "description": "",
              "type": "string"
            },
            "inherent_risk_likelihood": {
              "description": "",
              "type": "string"
            },
            "inserted_at": {
              "description": "",
              "type": "string"
            },
            "name": {
              "description": "",
              "type": "string"
            },
            "residual_risk": {
              "description": "",
              "type": "string"
            },
            "residual_risk_impact": {
              "description": "",
              "type": "string"
            },
            "residual_risk_likelihood": {
              "description": "",
              "type": "string"
            },
            "risk_scenario_id": {
              "description": "",
              "type": "string"
            },
            "risk_type_ids": {
              "description": "",
              "type": "string"
            },
            "updated_at": {
              "description": "",
              "type": "string"
            }
          },
          "type": "object"
        },
        "id": {
          "description": "The JSON-API resource ID",
          "type": "string"
        },
        "relationships": {
          "properties": {
            "risk_control_links": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related risk_control_links resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related risk_control_links resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "risk_scenario": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related risk_scenario resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related risk_scenario resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "description": "The JSON-API resource type",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}