report-schema

v1report

JSON Schema

{"$schema":"https://json-schema.org/draft-07/schema","$id":"https://doc-processing-suite/schemas/report.schema.json","title":"ReportDocument","description":"Annual and financial report document data schema","type":"object","properties":{"documentId":{"type":"string","minLength":1},"category":{"type":"string","const":"report"},"templateVariant":{"type":"string","default":"default"},"reportType":{"type":"string","enum":["annual_report","quarterly_report","financial_statement","audit_report","board_report"]},"title":{"type":"string","minLength":1},"companyName":{"type":"string","minLength":1},"reportingPeriod":{"$ref":"#/$defs/ReportingPeriod"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"preparedBy":{"$ref":"#/$defs/Person"},"approvedBy":{"$ref":"#/$defs/Person"},"executiveSummary":{"type":"string"},"financialHighlights":{"type":"array","items":{"$ref":"#/$defs/FinancialHighlight"}},"balanceSheet":{"$ref":"#/$defs/BalanceSheet"},"incomeStatement":{"$ref":"#/$defs/IncomeStatement"},"notes":{"type":"array","items":{"$ref":"#/$defs/ReportNote"}}},"required":["documentId","category","reportType","title","companyName","reportingPeriod","currency","preparedBy"],"additionalProperties":false,"$defs":{"Person":{"type":"object","properties":{"name":{"type":"string","minLength":1},"title":{"type":"string"},"email":{"type":"string","format":"email"}},"required":["name"],"additionalProperties":false},"ReportingPeriod":{"type":"object","properties":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["startDate","endDate"],"additionalProperties":false},"FinancialHighlight":{"type":"object","properties":{"metric":{"type":"string","minLength":1},"value":{"type":"number"},"change":{"type":"number"}},"required":["metric","value"],"additionalProperties":false},"FinancialLineItem":{"type":"object","properties":{"label":{"type":"string","minLength":1},"currentPeriod":{"type":"number"},"previousPeriod":{"type":"number"},"notes":{"type":"string"}},"required":["label","currentPeriod"],"additionalProperties":false},"FinancialSection":{"type":"object","properties":{"title":{"type":"string","minLength":1},"items":{"type":"array","items":{"$ref":"#/$defs/FinancialLineItem"},"minItems":1},"total":{"type":"number"}},"required":["title","items","total"],"additionalProperties":false},"BalanceSheet":{"type":"object","properties":{"assets":{"type":"array","items":{"$ref":"#/$defs/FinancialSection"}},"liabilities":{"type":"array","items":{"$ref":"#/$defs/FinancialSection"}},"equity":{"type":"array","items":{"$ref":"#/$defs/FinancialSection"}}},"required":["assets","liabilities","equity"],"additionalProperties":false},"IncomeStatement":{"type":"object","properties":{"revenue":{"type":"array","items":{"$ref":"#/$defs/FinancialLineItem"}},"expenses":{"type":"array","items":{"$ref":"#/$defs/FinancialLineItem"}},"netIncome":{"type":"number"}},"required":["revenue","expenses","netIncome"],"additionalProperties":false},"ReportNote":{"type":"object","properties":{"number":{"type":"integer","minimum":1},"title":{"type":"string","minLength":1},"content":{"type":"string","minLength":1}},"required":["number","title","content"],"additionalProperties":false}}}
Content Hash: report-v1-ha...
Created: 17:34 21/01/2026 (4 days ago)

Quick Actions

Info

This schema defines the structure for extracted document data. It is used by prompts to generate structured outputs from documents.