@@ -11,8 +11,8 @@ import (
func New(appConf *AppConfig, swaggerConf *SwaggerConf, ctx context.Context) rest.IApplication {
app := &Application{
- conf: appConf,
- Sockets: NewSockets(),
+ conf: appConf,
+ //Sockets: NewSockets(),
}
if swaggerConf != nil && swaggerConf.Enabled {
app.swagger = NewSwagger(swaggerConf)
@@ -46,7 +46,7 @@ func (s *Field) IsEmpty() bool {
func (s *Field) IsObject() bool {
- return len(s.Names) == 0
+ return len(s.Names) > 0
func (s *Field) String() string {