func (o *GetNameserversOKBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateData(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this get nameservers o k body
package nameserver
import (
	"net/http"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime/middleware"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
	"github.com/haproxytech/client-native/v2/models"
)
type GetNameserversHandlerFunc func(GetNameserversParams, interface{}) middleware.Responder
func (fn GetNameserversHandlerFunc) Handle(params GetNameserversParams, principal interface{}) middleware.Responder {
	return fn(params, principal)
}
type GetNameserversHandler interface {
	Handle(GetNameserversParams, interface{}) middleware.Responder
}
func NewGetNameservers(ctx *middleware.Context, handler GetNameserversHandler) *GetNameservers {
	return &GetNameservers{Context: ctx, Handler: handler}
}
type GetNameservers struct {
	Context *middleware.Context
	Handler GetNameserversHandler
}
func (o *GetNameservers) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
	route, rCtx, _ := o.Context.RouteInfo(r)
	if rCtx != nil {
		r = rCtx
	}
	var Params = NewGetNameserversParams()
	uprinc, aCtx, err := o.Context.Authorize(r, route)
	if err != nil {
		o.Context.Respond(rw, r, route.Produces, route, err)
		return
	}
	if aCtx != nil {
		r = aCtx
	}
	var principal interface{}
	if uprinc != nil {
		principal = uprinc
	}
	if err := o.Context.BindValidRequest(r, route, &Params); err != nil {  
		o.Context.Respond(rw, r, route.Produces, route, err)
		return
	}
	res := o.Handler.Handle(Params, principal)  
	o.Context.Respond(rw, r, route.Produces, route, res)
}
type GetNameserversOKBody struct {
	Version int64 `json:"_version,omitempty"`
	Data models.Nameservers `json:"data"`
}