package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( strfmt "github.com/go-openapi/strfmt" "github.com/go-openapi/errors" ) /*Error error swagger:model Error */ type Error struct { /* code */ Code int32 `json:"code,omitempty"` /* message */ Message string `json:"message,omitempty"` } // Validate validates this error func (m *Error) Validate(formats strfmt.Registry) error { var res []error if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }