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.
- {modmex-1.2.0 → modmex-1.2.1}/PKG-INFO +1 -1
- {modmex-1.2.0 → modmex-1.2.1}/modmex/base_model.py +4 -0
- {modmex-1.2.0 → modmex-1.2.1}/pyproject.toml +1 -1
- {modmex-1.2.0 → modmex-1.2.1}/LICENSE +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/README.md +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/__init__.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/__init__.pyi +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/base_model.pyi +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/datetime_parser.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/errors.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/fields.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/model_plans.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/py.typed +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/rust_backend.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/serialization.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/type_resolution.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex/validation.py +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex-core/Cargo.lock +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex-core/Cargo.toml +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex-core/src/coerce.rs +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex-core/src/lib.rs +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex-core/src/model_core.rs +0 -0
- {modmex-1.2.0 → modmex-1.2.1}/modmex-core/src/types.rs +0 -0
|
@@ -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}
|
|
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
|
|
File without changes
|