Skip to content

Conversation

@pedrobslisboa
Copy link
Collaborator

Description

Currently, we work with is_root as a ref set on the top-level of element_to_payload. The problem is that as soon as we call element_to_payload, it is set to true again.

I propose to provide all the info the element that is being parsed to_json needs.
element_to_payload ~context ~to_chunk ~env ~debug:false ~is_root:true element

@pedrobslisboa pedrobslisboa requested a review from davesnx October 23, 2025 05:56
@pedrobslisboa pedrobslisboa self-assigned this Oct 23, 2025
@pedrobslisboa pedrobslisboa added the enhancement New feature or request label Oct 23, 2025
@pedrobslisboa pedrobslisboa marked this pull request as draft October 23, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants