Avatar for the koxudaxi user
koxudaxi
datamodel-code-generator
BlogDocsChangelog

Add multiple --input-model support with inheritance preservation

#2881Merged
Comparing
feature/multiple-input-model-inheritance
(
28418ea
) with
main
(
36530b1
)
CodSpeed Performance Gauge
+3%
Untouched
11
Skipped
98

Benchmarks

98 total
test_main_nested_directory
tests/main/jsonschema/test_main_jsonschema.py
Skipped
247.9 ms*
test_main_strict_types_all_with_field_constraints
tests/main/jsonschema/test_main_jsonschema.py
Skipped
81 ms*
test_main_jsonschema_complex_any_of
tests/main/jsonschema/test_main_jsonschema.py
Skipped
68 ms*
test_main_allof_root_model_constraints
tests/main/jsonschema/test_main_jsonschema.py
Skipped
287.1 ms*
test_main_use_frozen_field_dataclass
tests/main/jsonschema/test_main_jsonschema.py
Skipped
35.8 ms*
test_main_use_frozen_field_pydantic_v1
tests/main/jsonschema/test_main_jsonschema.py
Skipped
48.5 ms*
test_main_use_frozen_field_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
54 ms*
test_main_jsonschema_reserved_field_name_typed_dict
tests/main/jsonschema/test_main_jsonschema.py
Skipped
29 ms*
test_main_jsonschema_reserved_field_name_dataclass
tests/main/jsonschema/test_main_jsonschema.py
Skipped
29.8 ms*
test_main_jsonschema_reserved_field_name_pydantic
tests/main/jsonschema/test_main_jsonschema.py
Skipped
45.6 ms*
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
Skipped
39.3 ms*
test_main_allof_root_model_constraints_merge
tests/main/jsonschema/test_main_jsonschema.py
Skipped
262.9 ms*
test_main_lookaround_union_types_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
58.4 ms*
test_main_use_default_factory_for_optional_nested_models_with_dict[pydantic_v2.BaseModel-default_factory_nested_model_with_dict_pydantic_v2.py]
tests/main/jsonschema/test_main_jsonschema.py
Skipped
68.4 ms*
test_force_optional
tests/main/openapi/test_main_openapi.py
Skipped
123.8 ms*
test_main_allof_root_model_constraints_merge_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
302.3 ms*
test_main_use_default_factory_for_optional_nested_models_with_dict[msgspec.Struct-default_factory_nested_model_with_dict_msgspec.py]
tests/main/jsonschema/test_main_jsonschema.py
Skipped
59 ms*
test_main_lookaround_mixed_constraints_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
59.9 ms*
test_main_use_frozen_field[dataclasses.dataclass-use_frozen_field_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
Skipped
34.6 ms*
test_main_nested_lookaround_array_standard_collections
tests/main/jsonschema/test_main_jsonschema.py
Skipped
59.4 ms*
test_main_nested_lookaround_array_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
Skipped
59.4 ms*
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py
Skipped
52.1 ms*
test_main_builtin_field_names
tests/main/jsonschema/test_main_jsonschema.py
Skipped
50 ms*
test_main_allof_root_model_constraints_none
tests/main/jsonschema/test_main_jsonschema.py
Skipped
261.9 ms*
test_main_openapi_nullable_31
tests/main/openapi/test_main_openapi.py
Skipped
47.5 ms*

Commits

Click on a commit to change the comparison range
Base
main
36530b1
-3.08%
Add multiple --input-model support with inheritance preservation
00a3dff
4 months ago
by koxudaxi
+4.73%
Fix lint and coverage issues
fd34ae2
4 months ago
by koxudaxi
+1.39%
Simplify code to improve branch coverage
38c777a
4 months ago
by koxudaxi
-0.85%
Extract input-model processing to separate module
fe421ce
4 months ago
by koxudaxi
-0.19%
Fix lint error for multi-line import
22df169
4 months ago
by koxudaxi
+0.76%
Add expected_output_not_contains parameter to test helper
1901f86
4 months ago
by koxudaxi
-2.47%
Achieve 100% test coverage for input_model feature
1660177
4 months ago
by koxudaxi
-0.49%
Mark pydantic v1 coercion code with pragma no cover
2962e97
4 months ago
by koxudaxi
+1.05%
Refactor input_model tests to use expected files with assert_output
23eee28
4 months ago
by koxudaxi
-3.18%
Fix import order
f39a2d1
4 months ago
by koxudaxi
+5.51%
Fix PR review issues: duplicate imports, duplicate test, and duplicate union types
4afe19e
4 months ago
by koxudaxi
-4.58%
Fix union type override for anyOf schemas and remove duplicate test
ded2d40
4 months ago
by koxudaxi
+3.69%
Remove line comments
fae1e1d
4 months ago
by koxudaxi
-0.19%
Add test for x-python-type with union in anyOf schema
273c4e1
4 months ago
by koxudaxi
+1.83%
Remove line comments except ignore comments
963cac6
4 months ago
by koxudaxi
-0.74%
Remove SKIP_PYTHON_314 and fix Union serialization for Python 3.14
6804416
4 months ago
by koxudaxi
-1.8%
Refactor duplicate tests using pytest.mark.parametrize
0de02c0
4 months ago
by koxudaxi
+20.01%
Fix lint and type errors
3fb45dc
4 months ago
by koxudaxi
-22.24%
Fix StrictTypes import in config-types with reuse-foreign strategy
325ed3c
4 months ago
by koxudaxi
+2.49%
Fix pyright type error in _full_type_name
e45af85
4 months ago
by koxudaxi
+20.32%
Add unit tests for 100% patch coverage
12d9d82
4 months ago
by koxudaxi
-20.39%
Fix variable naming: use 'spec' for find_spec result
c604da0
4 months ago
by koxudaxi
+1.8%
Add tests for _full_type_name branch coverage
28418ea
4 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs