38 lines
810 B
JSON
38 lines
810 B
JSON
|
|
{
|
||
|
|
"id": "config_document_structure_with_headings",
|
||
|
|
"description": "Tests document structure with DOCX heading-driven nesting",
|
||
|
|
"tags": [
|
||
|
|
"contract",
|
||
|
|
"document_structure"
|
||
|
|
],
|
||
|
|
"call": "extract_file_sync",
|
||
|
|
"input": {
|
||
|
|
"path": "docx/fake.docx",
|
||
|
|
"config": {
|
||
|
|
"include_document_structure": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"assertions": [
|
||
|
|
{
|
||
|
|
"type": "equals",
|
||
|
|
"field": "mime_type",
|
||
|
|
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "not_empty",
|
||
|
|
"field": "document"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "count_min",
|
||
|
|
"field": "document.nodes",
|
||
|
|
"value": 1
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"skip": {
|
||
|
|
"languages": [
|
||
|
|
"wasm"
|
||
|
|
],
|
||
|
|
"reason": "WASM cannot access filesystem; use extractBytes with file content instead"
|
||
|
|
}
|
||
|
|
}
|