code: func typeName(mt *design.MediaTypeDefinition) string {
  	if mt.IsError() {
  		return "ErrorResponse"
  	}
  	return codegen.GoTypeName(mt, mt.AllRequired(), 1, false)
  }
docs: // typeName returns Go type name of given MediaType definition.