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

Decode: error on array table mismatched type #804

Merged
merged 2 commits into from Aug 15, 2022
Merged

Decode: error on array table mismatched type #804

merged 2 commits into from Aug 15, 2022

Conversation

pelletier
Copy link
Owner

Prevent the decoder from continuing if it encounters a type it cannot decode an
array table into.

For example, the reported error is toml: cannot decode array table into a map[string]int.

Fixes #799

Prevent the decoder from continuing if it encounters a type it cannot decode an
array table into.

Fixes #799
@pelletier pelletier added the bug Issues describing a bug in go-toml. label Aug 15, 2022
@pelletier pelletier merged commit 7baa23f into v2 Aug 15, 2022
@pelletier pelletier deleted the fix-799 branch August 15, 2022 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues describing a bug in go-toml.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go-toml/v2 silently ignores array type mismatches during unmarshal
1 participant