Skip to content

Conversation

ita93
Copy link

@ita93 ita93 commented Jul 7, 2023

The current implementation passes the value of Blockdevoptions as a field directly to the intermediate struct, causing the Marshal() function to be called repeatedly and resulting in a stack overflow. Add an intermediate type alias to fix this issue.

Fix #190

Signed-off-by: Nguyen Dinh Phi <phi.nguyendp@shopee.com>
@ita93 ita93 requested a review from a team as a code owner July 7, 2023 15:38
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.

Marshaling any discriminated union (flat union) into JSON overflows the stack

1 participant