lib/junoser/xsd/union.rb in junoser-0.3.12 vs lib/junoser/xsd/union.rb in junoser-0.3.13
- old
+ new
@@ -7,10 +7,10 @@
def config
@config ||= children.map {|child|
case child.name
when 'simpleType'
- Junoser::Xsd::SimpleType.new(child, depth: @depth+1)
+ Junoser::Xsd::SimpleType.new(child, depth: @depth+1, parent: self)
else
raise "ERROR: unknown element: #{child.name}"
end
}
end