Skip to content

fix(encoder): ignore unexported struct fields - #258

Open
AdamMagued wants to merge 1 commit into
gorilla:mainfrom
AdamMagued:fix-issue-234
Open

AdamMagued wants to merge 1 commit into
gorilla:mainfrom
AdamMagued:fix-issue-234

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #234

Summary

  • Skipped unexported struct fields during reflection encoding to prevent panic.
  • Skipped unexported fields and unexported anonymous pointer types during decode defaulting and path traversal.
  • Added unit tests covering structs with unexported fields and unexported pointer fields.

Verified via container sandbox test suite.

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Do not encode unexported fields

1 participant