func (m *Metadata) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateCreatedAt(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this metadata
package models
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type Metadata struct {
	CreatedAt *string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt,omitempty"`
}