amsdal_utils 0.5.5__py3-none-any.whl → 0.5.7__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.
- amsdal_utils/__about__.py +1 -1
- amsdal_utils/models/data_models/core.py +2 -2
- amsdal_utils/schemas/schema.py +1 -1
- {amsdal_utils-0.5.5.dist-info → amsdal_utils-0.5.7.dist-info}/METADATA +2 -2
- {amsdal_utils-0.5.5.dist-info → amsdal_utils-0.5.7.dist-info}/RECORD +7 -7
- {amsdal_utils-0.5.5.dist-info → amsdal_utils-0.5.7.dist-info}/WHEEL +1 -1
- {amsdal_utils-0.5.5.dist-info → amsdal_utils-0.5.7.dist-info}/licenses/LICENSE.txt +0 -0
amsdal_utils/__about__.py
CHANGED
|
@@ -11,7 +11,7 @@ from pydantic_core import PydanticCustomError
|
|
|
11
11
|
|
|
12
12
|
class AmsdalGenerateJsonSchema(GenerateJsonSchema):
|
|
13
13
|
def enum_schema(self, schema) -> JsonSchemaValue: # type: ignore[no-untyped-def]
|
|
14
|
-
result = super().enum_schema(schema)
|
|
14
|
+
result = super().enum_schema(schema)
|
|
15
15
|
result['x_enum_names'] = [member.name for member in schema['members']]
|
|
16
16
|
return result
|
|
17
17
|
|
|
@@ -129,7 +129,7 @@ def process_any_of(data: dict[str, Any], info: ValidationInfo) -> dict[str, Any]
|
|
|
129
129
|
definition.update(data)
|
|
130
130
|
data = definition
|
|
131
131
|
|
|
132
|
-
elif 'additionalProperties' in _any_of_element:
|
|
132
|
+
elif 'additionalProperties' in _any_of_element and isinstance(_any_of_element['additionalProperties'], dict):
|
|
133
133
|
_add_props = _any_of_element.pop('additionalProperties')
|
|
134
134
|
|
|
135
135
|
if 'anyOf' in _add_props:
|
amsdal_utils/schemas/schema.py
CHANGED
|
@@ -51,7 +51,7 @@ class PropertyData(TypeData, extra='allow'):
|
|
|
51
51
|
data.pop('$ref')
|
|
52
52
|
data.update(_def)
|
|
53
53
|
|
|
54
|
-
if 'additionalProperties' in data:
|
|
54
|
+
if 'additionalProperties' in data and isinstance(data['additionalProperties'], dict):
|
|
55
55
|
_add_props = data.pop('additionalProperties')
|
|
56
56
|
|
|
57
57
|
if 'anyOf' in _add_props:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amsdal_utils
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.7
|
|
4
4
|
Summary: Utils for AMSDAL data framework
|
|
5
5
|
Project-URL: Documentation, https://pypi.org/project/amsdal_utils/#readme
|
|
6
6
|
Project-URL: Issues, https://pypi.org/project/amsdal_utils/#issues
|
|
@@ -121,7 +121,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
121
121
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
122
122
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
123
123
|
Requires-Python: >=3.11
|
|
124
|
-
Requires-Dist: pydantic~=2.
|
|
124
|
+
Requires-Dist: pydantic~=2.12
|
|
125
125
|
Requires-Dist: pyyaml~=6.0
|
|
126
126
|
Description-Content-Type: text/markdown
|
|
127
127
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
amsdal_utils/Third-Party Materials - AMSDAL Dependencies - License Notices.md,sha256=blZRsT9Qg4u4LzZuxlWQOzlWGpLAg7DugWS6nz7s_yw,62595
|
|
2
|
-
amsdal_utils/__about__.py,sha256=
|
|
2
|
+
amsdal_utils/__about__.py,sha256=6iW8h6OIk_sNDiVyp7NxCzL_PEkI5J0OHZQ6VEA84jQ,124
|
|
3
3
|
amsdal_utils/__init__.py,sha256=EQCJ5OevmkkIpIULumPNIbWk3UI7afDfRzIsZN5mfwg,73
|
|
4
4
|
amsdal_utils/errors.py,sha256=P90oGdKczHZzHukWnzJfbsSxMC-Sc8dUXvHzP7b1IIA,129
|
|
5
5
|
amsdal_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -25,7 +25,7 @@ amsdal_utils/models/base.py,sha256=jcY7ZE6n0lANGjg87sEwlz6val_8ZRHWaCmNZo9Oxnc,1
|
|
|
25
25
|
amsdal_utils/models/enums.py,sha256=1iuixjmfHMIMDM3rEQ1YUjOPF3aV_OEoPq61I61KvGI,745
|
|
26
26
|
amsdal_utils/models/data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
amsdal_utils/models/data_models/address.py,sha256=zKAGlXjw8oGJrADyhwE8BhYzCEUTSChMSApMYOL7Bjk,6585
|
|
28
|
-
amsdal_utils/models/data_models/core.py,sha256=
|
|
28
|
+
amsdal_utils/models/data_models/core.py,sha256=GdOkd-WU5Grifl3f4tyr1Kpv56NQjec2lud1iKo2hAI,8686
|
|
29
29
|
amsdal_utils/models/data_models/enums.py,sha256=qDJDPU5oxPlSNENFNf3PPgxiFJYbTM8OOE8stMmYYHc,4130
|
|
30
30
|
amsdal_utils/models/data_models/metadata.py,sha256=z0u7kJzzNj8FxFXozVCcFfwyJFdto6_CgwXnW5TicB4,2996
|
|
31
31
|
amsdal_utils/models/data_models/reference.py,sha256=hA-06Dq64oMVNv6L6DIelpraxpQJAPiHf4_3UqLmuw4,5098
|
|
@@ -49,7 +49,7 @@ amsdal_utils/query/data_models/paginator.py,sha256=oDEWEdyrEBBkHXyrS4K2mglYVw8An
|
|
|
49
49
|
amsdal_utils/query/data_models/query_specifier.py,sha256=7rEVChU2XPy-3ooaTgfSZGKIOyIIKn8245MMuWrv3Mk,469
|
|
50
50
|
amsdal_utils/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
51
|
amsdal_utils/schemas/interfaces.py,sha256=XJGw45IE7E1HjYArdz2LELOcx15PeTw4L1V34atKm6Y,773
|
|
52
|
-
amsdal_utils/schemas/schema.py,sha256=
|
|
52
|
+
amsdal_utils/schemas/schema.py,sha256=twKLn11eKv8OywudRzp7lnj6dUstn93SaPjQ2IRheiY,6680
|
|
53
53
|
amsdal_utils/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
54
|
amsdal_utils/utils/classes.py,sha256=GeJIt-jxOHgMnlEHMmzNk9vwxv4_V5dLP-Fv89hN5hc,354
|
|
55
55
|
amsdal_utils/utils/decorators.py,sha256=RCWbbQJ2hY2s-uAI0C5M0X8gTXqUbL1Gx9NxACYBMOA,992
|
|
@@ -57,7 +57,7 @@ amsdal_utils/utils/identifier.py,sha256=oP3CHd2i8EBHMVUC8DWLr9pFZBt1IdH7Falaa3M2
|
|
|
57
57
|
amsdal_utils/utils/lazy_object.py,sha256=eIVHBDNCSHKQopzYjviPCuh0svbRJQOCZ8KzqFLiS-s,2115
|
|
58
58
|
amsdal_utils/utils/singleton.py,sha256=O42jKH0jOdfcPGz-OHqfm7kShEZQwUanu3rMHQJSsb0,722
|
|
59
59
|
amsdal_utils/utils/text.py,sha256=4L5aICJGbmFZwNUhMrACb5thqmcIaWb3aVD24lW24a0,1962
|
|
60
|
-
amsdal_utils-0.5.
|
|
61
|
-
amsdal_utils-0.5.
|
|
62
|
-
amsdal_utils-0.5.
|
|
63
|
-
amsdal_utils-0.5.
|
|
60
|
+
amsdal_utils-0.5.7.dist-info/METADATA,sha256=fUhjsCqBtctVDepD3eLZYUDRojKP62UM1cVNhIz0jvM,57432
|
|
61
|
+
amsdal_utils-0.5.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
62
|
+
amsdal_utils-0.5.7.dist-info/licenses/LICENSE.txt,sha256=hG-541PFYfNJi9WRZi_hno91UyqNg7YLK8LR3vLblZA,27355
|
|
63
|
+
amsdal_utils-0.5.7.dist-info/RECORD,,
|
|
File without changes
|