vtjson 2.2.7__py3-none-any.whl → 2.2.8__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 +3 -1
- {vtjson-2.2.7.dist-info → vtjson-2.2.8.dist-info}/METADATA +1 -1
- vtjson-2.2.8.dist-info/RECORD +9 -0
- {vtjson-2.2.7.dist-info → vtjson-2.2.8.dist-info}/WHEEL +1 -1
- vtjson-2.2.7.dist-info/RECORD +0 -9
- {vtjson-2.2.7.dist-info → vtjson-2.2.8.dist-info}/licenses/AUTHORS +0 -0
- {vtjson-2.2.7.dist-info → vtjson-2.2.8.dist-info}/licenses/LICENSE +0 -0
- {vtjson-2.2.7.dist-info → vtjson-2.2.8.dist-info}/top_level.txt +0 -0
vtjson/vtjson.py
CHANGED
|
@@ -206,7 +206,7 @@ class SchemaError(Exception):
|
|
|
206
206
|
pass
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
__version__ = "2.2.
|
|
209
|
+
__version__ = "2.2.8"
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
@dataclass
|
|
@@ -543,6 +543,8 @@ class _union(compiled_schema):
|
|
|
543
543
|
strict: bool = True,
|
|
544
544
|
subs: Mapping[str, object] = {},
|
|
545
545
|
) -> str:
|
|
546
|
+
if len(self.schemas) == 0:
|
|
547
|
+
return _wrong_type_message(obj, name, "union()")
|
|
546
548
|
messages = []
|
|
547
549
|
for schema in self.schemas:
|
|
548
550
|
message = schema.__validate__(obj, name=name, strict=strict, subs=subs)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vtjson
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.8
|
|
4
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
|
|
@@ -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=Fj74tRDCniPjuaCUdwRbTmBJEeS9yaXiD2M7d03Q-wE,91767
|
|
4
|
+
vtjson-2.2.8.dist-info/licenses/AUTHORS,sha256=qmxaXxaIO-YPNHJAZ0dcCrnPCs1x9ocbtMksiy4i80M,21
|
|
5
|
+
vtjson-2.2.8.dist-info/licenses/LICENSE,sha256=n7xW-zX8xBLHzCdqWIMRuMzBD_ACLcNCwio0LEkKt1o,1077
|
|
6
|
+
vtjson-2.2.8.dist-info/METADATA,sha256=GyByXqMU-lqhEeolMZt4LlN3KIizRRrGfbP4AiP3AN8,3980
|
|
7
|
+
vtjson-2.2.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
vtjson-2.2.8.dist-info/top_level.txt,sha256=9DlSF3l63igcvnYPcj117F2hzOW4Nx0N-JBoW3jjBZM,7
|
|
9
|
+
vtjson-2.2.8.dist-info/RECORD,,
|
vtjson-2.2.7.dist-info/RECORD
DELETED
|
@@ -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=AZOYnkjYeefa6agUiU7FUl7_fk8tUAxGBsqc6a1Hee0,91671
|
|
4
|
-
vtjson-2.2.7.dist-info/licenses/AUTHORS,sha256=qmxaXxaIO-YPNHJAZ0dcCrnPCs1x9ocbtMksiy4i80M,21
|
|
5
|
-
vtjson-2.2.7.dist-info/licenses/LICENSE,sha256=n7xW-zX8xBLHzCdqWIMRuMzBD_ACLcNCwio0LEkKt1o,1077
|
|
6
|
-
vtjson-2.2.7.dist-info/METADATA,sha256=Rvm5_Z2otxfFfcf8StFHpZAIOuNmqXu-GQNFflf7MRs,3980
|
|
7
|
-
vtjson-2.2.7.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
8
|
-
vtjson-2.2.7.dist-info/top_level.txt,sha256=9DlSF3l63igcvnYPcj117F2hzOW4Nx0N-JBoW3jjBZM,7
|
|
9
|
-
vtjson-2.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|