{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-report-response-schema.json",
  "title": "ReportResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-regulatory-reports-api-openapi.yml#/components/schemas/ReportResponse",
  "properties": {
    "report_id": {
      "type": "string",
      "title": "Report Id"
    },
    "report_type": {
      "type": "string",
      "title": "Report Type"
    },
    "framework": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Framework"
    },
    "tenant_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tenant Id"
    },
    "sections": {
      "items": {
        "$ref": "#/$defs/ReportSectionResponse"
      },
      "type": "array",
      "title": "Sections",
      "default": []
    },
    "overall_status": {
      "type": "string",
      "title": "Overall Status",
      "default": ""
    },
    "content_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content Hash"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "report_id",
    "report_type"
  ],
  "$defs": {
    "ReportSectionResponse": {
      "properties": {
        "title": {
          "type": "string",
          "title": "Title"
        },
        "article": {
          "type": "string",
          "title": "Article",
          "default": ""
        },
        "status": {
          "type": "string",
          "title": "Status",
          "default": ""
        },
        "evidence": {
          "additionalProperties": true,
          "type": "object",
          "title": "Evidence",
          "default": {}
        },
        "narrative": {
          "type": "string",
          "title": "Narrative",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "title"
      ],
      "title": "ReportSectionResponse"
    }
  }
}