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.
1 parent f21a82a commit 358249bCopy full SHA for 358249b
pkg/templates/templates.go
@@ -521,7 +521,8 @@ func (template *Template) hasMultipleRequests() bool {
521
522
// MarshalJSON forces recursive struct validation during marshal operation
523
func (template *Template) MarshalJSON() ([]byte, error) {
524
- out, marshalErr := json.Marshal(template)
+ type TemplateAlias Template //avoid recursion
525
+ out, marshalErr := json.Marshal((*TemplateAlias)(template))
526
errValidate := validate.New().Struct(template)
527
return out, multierr.Append(marshalErr, errValidate)
528
}
0 commit comments