docling-core 1.6.2__py3-none-any.whl → 1.6.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of docling-core might be problematic. Click here for more details.

@@ -8,7 +8,7 @@ import re
8
8
  from copy import deepcopy
9
9
  from typing import Any, Optional, Pattern, Tuple, TypedDict
10
10
 
11
- from jsonref import JsonRef
11
+ from jsonref import replace_refs
12
12
 
13
13
 
14
14
  class SearchIndexDefinition(TypedDict):
@@ -95,7 +95,11 @@ class JsonSchemaToSearchMapper:
95
95
  which define the fields, their data types, and other specifications to index
96
96
  JSON documents into a Lucene index.
97
97
  """
98
- mapping = JsonRef.replace_refs(schema)
98
+ mapping = deepcopy(schema)
99
+
100
+ mapping = self._suppress(mapping, self._suppress_key)
101
+
102
+ mapping = replace_refs(mapping)
99
103
 
100
104
  mapping = self._merge_unions(mapping)
101
105
 
@@ -105,8 +109,6 @@ class JsonSchemaToSearchMapper:
105
109
 
106
110
  mapping = self._remove_keys(mapping, self._rm_keys)
107
111
 
108
- mapping = self._suppress(mapping, self._suppress_key)
109
-
110
112
  mapping = self._translate_keys_re(mapping)
111
113
 
112
114
  mapping = self._clean(mapping)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling-core
3
- Version: 1.6.2
3
+ Version: 1.6.3
4
4
  Summary: A python library to define and validate data types in Docling.
5
5
  Home-page: https://ds4sd.github.io/
6
6
  License: MIT
@@ -9,7 +9,7 @@ docling_core/resources/schemas/generated/minimal_document_schema_flat.json,sha25
9
9
  docling_core/resources/schemas/search/search_doc_mapping.json,sha256=1QNzBJt_ZIokKbO-5kBjvoBeoTTY4EuHnIZvsOPtSD0,2015
10
10
  docling_core/resources/schemas/search/search_doc_mapping_v2.json,sha256=ZIr4tqhfX4S9QHG2Ei08QbzJbspPTf5duSwbdhzdUWA,6009
11
11
  docling_core/search/__init__.py,sha256=RucCUQjDlTZ7VfgbfnKDRBL-A-_Lcc2JWWeiVWHtoOY,147
12
- docling_core/search/json_schema_to_search_mapper.py,sha256=9crSFuSbcXrJej7j1rYWK6b0x37cHDmPF6va5j3gknA,12933
12
+ docling_core/search/json_schema_to_search_mapper.py,sha256=voCiumZ_Uc42JAZJwtAIyxQg14Vf_yaNnEkoJ6ZRNxg,12967
13
13
  docling_core/search/mapping.py,sha256=6rqG7LgYSeWmooKNEcRa5gFDLp1ZdzPqDGlwTA5gpOk,724
14
14
  docling_core/search/meta.py,sha256=wSurrsqdP1N3gQKx027fVdzVmc33a7Y6rPl-FClQvtA,3318
15
15
  docling_core/search/package.py,sha256=Lz2ml2eDy5t0ZimnGTq-DXHAn-f18w0bn4H5xrhs75A,1841
@@ -45,8 +45,8 @@ docling_core/utils/ds_generate_jsonschema.py,sha256=EhNQutqWJFWuN-yl9UUPFZ7DJTvG
45
45
  docling_core/utils/file.py,sha256=VQgzjyvmJnAIHB6ex7ikcmbDAR4GA1ALreuO7Ubrp50,1895
46
46
  docling_core/utils/validate.py,sha256=3FmnxnKTDZC5J9OGxCL3U3DGRl0t0bBV1NcySXswdas,2031
47
47
  docling_core/utils/validators.py,sha256=fBdyWX4PvFh7o_d25ZTs4iwmeo75QTbrxsvXv2kXkTg,2777
48
- docling_core-1.6.2.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
49
- docling_core-1.6.2.dist-info/METADATA,sha256=tYHPA7hs0aFYMr3W7FkkzsuwSySO5RbWrGN34neN2Mc,5383
50
- docling_core-1.6.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
51
- docling_core-1.6.2.dist-info/entry_points.txt,sha256=XHhtJEkdUuLxXSNxLdFIzx_siQ3z2UFQEKp-P8VYAE4,189
52
- docling_core-1.6.2.dist-info/RECORD,,
48
+ docling_core-1.6.3.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
49
+ docling_core-1.6.3.dist-info/METADATA,sha256=Wsqt7p3rp3dQWmYllKoExtFmteUDNM2R7f3-GIlYWIY,5383
50
+ docling_core-1.6.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
51
+ docling_core-1.6.3.dist-info/entry_points.txt,sha256=XHhtJEkdUuLxXSNxLdFIzx_siQ3z2UFQEKp-P8VYAE4,189
52
+ docling_core-1.6.3.dist-info/RECORD,,