Import parser registry
Mirrors the export registry for imports: custom parsers (for example XML or a fixed-width format) plug into the same mapping, validation and commit pipeline. File type detection uses the extension, MIME type and an optional content sniffing function.
Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Import dialog with a 'Register fixed-width parser' toggle and a sample .txt manifest.
Expected behavior
Once registered, the sample file is detected as fixed-width and flows into the mapping and validation steps. Without registration, an 'Unsupported file type' message appears.
Planned API surface
registerImportParser()unregisterImportParser()ImportParser interface: id, extensions, mimeTypes, sniff(), parse() async iterableAcceptance criteria
- parse() yields header and row records as an async iterable. (pending)
- Detection order is explicit format, then sniff, then extension, then MIME type. (pending)
- Built-in CSV, JSON and XLSX parsers are registered entries that can be replaced. (pending)
- Custom parser output goes through validation identically to the built-in parsers. (pending)