{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/credo-ai/json-schema/credo-ai-evidence-response-schema.json",
  "title": "EvidenceResponse",
  "description": "A JSON-API document with a single [EvidenceResource](#evidenceresource) resource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/credo-ai-entity-evidences-api-openapi.yml#/components/schemas/EvidenceResponse",
  "properties": {
    "data": {
      "$ref": "#/$defs/EvidenceResource"
    },
    "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": {
    "EvidenceResource": {
      "description": "",
      "properties": {
        "attributes": {
          "properties": {
            "control_key": {
              "description": "Control key",
              "type": "string"
            },
            "creator": {
              "description": "Creator",
              "type": "object"
            },
            "data": {
              "description": "value data,",
              "type": "object"
            },
            "entity_id": {
              "description": "",
              "type": "string"
            },
            "generated_at": {
              "description": "Evidence generation time",
              "type": "string"
            },
            "hash_key": {
              "description": "",
              "type": "string"
            },
            "inserted_at": {
              "description": "insert time",
              "type": "string"
            },
            "label": {
              "description": "label in the evidence requirement",
              "type": "object"
            },
            "metadata": {
              "description": "metadata",
              "type": "object"
            },
            "model_id": {
              "description": "model_id",
              "type": "string"
            },
            "model_version": {
              "description": "",
              "type": "string"
            },
            "type": {
              "description": "Evidence type",
              "type": "string"
            },
            "use_case_id": {
              "description": "use_case_id",
              "type": "string"
            }
          },
          "type": "object"
        },
        "id": {
          "description": "The JSON-API resource ID",
          "type": "string"
        },
        "relationships": {
          "properties": {
            "asset_links": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related asset_links resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related asset_links resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "model": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related model resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related model resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "policy_pack_links": {
              "properties": {
                "data": {
                  "properties": {
                    "id": {
                      "description": "Related policy_pack_links resource id",
                      "type": "string"
                    },
                    "type": {
                      "description": "Type of related policy_pack_links resource",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "description": "The JSON-API resource type",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}