Skip to content

Commit

Permalink
feat:(generic) enable dynamicgo's convOption WriteHttpValueFallback
Browse files Browse the repository at this point in the history
… and `ReadHttpValueFallback` by default for http-generic
  • Loading branch information
AsterDY committed Jan 15, 2025
1 parent e379b19 commit b9cc36a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkg/generic/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ import "github.com/cloudwego/dynamicgo/conv"

var (
DefaultHTTPDynamicGoConvOpts = conv.Options{
EnableHttpMapping: true,
EnableValueMapping: true,
WriteRequireField: true,
WriteDefaultField: true,
OmitHttpMappingErrors: true,
NoBase64Binary: true,
UseKitexHttpEncoding: true,
EnableHttpMapping: true,
EnableValueMapping: true,
WriteRequireField: true,
WriteDefaultField: true,
OmitHttpMappingErrors: true,
NoBase64Binary: true,
UseKitexHttpEncoding: true,
WriteHttpValueFallback: true,
ReadHttpValueFallback: true,
}
DefaultJSONDynamicGoConvOpts = conv.Options{
WriteRequireField: true,
Expand Down

0 comments on commit b9cc36a

Please sign in to comment.