Skip to content

AI junk - #435

Closed
gyanu2507 wants to merge 2 commits into
pallets:mainfrom
gyanu2507:deserializer-kwargs
Closed

gyanu2507 wants to merge 2 commits into
pallets:mainfrom
gyanu2507:deserializer-kwargs

Conversation

@gyanu2507

Copy link
Copy Markdown

serializer_kwargs only goes to dumps. That's fine for json.dumps(..., skipkeys=True), which json.loads would reject, but it means something like jsonpickle's keys=True cannot round-trip through Serializer.

I didn't forward the same dict to both sides — that's what blows up the existing skipkeys test. New deserializer_kwargs is stored next to it and passed to loads in load_payload when using the instance serializer.

Fixes #389

Gyanu and others added 2 commits August 23, 2026 18:19
serializer_kwargs only reached dumps, so codecs like jsonpickle that need
the same flag on loads could not round-trip. Store deserializer_kwargs
separately because dumps and loads often take different options.
@davidism

Copy link
Copy Markdown
Member

@davidism davidism closed this Aug 23, 2026
@davidism davidism changed the title Add deserializer_kwargs so loads can take codec options too AI jun Aug 23, 2026
@davidism davidism changed the title AI jun AI junk Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

serializer_kwargs are missing in load_payload function

2 participants