FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: omit nil maps and slices from deepObject marshalling by SKalt · Pull Request #161 · oapi-codegen/runtime · GitHub

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unexpected deepObject encoding of nil map

1 participant


Back | FazBrowse Home | New Git URL