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

feat: msgspec discriminated unions

#2081Merged
Comparing
indrat:discriminated-unions-msgspec-support
(
c56c569
) with
main
(
6c3e114
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
30
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

test_force_optional
tests/main/openapi/test_main_openapi.py::test_force_optional
CodSpeed Performance Gauge
+1%
121.5 ms
120.5 ms
test_main_nested_directory
tests/main/jsonschema/test_main_jsonschema.py::test_main_nested_directory
CodSpeed Performance Gauge
0%
203.8 ms
202.8 ms
test_main_openapi_nullable
tests/main/openapi/test_main_openapi.py::test_main_openapi_nullable
CodSpeed Performance Gauge
0%
126.5 ms
126.1 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_external_files
CodSpeed Performance Gauge
0%
52.3 ms
52.2 ms
test_main_autodetect
tests/main/jsonschema/test_main_jsonschema.py::test_main_autodetect
CodSpeed Performance Gauge
0%
62.6 ms
62.6 ms
test_main_jsonschema_complex_any_of
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_complex_any_of
CodSpeed Performance Gauge
0%
64.6 ms
64.5 ms
test_main_json_reuse_enum_default_member
tests/main/jsonschema/test_main_jsonschema.py::test_main_json_reuse_enum_default_member
CodSpeed Performance Gauge
0%
74.9 ms
74.8 ms
test_main_jsonschema_collapsed_external_references
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_collapsed_external_references
CodSpeed Performance Gauge
0%
81 ms
80.9 ms
test_main_jsonschema_multiple_files
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_multiple_files
CodSpeed Performance Gauge
0%
82.3 ms
82.2 ms
test_main_jsonschema_no_empty_collapsed_external_model
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_no_empty_collapsed_external_model
CodSpeed Performance Gauge
0%
50.9 ms
50.9 ms
test_main_jsonschema_field_include_all_keys
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_field_include_all_keys
CodSpeed Performance Gauge
0%
60.3 ms
60.3 ms
test_main_inheritance_forward_ref
tests/main/jsonschema/test_main_jsonschema.py::test_main_inheritance_forward_ref
CodSpeed Performance Gauge
0%
106.4 ms
106.4 ms
test_main_root_id_jsonschema_self_refs_with_local_file
tests/main/jsonschema/test_main_jsonschema.py::test_main_root_id_jsonschema_self_refs_with_local_file
CodSpeed Performance Gauge
0%
81.5 ms
81.5 ms
test_main_strict_types
tests/main/jsonschema/test_main_jsonschema.py::test_main_strict_types
CodSpeed Performance Gauge
0%
73.9 ms
73.9 ms
test_main_modular
tests/main/openapi/test_main_openapi.py::test_main_modular
CodSpeed Performance Gauge
0%
247.1 ms
247.1 ms
test_use_default
tests/main/openapi/test_main_openapi.py::test_use_default
CodSpeed Performance Gauge
0%
114.4 ms
114.4 ms
test_main_root_id_jsonschema_self_refs_with_remote_file
tests/main/jsonschema/test_main_jsonschema.py::test_main_root_id_jsonschema_self_refs_with_remote_file
CodSpeed Performance Gauge
0%
81.4 ms
81.4 ms
test_main_jsonschema_id
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_id
CodSpeed Performance Gauge
0%
55.1 ms
55.1 ms
test_main_jsonschema_nested_deep
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_nested_deep
CodSpeed Performance Gauge
0%
72.2 ms
72.2 ms
test_main_external_definitions
tests/main/jsonschema/test_main_jsonschema.py::test_main_external_definitions
CodSpeed Performance Gauge
0%
53.2 ms
53.2 ms
test_main_jsonschema_special_field_name
tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_special_field_name
CodSpeed Performance Gauge
0%
63.3 ms
63.3 ms
test_main_collapse_root_models
tests/main/openapi/test_main_openapi.py::test_main_collapse_root_models
CodSpeed Performance Gauge
0%
77.7 ms
77.7 ms
test_main_inheritance_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py::test_main_inheritance_forward_ref_keep_model_order
CodSpeed Performance Gauge
0%
105 ms
105.1 ms
test_main_openapi_all_of_required
tests/main/openapi/test_main_openapi.py::test_main_openapi_all_of_required
CodSpeed Performance Gauge
0%
53.5 ms
53.5 ms
test_main_strict_types_all_with_field_constraints
tests/main/jsonschema/test_main_jsonschema.py::test_main_strict_types_all_with_field_constraints
CodSpeed Performance Gauge
0%
70.5 ms
70.6 ms
test_main_yaml
tests/main/test_main_yaml.py::test_main_yaml
CodSpeed Performance Gauge
0%
49.2 ms
49.3 ms
test_main_with_snake_case_field
tests/main/openapi/test_main_openapi.py::test_main_with_snake_case_field
CodSpeed Performance Gauge
0%
115.6 ms
115.7 ms
test_main
tests/main/openapi/test_main_openapi.py::test_main
CodSpeed Performance Gauge
-1%
111.8 ms
112.9 ms
test_main_with_strip_default_none
tests/main/openapi/test_main_openapi.py::test_main_with_strip_default_none
CodSpeed Performance Gauge
-1%
110.8 ms
111.9 ms
test_main_all_of_ref
tests/main/jsonschema/test_main_jsonschema.py::test_main_all_of_ref
CodSpeed Performance Gauge
-2%
52.1 ms
53.1 ms

Commits

Click on a commit to change the comparison range
Base
main
6c3e114
0%
feat: msgspec discriminated unions adds support for: - adding base class kwargs to the msgpsec template in order to support adding tag and tag_field kwargs for Struct. - the discriminator property, uses the propertyName as the tag_field and the literal value as the tag.
e6e4f2c
1 year ago
by indrat
0%
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
49f2095
5 months ago
by pre-commit-ci[bot]
0%
Merge branch 'main' into discriminated-unions-msgspec-support
941c503
4 months ago
by koxudaxi
0%
Merge branch 'main' into discriminated-unions-msgspec-support
cd54017
3 months ago
by indrat
-1%
fix: discriminator unit tests target python 3.8
e6c97b4
3 months ago
by indrat
+1%
Merge branch 'main' into discriminated-unions-msgspec-support
c56c569
2 months ago
by koxudaxi
Home Terms PrivacyDocs