code: func (ec *EventClass) Validate() error {
  	return validation.ValidateStruct(ec,
  		validation.Field(&ec.TableName, validation.Required, validation.Length(1, 60)),
  		validation.Field(&ec.Filter, validation.Required),
  		validation.Field(&ec.FieldMappings, validation.Required, validation.Length(1, 0)),
  	)
  }
docs: // Validate checks the structure of an EventClass