dont ommit empty json lists

This commit is contained in:
sentriz
2020-02-21 03:28:56 +00:00
parent 526de91566
commit 9b8a35df00
3 changed files with 10 additions and 7 deletions

View File

@@ -12,5 +12,6 @@ import (
func (c *Controller) ServeGetGenres(r *http.Request) *spec.Response {
sub := spec.NewResponse()
sub.Genres = &spec.Genres{}
sub.Genres.List = []*spec.Genre{}
return sub
}