Skip to content

Conversation

@adrianbrad
Copy link
Contributor

Fixes unmarshaling of deepObject-encoded arrays containing nested objects. Previously, the code only handled array elements with simple string values, but failed when array elements were objects with multiple fields.

For : items[0][name]=first&items[0][value]=value1&items[1][name]=second&items[1][value]=value
The object sshould unmarshal to:

[]Item{
      {Name: "first", Value: "value1"},
      {Name: "second", Value: "value2"},
  }

Before this fix, unmarshaling such structures would fail. Now it correctly reconstructs the nested object array.

@adrianbrad adrianbrad requested a review from a team as a code owner October 30, 2025 14:46
Copy link
Member

@mromaszewicz mromaszewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mromaszewicz mromaszewicz merged commit cfb0873 into oapi-codegen:main Oct 30, 2025
14 checks passed
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.

2 participants