Files
docling-core/docs/Generic.json
T
Cesar Berrospi Ramis a4ddd142ee fix: change order of JSON Schema to search mapper transformations (#32)
* fix: change order of JSON Schema to search mapper transformations

In the JSON Schema to search mapper, the suppression flags need to be addressed first,
otherwise the jsonref.replace_refs function may remove them.

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

* build: update dependencies

Updating pydantic from 2.8.2 to 2.9.2 triggers a change in JSON Schema from models:
the  lists with only 1 element get flatten.

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

* chore: improve verbose in JSON Schema to search mapper test

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>

---------

Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
2024-09-26 13:49:18 +02:00

71 lines
1.9 KiB
JSON

{
"$defs": {
"FileInfoObject": {
"description": "Filing information for any data object to be stored in a Docling database.",
"properties": {
"filename": {
"description": "The name of a persistent object that created this data object",
"title": "Filename",
"type": "string",
"x-es-ignore_above": 8191,
"x-es-type": "keyword"
},
"filename-prov": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The provenance of this data object, e.g. an archive file, a URL, or any other repository.",
"title": "Filename-Prov",
"x-es-ignore_above": 8191,
"x-es-type": "keyword"
},
"document-hash": {
"description": "A unique identifier of this data object within a collection of a Docling database",
"title": "Document-Hash",
"type": "string",
"x-es-ignore_above": 8191,
"x-es-type": "keyword"
}
},
"required": [
"filename",
"document-hash"
],
"title": "FileInfoObject",
"type": "object"
}
},
"description": "A representation of a generic document.",
"properties": {
"_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "A short description or summary of the document.",
"title": " Name",
"x-es-type": "text"
},
"file-info": {
"$ref": "#/$defs/FileInfoObject",
"description": "Minimal identification information of the document within a collection.",
"title": "Document information"
}
},
"required": [
"file-info"
],
"title": "Generic",
"type": "object"
}