arelle.oim.csv.metadata.parser¶
See COPYRIGHT.md for copyright information.
Module Contents¶
Functions¶
Build a resolved |
API¶
- arelle.oim.csv.metadata.parser.parse_xbrl_csv_metadata(oim_object: dict[str, Any]) arelle.oim.csv.metadata.model.XbrlCsvEffectiveMetadata¶
Build a resolved
XbrlCsvEffectiveMetadatafrom a fully merged OIM object dict.Structural validation has already been performed upstream during JSON merging. This function parses the merged dict. Raises
TypeErrorifdocumentInfois missing or not a dict, ordocumentTypeis missing or not a string. RaisesValueErrorifdocumentTypeis not a recognised CSV document type URI. All other type mismatched values and unknown keys are dropped, yielding a well typed partial model.