Open nrlakin opened 4 years ago
I've reverted. I think I can see the error here: https://github.com/elliots/go-xml/blob/2161665b1a098d50c305f0bf938f7aca2e05fee0/xsdgen/xsdgen.go#L697
I don't think that's the right way to construct a pointer using go/ast. I haven't tried yet but it should probably be something like this:
base = ast.StarExpr{X: base}
I think this was introduced in #93 (I hit it merging #93 into my fork because I wanted optional structs to render as pointers).
Running
xsdgen
throws the following error:In the debug output that follows, I see the following struct rendered:
I'm looking at it because I'd like the feature, but you may want to revert. I'll try to add a minimal schema to xsdgen/testdata that replicates the issue in any case.