Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Propograte coercion to parent type for any generated types.

  • Loading branch information...
commit 15cfef2373fbdb0da7ffdd61ec9a29b03ef1e1f6 1 parent a1187d9
@bacek authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/W3C/SOAP/XSD.pm
View
8 lib/W3C/SOAP/XSD.pm
@@ -329,6 +329,14 @@ sub xsd_subtype {
via { $_->textContent };
}
+ # Propogate coercion from Any via parent's type coercion.
+ my $this_type = $subtype->parent;
+ if ($this_type->has_parent) {
+ coerce $subtype
+ => from 'Any'
+ => via { $this_type->parent->coerce($_) };
+ }
+
return $subtype;
}
Please sign in to comment.
Something went wrong with that request. Please try again.