Skip to content

Commit cb96075

Browse files
committed
[ENH] Add enum validation and serialization improvements
Added validation logic for `kernel_function` fields to ensure proper deserialization from string inputs to enums. Enhanced default JSON serialization by including additional encoders and adjusted relevant field exclusions.
1 parent b29590e commit cb96075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_modules/test_serialize_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_interpolation_options():
1616
range=1.7,
1717
c_o=10.
1818
)
19-
json = options.model_dump()
19+
json = options.model_dump(mode="json")
2020
# Pretty print json
2121
pprint.pp(json)
2222

0 commit comments

Comments
 (0)