File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -235,10 +235,10 @@ def test_edge_endpoint_config_from_yaml_requires_exactly_one_input():
235235 EdgeEndpointConfig .from_yaml (filename = " " )
236236
237237
238- def test_edge_endpoint_config_rejects_extra_top_level_fields ():
239- """Rejects unknown top-level fields to avoid silent config drift ."""
240- with pytest . raises ( ValueError , match = "Extra inputs are not permitted" ):
241- EdgeEndpointConfig . model_validate ({ " global_config" : {}, "unknown_field" : True })
238+ def test_edge_endpoint_config_ignores_extra_top_level_fields ():
239+ """Unknown fields are silently ignored for forward compatibility (Postel's Law) ."""
240+ config = EdgeEndpointConfig . model_validate ({ "global_config" : {}, "unknown_field" : True })
241+ assert config . global_config . refresh_rate == 60.0
242242
243243
244244def test_model_dump_shape_for_edge_endpoint_config ():
You can’t perform that action at this time.
0 commit comments