modmex 1.2.0__tar.gz → 1.2.1__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: modmex
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Classifier: Programming Language :: Python :: 3.10
5
5
  Classifier: Programming Language :: Python :: 3.11
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -628,6 +628,10 @@ class _JsonSchemaBuilder:
628
628
  def _type_schema(self, annotation: Any, field_name: str) -> dict[str, Any]:
629
629
  if annotation is Any:
630
630
  return {}
631
+ if annotation is list:
632
+ return {"type": "array"}
633
+ if annotation is dict:
634
+ return {"type": "object", "additionalProperties": {}}
631
635
  json_type = _JSON_TYPE_BY_PYTHON_TYPE.get(annotation)
632
636
  if json_type is not None:
633
637
  return {"type": json_type}
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "modmex"
3
- version = "1.2.0"
3
+ version = "1.2.1"
4
4
  description = "Lightweight Python models built on dataclasses with validation, serialization, and type-safe data mapping"
5
5
  authors = [
6
6
  {name = "clandro89@gmail.com"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes