msgspec.Struct response serialization leads to errors or incorrect JSON output
msgspec.Struct response serialization leads to errors or incorrect JSON output: a task in LegoFlow-SWE (Harbor dataset). When a Spikard Python handler returns a response whose body is an instance of msgspec.Struct , the framework’s serialization layer falls back to the standard library json.dumps…
The task
When a Spikard Python handler returns a response whose **body** is an instance of `msgspec.Struct`, the framework’s serialization layer falls back to the standard library `json.dumps`. This fails because `msgspec` objects are not directly serializable by the builtin `json` module, causing either a `TypeError` or…
Part of Lego-X/LegoFlow-SWE.