func (o *GetNameserverOKBody) 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 nameserver 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/haproxytech/client-native/v2/models"
)
type GetNameserverHandlerFunc func(GetNameserverParams, interface{}) middleware.Responder
func (fn GetNameserverHandlerFunc) Handle(params GetNameserverParams, principal interface{}) middleware.Responder {
	return fn(params, principal)
}
type GetNameserverHandler interface {
	Handle(GetNameserverParams, interface{}) middleware.Responder
}
func NewGetNameserver(ctx *middleware.Context, handler GetNameserverHandler) *GetNameserver {
	return &GetNameserver{Context: ctx, Handler: handler}
}
type GetNameserver struct {
	Context *middleware.Context
	Handler GetNameserverHandler
}
func (o *GetNameserver) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
	route, rCtx, _ := o.Context.RouteInfo(r)
	if rCtx != nil {
		r = rCtx
	}
	var Params = NewGetNameserverParams()
	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 GetNameserverOKBody struct {
	Version int64 `json:"_version,omitempty"`
	Data *models.Nameserver `json:"data,omitempty"`
}