schemez 0.2.3__tar.gz → 0.2.4__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.
- {schemez-0.2.3 → schemez-0.2.4}/PKG-INFO +1 -1
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/__init__.py +1 -1
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/schemadef/schemadef.py +7 -2
- {schemez-0.2.3 → schemez-0.2.4}/.copier-answers.yml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/.github/FUNDING.yml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/.github/copilot-instructions.md +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/.github/dependabot.yml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/.github/workflows/build.yml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/.github/workflows/documentation.yml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/.gitignore +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/.pre-commit-config.yaml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/LICENSE +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/README.md +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/docs/.empty +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/duties.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/mkdocs.yml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/overrides/_dummy.txt +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/pyproject.toml +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/code.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/convert.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/docstrings.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/helpers.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/py.typed +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/pydantic_types.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/schema.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/src/schemez/schemadef/__init__.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/tests/__init__.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/tests/conftest.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/tests/test_enum_support.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/tests/test_schema.py +0 -0
- {schemez-0.2.3 → schemez-0.2.4}/tests/test_schema_field.py +0 -0
@@ -114,7 +114,7 @@ class InlineSchemaDef(BaseSchemaDef):
|
|
114
114
|
fields: dict[str, SchemaField]
|
115
115
|
"""A dictionary containing all fields."""
|
116
116
|
|
117
|
-
def get_schema(self) -> type[
|
117
|
+
def get_schema(self) -> type[BaseModel]: # type: ignore
|
118
118
|
"""Create Pydantic model from inline definition."""
|
119
119
|
fields = {}
|
120
120
|
for name, field in self.fields.items():
|
@@ -210,7 +210,12 @@ class InlineSchemaDef(BaseSchemaDef):
|
|
210
210
|
fields[name] = (python_type, field_info)
|
211
211
|
|
212
212
|
cls_name = self.description or "ResponseType"
|
213
|
-
return create_model(
|
213
|
+
return create_model(
|
214
|
+
cls_name,
|
215
|
+
**fields,
|
216
|
+
__base__=BaseModel,
|
217
|
+
__doc__=self.description,
|
218
|
+
) # type: ignore[call-overload]
|
214
219
|
|
215
220
|
|
216
221
|
class ImportedSchemaDef(BaseSchemaDef):
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|