lib/aws-sdk-resources/validator.rb in aws-sdk-resources-2.0.18.pre vs lib/aws-sdk-resources/validator.rb in aws-sdk-resources-2.0.19.pre
- old
+ new
@@ -178,11 +178,11 @@
# load_path_accepts_nested_paths
match('#/resources/(\w+)/load') do |context|
v = OperationValidator.new(context)
v.validate_request do
- v.validate_param_source_type_not_used('dataMember')
+ v.validate_param_source_type_not_used('data')
#v.validate_path(origin: :response, target: :self)
end
v.validate_path_set
v.validate_resource_not_set
end
@@ -212,11 +212,11 @@
v.validate_path(origin: :response, target: :resource)
v.validate_path_is_plural
end
end
- match('#/resources/(\w+)/belongsTo/\w+') do |context, matches|
+ match('#/resources/(\w+)/has/\w+') do |context, matches|
v = OperationValidator.new(context)
v.validate_request_not_set
v.validate_resource do
# disallow requestParameter
# disallow responsepath
@@ -230,13 +230,9 @@
# path must be plural if given
else
# identifier sources must be singular
# path must be singular if given
end
- end
-
- match('#/resources/(\w+)/subResources') do |context|
- # TODO : validate subResources
end
end
end
end