Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix test data restoring alphabetical order #150

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 additions & 1 deletion docs/DoclingDocument.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"label": {
"const": "code",
"default": "code",
Expand Down Expand Up @@ -289,6 +293,15 @@
"title": "CodeLanguageLabel",
"type": "string"
},
"ContentLayer": {
"description": "ContentLayer.",
"enum": [
"body",
"furniture"
],
"title": "ContentLayer",
"type": "string"
},
"CoordOrigin": {
"description": "CoordOrigin.",
"enum": [
Expand Down Expand Up @@ -366,6 +379,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"name": {
"default": "group",
"title": "Name",
Expand Down Expand Up @@ -465,6 +482,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"label": {
"const": "key_value_region",
"default": "key_value_region",
Expand Down Expand Up @@ -514,6 +535,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"label": {
"const": "list_item",
"default": "list_item",
Expand Down Expand Up @@ -722,6 +747,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"label": {
"const": "picture",
"default": "picture",
Expand Down Expand Up @@ -1119,6 +1148,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"label": {
"const": "section_header",
"default": "section_header",
Expand Down Expand Up @@ -1297,6 +1330,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"label": {
"default": "table",
"enum": [
Expand Down Expand Up @@ -1388,6 +1425,10 @@
"title": "Children",
"type": "array"
},
"content_layer": {
"$ref": "#/$defs/ContentLayer",
"default": "body"
},
"label": {
"enum": [
"caption",
Expand Down Expand Up @@ -1467,16 +1508,19 @@
"self_ref": "#/furniture",
"parent": null,
"children": [],
"content_layer": "body",
"name": "_root_",
"label": "unspecified"
}
},
"deprecated": true
},
"body": {
"$ref": "#/$defs/GroupItem",
"default": {
"self_ref": "#/body",
"parent": null,
"children": [],
"content_layer": "body",
"name": "_root_",
"label": "unspecified"
}
Expand Down
2 changes: 1 addition & 1 deletion test/data/docling_document/unit/FloatingItem.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
captions: []
children: []
content_layer: body
footnotes: []
image: null
label: text
parent: null
prov: []
references: []
self_ref: '#'
content_layer: body
2 changes: 1 addition & 1 deletion test/data/docling_document/unit/KeyValueItem.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
children: []
content_layer: body
label: key_value_region
parent: null
prov: []
self_ref: '#'
content_layer: body
2 changes: 1 addition & 1 deletion test/data/docling_document/unit/ListItem.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
children: []
content_layer: body
enumerated: true
label: list_item
marker: (1)
Expand All @@ -7,4 +8,3 @@ parent: null
prov: []
self_ref: '#'
text: whatever
content_layer: body
2 changes: 1 addition & 1 deletion test/data/docling_document/unit/PictureItem.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
annotations: []
captions: []
children: []
content_layer: body
footnotes: []
image: null
label: picture
parent: null
prov: []
references: []
self_ref: '#'
content_layer: body
2 changes: 1 addition & 1 deletion test/data/docling_document/unit/SectionHeaderItem.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
children: []
content_layer: body
label: section_header
level: 2
orig: whatever
parent: null
prov: []
self_ref: '#'
text: whatever
content_layer: body
2 changes: 1 addition & 1 deletion test/data/docling_document/unit/TableItem.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
captions: []
children: []
content_layer: body
data:
grid:
- - bbox: null
Expand Down Expand Up @@ -177,4 +178,3 @@ parent: null
prov: []
references: []
self_ref: '#'
content_layer: body
2 changes: 1 addition & 1 deletion test/data/docling_document/unit/TextItem.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
children: []
content_layer: body
label: text
orig: whatever
parent: null
prov: []
self_ref: '#'
text: whatever
content_layer: body