vtjson 2.2.0__py3-none-any.whl → 2.2.2__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.
vtjson/vtjson.py CHANGED
@@ -204,7 +204,7 @@ class SchemaError(Exception):
204
204
  pass
205
205
 
206
206
 
207
- __version__ = "2.2.0"
207
+ __version__ = "2.2.2"
208
208
 
209
209
 
210
210
  @dataclass
@@ -2195,7 +2195,7 @@ class cond(wrapper):
2195
2195
 
2196
2196
 
2197
2197
  class _fields(compiled_schema):
2198
- d: dict[str | optional_key[str], compiled_schema]
2198
+ d: dict[optional_key[str], compiled_schema]
2199
2199
 
2200
2200
  def __init__(
2201
2201
  self,
@@ -2214,7 +2214,7 @@ class _fields(compiled_schema):
2214
2214
  subs: Mapping[str, object] = {},
2215
2215
  ) -> str:
2216
2216
  for k, v in self.d.items():
2217
- name_ = f"{name}.{k}"
2217
+ name_ = f"{name}.{k.key}"
2218
2218
  if not isinstance(k, optional_key):
2219
2219
  if not hasattr(obj, k):
2220
2220
  return f"{name_} is missing"
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vtjson
3
- Version: 2.2.0
4
- Summary: A lightweight package for validating JSON like Python objects
3
+ Version: 2.2.2
4
+ Summary: An easy to use validation library compatible with Python type annotations
5
5
  Author-email: Michel Van den Bergh <michel.vandenbergh@uhasselt.be>
6
6
  Project-URL: Homepage, https://github.com/vdbergh/vtjson
7
7
  Project-URL: Bug Tracker, https://github.com/vdbergh/vtjson/issues
@@ -0,0 +1,9 @@
1
+ vtjson/__init__.py,sha256=oLX4JH6_R7dYtTiGfBG3pQGR21IArspifdmZilbuGOw,68
2
+ vtjson/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ vtjson/vtjson.py,sha256=_NcOEWxuqZiVJQSn0ZoI9eGxL5GsbtacWIb-BwTPzTY,86274
4
+ vtjson-2.2.2.dist-info/AUTHORS,sha256=qmxaXxaIO-YPNHJAZ0dcCrnPCs1x9ocbtMksiy4i80M,21
5
+ vtjson-2.2.2.dist-info/LICENSE,sha256=n7xW-zX8xBLHzCdqWIMRuMzBD_ACLcNCwio0LEkKt1o,1077
6
+ vtjson-2.2.2.dist-info/METADATA,sha256=reeTR8tvW1KdngstUC6dTdOas_8NXHqdRroKLH_eUfU,3963
7
+ vtjson-2.2.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
+ vtjson-2.2.2.dist-info/top_level.txt,sha256=9DlSF3l63igcvnYPcj117F2hzOW4Nx0N-JBoW3jjBZM,7
9
+ vtjson-2.2.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- vtjson/__init__.py,sha256=oLX4JH6_R7dYtTiGfBG3pQGR21IArspifdmZilbuGOw,68
2
- vtjson/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- vtjson/vtjson.py,sha256=AT9Zr7Ypj6jdA0i60j6VAmYdSqrCTMs2V8lcODHJqFE,86276
4
- vtjson-2.2.0.dist-info/AUTHORS,sha256=qmxaXxaIO-YPNHJAZ0dcCrnPCs1x9ocbtMksiy4i80M,21
5
- vtjson-2.2.0.dist-info/LICENSE,sha256=n7xW-zX8xBLHzCdqWIMRuMzBD_ACLcNCwio0LEkKt1o,1077
6
- vtjson-2.2.0.dist-info/METADATA,sha256=wlW8teJ7Jhv42iMx0yfOmyHlTip1_DtR5dC_KSaKEHo,3951
7
- vtjson-2.2.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
- vtjson-2.2.0.dist-info/top_level.txt,sha256=9DlSF3l63igcvnYPcj117F2hzOW4Nx0N-JBoW3jjBZM,7
9
- vtjson-2.2.0.dist-info/RECORD,,
File without changes