Skip to content

Commit

Permalink
Merge pull request hooklift#141 from amuttsch/fix/ignored-imports-in-xsd
Browse files Browse the repository at this point in the history
Read imports from xsd files as well
  • Loading branch information
c4milo authored Apr 15, 2019
2 parents 506189e + 5d211da commit a06bd6b
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 a06bd6b

Please sign in to comment.