Skip to content

Commit

Permalink
API Generator: error if array do not have specified type
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrys committed Mar 1, 2013
1 parent e188451 commit d618e46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions res/generators/rhogen.rb
Expand Up @@ -1250,6 +1250,9 @@ def process_param(xml_param_item, predefined_name, module_item)
param.sub_param = process_param(xml_method_subparam, 'array_param', module_item)
end
end
if param.sub_param == nil
raise "<ARRAY> must have <PARAM> child ! in Module[#{module_item.name}].method[#{module_method.name}].param_index[#{param_index.to_s}]"
end
end

if ttype == MethodParam::TYPE_HASH
Expand Down

0 comments on commit d618e46

Please sign in to comment.