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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytastic
3
- Version: 0.0.2
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pytastic"
3
- version = "0.0.2"
3
+ version = "0.0.3"
4
4
  description = "A dependency-free JSON validation library using TypedDict and Annotated"
5
5
  authors = ["Tersoo <tersoo@example.com>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes