Skip to content

fix: omit nil maps and slices from deepObject marshalling - #161

Open
SKalt wants to merge 1 commit into
oapi-codegen:mainfrom
SKalt:deeoObject-omit-nil-map-or-slice
Open

fix: omit nil maps and slices from deepObject marshalling#161
SKalt wants to merge 1 commit into
oapi-codegen:mainfrom
SKalt:deeoObject-omit-nil-map-or-slice

Conversation

@SKalt

@SKalt SKalt commented Aug 24, 2026

Copy link
Copy Markdown

Closes #160. This PR adds a reflect-based check to weed out map[any]any(nil) or []any(nil), which currently get marshalled as param[]=null. After this PR, nil pointers still get serialized as param[]=null

@SKalt
SKalt requested a review from a team as a code owner August 24, 2026 18:18
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.

unexpected deepObject encoding of nil map

1 participant