code: func JSONList(name, description string, data *d.UserTypeDefinition, links *d.UserTypeDefinition, meta *d.UserTypeDefinition) *d.MediaTypeDefinition {
  	return a.MediaType("application/vnd."+strings.ToLower(name)+"list+json", func() {
  		a.UseTrait("jsonapi-media-type")
  		a.TypeName(name + "List")
  		a.Description(description)
  		if links != nil {
  			a.Attribute("links", links)
  		}
  		if meta != nil {
  			a.Attribute("meta", meta)
  		}
  		a.Attribute("data", a.ArrayOf(data))
  		a.Attribute("included", a.ArrayOf(d.Any), "An array of mixed types")
  		a.Required("data")
  
  		a.View("default", func() {
  			if links != nil {
  				a.Attribute("links")
  			}
  			if meta != nil {
  				a.Attribute("meta")
  			}
  			a.Attribute("data")
  			a.Attribute("included")
  			a.Required("data")
  		})
  	})
  
  }
docs: // JSONList creates a UserTypeDefinition