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

fix: mapstructure decode on factory cannot resolve data correctly #84

Merged
merged 2 commits into from
Jun 12, 2022

Conversation

42atomys
Copy link
Owner

@42atomys 42atomys commented Jun 12, 2022

Describe the pull request

When the data sended to mapstructure is a map[interface{}]interface{}, mapstructure don't know how to convert interface into string. To prevent any panic, I secure the payload before send it to mapstructure

Checklist

  • I have linked the relative issue to this pull request
  • I have made the modifications or added tests related to my PR
  • I have added/updated the documentation for my RP
  • I put my PR in Ready for Review only when all the checklist is checked

Breaking changes ?
no

Additional context

@42atomys 42atomys requested a review from rgaiffe as a code owner June 12, 2022 20:41
@42atomys 42atomys merged commit 96f51a7 into main Jun 12, 2022
@42atomys 42atomys deleted the fix/mapstructure-decode-factory branch June 12, 2022 20:42
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.

1 participant