pytastic 0.0.2__tar.gz → 0.0.3__tar.gz
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.
- {pytastic-0.0.2 → pytastic-0.0.3}/PKG-INFO +12 -1
- {pytastic-0.0.2 → pytastic-0.0.3}/README.md +11 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pyproject.toml +1 -1
- {pytastic-0.0.2 → pytastic-0.0.3}/LICENSE +0 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pytastic/__init__.py +0 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pytastic/compiler.py +0 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pytastic/core.py +0 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pytastic/exceptions.py +0 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pytastic/schema.py +0 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pytastic/utils.py +0 -0
- {pytastic-0.0.2 → pytastic-0.0.3}/pytastic/validators.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytastic
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: A dependency-free JSON validation library using TypedDict and Annotated
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Tersoo
|
|
@@ -68,6 +68,17 @@ user = vx.User({"username": "tersoo", "age": 25, "role": "admin"})
|
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
## 3. JSON Schema
|
|
71
|
+
```python
|
|
72
|
+
# Export standard JSON Schema
|
|
73
|
+
print(vx.schema(User))
|
|
74
|
+
# Output:
|
|
75
|
+
# {
|
|
76
|
+
# "type": "object",
|
|
77
|
+
# "properties": {
|
|
78
|
+
# "username": { "type": "string", "minLength": 3 ... },
|
|
79
|
+
# ...
|
|
80
|
+
# }
|
|
81
|
+
# }
|
|
71
82
|
```
|
|
72
83
|
|
|
73
84
|
## License
|
|
@@ -51,6 +51,17 @@ user = vx.User({"username": "tersoo", "age": 25, "role": "admin"})
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
## 3. JSON Schema
|
|
54
|
+
```python
|
|
55
|
+
# Export standard JSON Schema
|
|
56
|
+
print(vx.schema(User))
|
|
57
|
+
# Output:
|
|
58
|
+
# {
|
|
59
|
+
# "type": "object",
|
|
60
|
+
# "properties": {
|
|
61
|
+
# "username": { "type": "string", "minLength": 3 ... },
|
|
62
|
+
# ...
|
|
63
|
+
# }
|
|
64
|
+
# }
|
|
54
65
|
```
|
|
55
66
|
|
|
56
67
|
## License
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|