code: func GenerateTypeDefinition(api *design.APIDefinition, ut *design.UserTypeDefinition) {
  	if _, ok := Definitions[ut.TypeName]; ok {
  		return
  	}
  	s := NewJSONSchema()
  	s.Title = ut.TypeName
  	Definitions[ut.TypeName] = s
  	buildAttributeSchema(api, s, ut.AttributeDefinition)
  }
docs: // GenerateTypeDefinition produces the JSON schema corresponding to the given type.