pytastic 0.0.2__py3-none-any.whl → 0.0.3__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.
@@ -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
@@ -5,7 +5,7 @@ pytastic/exceptions.py,sha256=Jp8i00Qo0dqbxO_mwQRO14qQFdzeBqqDsDK7h7dvWz0,721
5
5
  pytastic/schema.py,sha256=cZ866UrmrX6506vnDNagExVaEQlCNPKaGCeRE2hvdPI,5144
6
6
  pytastic/utils.py,sha256=N2LMTMV4ed5_ly-DfWtcgtJmkJxAw4kwaTDyzF60UTs,1403
7
7
  pytastic/validators.py,sha256=2Z5dBiFWUYiHfwMveHNxsZ6v3DyEcvXRYtpzYP-hogw,12016
8
- pytastic-0.0.2.dist-info/METADATA,sha256=boZ_C-YOxzYPTDyDXF6BywjrhxS3gpUukNEndek_41g,1984
9
- pytastic-0.0.2.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
10
- pytastic-0.0.2.dist-info/licenses/LICENSE,sha256=IYQPqrAtRIRqyLsFwHdH9W-VdVfKOnZ2WZu1hrG_nLU,1063
11
- pytastic-0.0.2.dist-info/RECORD,,
8
+ pytastic-0.0.3.dist-info/METADATA,sha256=E_jXjP2AmavEszvNbMaoUbWPu0Xzu9-m5qDlZsLm3Cg,2183
9
+ pytastic-0.0.3.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
10
+ pytastic-0.0.3.dist-info/licenses/LICENSE,sha256=IYQPqrAtRIRqyLsFwHdH9W-VdVfKOnZ2WZu1hrG_nLU,1063
11
+ pytastic-0.0.3.dist-info/RECORD,,