summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-swagger/go-swagger/generator/templates/schemaembedded.gotmpl
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-swagger/go-swagger/generator/templates/schemaembedded.gotmpl')
-rw-r--r--vendor/github.com/go-swagger/go-swagger/generator/templates/schemaembedded.gotmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/go-swagger/go-swagger/generator/templates/schemaembedded.gotmpl b/vendor/github.com/go-swagger/go-swagger/generator/templates/schemaembedded.gotmpl
index f86c27bc6..58e1a949c 100644
--- a/vendor/github.com/go-swagger/go-swagger/generator/templates/schemaembedded.gotmpl
+++ b/vendor/github.com/go-swagger/go-swagger/generator/templates/schemaembedded.gotmpl
@@ -4,7 +4,7 @@ type {{ pascalize .Name }} struct {
}
func ({{.ReceiverName }} {{ if or .IsTuple .IsComplexObject }}*{{ end }}{{ if .Discriminates }}{{ camelize .Name }}{{ else if .IsExported }}{{ pascalize .Name }}{{ else }}{{ .Name }}{{ end }}) Validate(formats strfmt.Registry) error {
- var f interface{} = {{ .ReceiverName }}.{{ dropPackage .ElemType.GoType }}
+ var f any = {{ .ReceiverName }}.{{ dropPackage .ElemType.GoType }}
if v, ok := f.(runtime.Validatable) ; ok {
return v.Validate(formats)
}
@@ -12,7 +12,7 @@ func ({{.ReceiverName }} {{ if or .IsTuple .IsComplexObject }}*{{ end }}{{ if .D
}
func ({{.ReceiverName }} {{ if or .IsTuple .IsComplexObject }}*{{ end }}{{ if .Discriminates }}{{ camelize .Name }}{{ else if .IsExported }}{{ pascalize .Name }}{{ else }}{{ .Name }}{{ end }}) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var f interface{} = {{ .ReceiverName }}.{{ dropPackage .ElemType.GoType }}
+ var f any = {{ .ReceiverName }}.{{ dropPackage .ElemType.GoType }}
if v, ok := f.(runtime.ContextValidatable) ; ok {
return v.ContextValidate(ctx, formats)
}