Skip to content

Commit

Permalink
Fix base_complex_type on restriction without base
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzobrain committed Apr 22, 2024
1 parent 0e89f4b commit 416e87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xsd/base_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def method_missing(method, *args)
name = link[:property] ? send(link[:property]) : nil
if name
return @cache[method] = object_by_name(link[:type], name)
elsif is_a?(Restriction) && method == :base_simple_type
elsif is_a?(Restriction) && %i[base_simple_type base_complex_type].include?(method)
# handle restriction without base
return nil
end
Expand Down

0 comments on commit 416e87f

Please sign in to comment.