typeid-python
Advanced tools
+1
-1
| Metadata-Version: 2.4 | ||
| Name: typeid-python | ||
| Version: 0.3.8 | ||
| Version: 0.3.9 | ||
| Classifier: Development Status :: 3 - Alpha | ||
@@ -5,0 +5,0 @@ Classifier: License :: OSI Approved :: MIT License |
+1
-1
| [project] | ||
| name = "typeid-python" | ||
| version = "0.3.8" | ||
| version = "0.3.9" | ||
| description = "Python implementation of TypeIDs: type-safe, K-sortable, and globally unique identifiers inspired by Stripe IDs" | ||
@@ -5,0 +5,0 @@ authors = [{ name = "Murad Akhundov", email = "akhundov1murad@gmail.com" }] |
@@ -157,3 +157,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "typeid-base32" | ||
| version = "0.3.8" | ||
| version = "0.3.9" | ||
| dependencies = [ | ||
@@ -160,0 +160,0 @@ "pyo3", |
| [package] | ||
| name = "typeid-base32" | ||
| version = "0.3.8" | ||
| version = "0.3.9" | ||
| edition = "2021" | ||
@@ -5,0 +5,0 @@ |
@@ -68,2 +68,3 @@ from dataclasses import dataclass | ||
| cls._validate, | ||
| json_schema_input_schema=core_schema.str_schema(), | ||
| serialization=core_schema.plain_serializer_function_ser_schema( | ||
@@ -77,3 +78,5 @@ lambda v: str(v), | ||
| def __get_pydantic_json_schema__(cls, core_schema_: core_schema.CoreSchema, handler: Any) -> JsonSchemaValue: | ||
| schema = handler(core_schema_) | ||
| # Pass the json_schema_input_schema to the handler instead of the validator function schema | ||
| # This allows Pydantic to generate a proper JSON schema from the string type | ||
| schema = handler(core_schema_.get("json_schema_input_schema", core_schema_)) | ||
@@ -80,0 +83,0 @@ # Ensure JSON schema is "string" |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
85761
0.34%1595
0.19%