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

feat: Add --enum-field-as-literal none option and respect user settings for TypedDict

#2691Merged
Comparing
fix/typeddict-respect-enum-field-as-literal
(
28189f6
) with
main
(
38b953f
)
CodSpeed Performance Gauge
0%
Untouched
52
Skipped
10

Benchmarks

62 total
test_main_jsonschema_root_model_default_value_no_annotated
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
81.3 ms80.9 ms
test_main_jsonschema_nested_deep
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
71.9 ms71.6 ms
test_force_optional
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
134.9 ms134.4 ms
test_main_jsonschema_root_model_default_value
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
85.8 ms85.5 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
54.1 ms53.9 ms
test_main_strict_types
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
72.9 ms72.7 ms
test_main_modular
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
329.3 ms328.4 ms
test_main_field_name_shadows_class_name
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
51.2 ms51 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
39.1 ms39 ms
test_main_jsonschema_reserved_field_name[pydantic_v2.BaseModel-reserved_field_name_schema_pydantic.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
45.8 ms45.7 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
37.2 ms37.1 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
39.4 ms39.3 ms
test_main_yaml
tests/main/test_main_yaml.py
CodSpeed Performance Gauge
0%
35 ms34.9 ms
test_main_bundled_schema_with_id_local_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
69.3 ms69.3 ms
test_main_jsonschema_reserved_field_name[dataclasses.dataclass-reserved_field_name_schema_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
30 ms30 ms
test_main_use_frozen_field[dataclasses.dataclass-use_frozen_field_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
36 ms36 ms
test_main_allof_root_model_constraints_none
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
284.4 ms284.4 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
42.6 ms42.5 ms
test_main_use_frozen_field[pydantic_v2.BaseModel-use_frozen_field_v2.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
54 ms54 ms
test_main_jsonschema_root_model_default_value_non_root
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
75.4 ms75.4 ms
test_main_jsonschema_root_model_default_value_branches
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
73.9 ms73.9 ms
test_main_with_snake_case_field
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
126.7 ms126.7 ms
test_main_jsonschema_field_include_all_keys
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
53 ms53 ms
test_main_type_alias_cycle_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
38.9 ms39 ms
test_main_type_alias_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
49.9 ms49.9 ms

Commits

Click on a commit to change the comparison range
Base
main
38b953f
+0.06%
feat: Add 'none' option for enum_field_as_literal and update related logic
a90b618
5 months ago
by koxudaxi
-0.07%
test: Skip tests for TypedDict enum_field_as_literal on incompatible black version
28189f6
5 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs