feat(taxonomy): add rust sidecar compact surface pipeline
This commit is contained in:
57
contracts/xbrl-hydrate-v1.schema.json
Normal file
57
contracts/xbrl-hydrate-v1.schema.json
Normal 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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user