feat(taxonomy): add rust sidecar compact surface pipeline

This commit is contained in:
2026-03-12 15:23:10 -04:00
parent f2c25fb9c6
commit 58061af006
84 changed files with 19350 additions and 265 deletions

View File

@@ -0,0 +1,57 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://fiscal.ai/contracts/xbrl-hydrate-v1.schema.json",
"title": "Fiscal XBRL Hydrate Filing v1",
"type": "object",
"properties": {
"filingId": { "type": "integer" },
"ticker": { "type": "string" },
"cik": { "type": "string" },
"accessionNumber": { "type": "string" },
"filingDate": { "type": "string", "format": "date" },
"filingType": { "type": "string", "enum": ["10-K", "10-Q"] },
"filingUrl": { "type": ["string", "null"] },
"primaryDocument": { "type": ["string", "null"] },
"cacheDir": { "type": "string" }
},
"required": [
"filingId",
"ticker",
"cik",
"accessionNumber",
"filingDate",
"filingType",
"cacheDir"
],
"$defs": {
"statementKind": {
"type": "string",
"enum": ["income", "balance", "cash_flow", "equity", "comprehensive_income"]
},
"surfaceRow": {
"type": "object",
"properties": {
"key": { "type": "string" },
"label": { "type": "string" },
"category": { "type": "string" },
"order": { "type": "integer" },
"unit": { "type": "string" },
"values": {
"type": "object",
"additionalProperties": {
"type": ["number", "null"]
}
},
"sourceConcepts": {
"type": "array",
"items": { "type": "string" }
},
"sourceFactIds": {
"type": "array",
"items": { "type": "integer" }
}
},
"required": ["key", "label", "category", "order", "unit", "values", "sourceConcepts", "sourceFactIds"]
}
}
}