Skip to content

Commit

Permalink
Read imports from xsd files as well
Browse files Browse the repository at this point in the history
If a xsd file imports other xsd files, it was not processing them. Only
includes were processed correctly, this commit will also recursively
read and process import statements.
  • Loading branch information
Andreas Muttscheller committed Apr 15, 2019
1 parent 506189e commit 5d211da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gowsdl.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (g *GoWSDL) resolveXSDExternals(schema *XSDSchema, loc *Location) error {
return err
}

if len(newschema.Includes) > 0 &&
if (len(newschema.Includes) > 0 || len(newschema.Imports) > 0) &&
maxRecursion > g.currentRecursionLevel {
g.currentRecursionLevel++

Expand Down

0 comments on commit 5d211da

Please sign in to comment.