code: func TypeRef(api *design.APIDefinition, ut *design.UserTypeDefinition) string {
  	if _, ok := Definitions[ut.TypeName]; !ok {
  		GenerateTypeDefinition(api, ut)
  	}
  	return fmt.Sprintf("#/definitions/%s", ut.TypeName)
  }
docs: // TypeRef produces the JSON reference to the type definition.