From b93610d867cda6dd5be6c31809c8d06f62fd6f58 Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Fri, 1 Feb 2019 15:45:52 -0800 Subject: [PATCH] better checks --- api/type.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/type.rb b/api/type.rb index f1fef59b832e..c83f968c9d2e 100644 --- a/api/type.rb +++ b/api/type.rb @@ -524,6 +524,8 @@ def check_resource_ref_exists def check_resource_ref_property_exists exported_props = resource_ref.all_user_properties + exported_props << Api::Type::String.new('selfLink') \ + if resource_ref.has_self_link raise "'#{@imports}' does not exist on '#{@resource}'" \ if exported_props.none? { |p| p.name == @imports } end