We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The library fails to decode a struct if field is missing.
E.g. I do have a struct
type TokenExchange struct { Type string `form:"grant_type"` Code string `form:"code"` }
The input string to parse
grant_type=authorization_code&code=xxx&client_id=xxx
The library fails to decode string with an error
client_id doesn't exist in main.TokenExchange
I would expect that library skips client_id.
client_id
The text was updated successfully, but these errors were encountered:
If you can set ignoreUnknownKeys to true and you won't have this problem anymore.
ignoreUnknownKeys
form/decode.go
Line 59 in 523a5da
Sorry, something went wrong.
No branches or pull requests
The library fails to decode a struct if field is missing.
E.g. I do have a struct
The input string to parse
The library fails to decode string with an error
I would expect that library skips
client_id
.The text was updated successfully, but these errors were encountered: