For omitempty to work properly, nested structs have to be pointers
This commit is contained in:
+1
-1
@@ -62,6 +62,6 @@ func (c *GetIndexesController) Get() {
|
||||
}
|
||||
|
||||
response := responses.NewEmpty()
|
||||
response.ArtistIndex = res
|
||||
response.ArtistIndex = &res
|
||||
c.Ctx.Output.Body(responses.ToXML(response))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user