We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40cd7f7 + a047f39 commit 4e57e36Copy full SHA for 4e57e36
cmd/gen.go
@@ -197,6 +197,7 @@ func parseClaims(custom jwt.MapClaims) error {
197
// Override with custom claims
198
if dec, err := mapstructure.NewDecoder(&mapstructure.DecoderConfig{
199
TagName: "json",
200
+ Squash: true,
201
Result: &custom,
202
}); err != nil {
203
return errors.Errorf("failed to init decoder: %w", err)
0 commit comments