Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added unit tests for issues #21

Merged
merged 4 commits into from
Nov 10, 2022
Merged

added unit tests for issues #21

merged 4 commits into from
Nov 10, 2022

Conversation

avivpxi
Copy link
Collaborator

@avivpxi avivpxi commented Oct 2, 2022

No description provided.

unmarshal.go Outdated
@@ -59,8 +59,8 @@ type decoder struct {
lexer *jlexer.Lexer
}

func (d *decoder) populateStruct(structInstance interface{}, result map[string]interface{}) (interface{}, bool) {
doPopulate := !d.options.skipPopulateStruct || result == nil
func (d *decoder) populateStruct(isNested bool, structInstance interface{}, result map[string]interface{}) (interface{}, bool) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

rename to forcePopulate

@avivpxi avivpxi merged commit cc4ddda into main Nov 10, 2022
@avivpxi avivpxi deleted the fix-nested-skip-population branch November 10, 2022 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants