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

chore(error): "error_type"であっても値を入れられるようにする #9

Merged
merged 3 commits into from
Jun 2, 2023

Conversation

2222-42
Copy link
Member

@2222-42 2222-42 commented Jun 2, 2023

why

ErrorTypeのkey名がsnake_caseとcamelCaseでUnmarshalできたりできなかったりする。

what

  • json tagは複数key名を指定できない
  • 一旦、複数の構造体をprivateにして作り、そこにUnmarshalし、値をcopyすることによって解決

@2222-42 2222-42 requested a review from myuon June 2, 2023 02:44
@myuon myuon merged commit 33c66aa into master Jun 2, 2023
@myuon myuon deleted the fix/issue-#6 branch June 2, 2023 03:04
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.

2 participants