fix(serialization-form): omit the root object assignment prefix - #731
Merged
Vincent Biret (baywet) merged 2 commits intoSep 11, 2026
Merged
Vincent Biret (baywet) merged 2 commits into
Vincent Biret (baywet) merged 2 commits into
Conversation
Vincent Biret (baywet)
previously approved these changes
Sep 11, 2026
Vincent Biret (baywet)
left a comment
Member
There was a problem hiding this comment.
Thanks for the contribution!
Vincent Biret (baywet)
approved these changes
Sep 11, 2026
Vincent Biret (baywet)
left a comment
Member
There was a problem hiding this comment.
Thank you for making the changes!
Vincent Biret (baywet)
force-pushed
the
codex/serialize-root-form
branch
from
September 11, 2026 17:33
2881a30 to
7c8ea9f
Compare
Vincent Biret (baywet)
enabled auto-merge (squash)
September 11, 2026 17:33
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Serializing a root form object with
write_object_value(None, model)produces=body=exampleinstead ofbody=example. The writer omits the absent key but still emits its assignment separator.Only add the key and
=when a key is supplied. Root objects now contribute their encoded fields directly. Empty roots leave existing output untouched; named empty objects still emit their key and assignment separator. Named-object serialization and field escaping retain their existing behavior.Validation (Python 3.12):
pytest -q— 53 passed.git diff --checkpassed.suggestion-modeconfiguration option.Closes #476.
Prepared with AI assistance; reproduction and validation ran locally.