Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge "to_one and to_many blocks now use guid."

  • Loading branch information...
commit e12a08f6fe6e1717c7bd194bb14393bf0eaee254 2 parents 388a7b5 + 8d80ac3
@kowshik kowshik authored Gerrit Code Review committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/cloud_controller/rest_controller/messages.rb
View
6 lib/cloud_controller/rest_controller/messages.rb
@@ -38,9 +38,9 @@ def define_message(type)
unless relation.exclude_in?(type)
if (type == :update || (type == :create &&
relation.optional_in?(type)))
- optional "#{name}_id", Integer
+ optional "#{name}_guid", String
else
- required "#{name}_id", Integer
+ required "#{name}_guid", String
end
if type == :response
@@ -54,7 +54,7 @@ def define_message(type)
if type == :response
optional "#{name}_url", VCAP::RestAPI::Message::HTTPS_URL
else
- optional "#{name}_id", [Integer]
+ optional "#{name}_guid", [String]
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.