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

Fix hostname format with field_constraints to use Field(pattern=...)

#2724Merged
Comparing
fix-hostname-field-constraints
(
d031f64
) with
main
(
3aeaed6
)
CodSpeed Performance Gauge
0%
Untouched
70
Skipped
10

Benchmarks

80 total
test_main_inheritance_forward_ref
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
109.6 ms109.2 ms
test_main_allof_root_model_constraints_merge_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
322.6 ms321.6 ms
test_main_inheritance_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
109.6 ms109.3 ms
test_main_collapse_root_models
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
73.5 ms73.3 ms
test_main_lookaround_mixed_constraints_pydantic_v2
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
58.8 ms58.6 ms
test_main_allof_root_model_constraints_none
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
283.3 ms282.5 ms
test_main_bundled_schema_with_id_local_file
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
68.5 ms68.4 ms
test_main_lookaround_dict_standard_collections
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
54.1 ms54 ms
test_main_bundled_schema_with_id_url
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
73.4 ms73.3 ms
test_main_openapi_nullable
tests/main/openapi/test_main_openapi.py
CodSpeed Performance Gauge
0%
134 ms133.8 ms
test_main_type_alias_cycle_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
39 ms39 ms
test_main_use_frozen_field[dataclasses.dataclass-use_frozen_field_dataclass.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
34.8 ms34.7 ms
test_main_type_alias_forward_ref_keep_model_order
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
50.6 ms50.6 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%
53.2 ms53.2 ms
test_main_use_frozen_field[pydantic.BaseModel-use_frozen_field_v1.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
47.5 ms47.4 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%
46.5 ms46.5 ms
test_main_jsonschema_root_model_default_value_branches
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
72.2 ms72.1 ms
test_main_json_reuse_enum_default_member
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
68.8 ms68.8 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.4 ms30.4 ms
test_main_jsonschema_root_model_default_value_non_root
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
74 ms74 ms
test_main_jsonschema_external_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
36.3 ms36.3 ms
test_main_jsonschema_root_model_default_value_no_annotated
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
77.6 ms77.6 ms
test_main_use_default_factory_for_optional_nested_models[msgspec.Struct-default_factory_nested_model_msgspec.py]
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
58.2 ms58.2 ms
test_main_jsonschema_no_empty_collapsed_external_model
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
34.2 ms34.2 ms
test_main_jsonschema_multiple_files
tests/main/jsonschema/test_main_jsonschema.py
CodSpeed Performance Gauge
0%
77.1 ms77.1 ms

Commits

Click on a commit to change the comparison range
Base
main
3aeaed6
-0.01%
Fix hostname format with field_constraints to use Field(pattern=...)
1aec6d5
5 months ago
by koxudaxi
-0.01%
Add comment explaining Pydantic v1 regex anchor requirement
9c8a834
5 months ago
by koxudaxi
-0.03%
Add e2e tests for hostname field_constraints coverage
d031f64
5 months ago
by koxudaxi
© 2026 CodSpeed Technology
Home Terms Privacy Docs