func (m *BaseMessage) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateJsonrpc(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this base message
package models
import (
	"encoding/json"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type BaseMessage struct {
	ID int64 `json:"id,omitempty"`
	Jsonrpc string `json:"jsonrpc,omitempty"`
	Testnet bool `json:"testnet,omitempty"`
	UsDiff int64 `json:"usDiff,omitempty"`
	UsIn int64 `json:"usIn,omitempty"`
	UsOut int64 `json:"usOut,omitempty"`
}