Skip to content

Commit

Permalink
Fix hooklift#79 schemaLocation is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
realmfoo committed Sep 29, 2017
1 parent f691b14 commit 48bfd2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gowsdl.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ func (g *GoWSDL) resolveXSDExternals(schema *XSDSchema, loc *Location) error {
}

for _, impts := range schema.Imports {
// Download the file only if we have a hint in the form of schemaLocation.
if impts.SchemaLocation == "" {
log.Printf("[WARN] Don't know where to find XSD for %s", impts.Namespace)
continue
}

if e := download(loc, impts.SchemaLocation); e != nil {
return e
}
Expand Down

0 comments on commit 48bfd2d

Please sign in to comment.