We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c27e68 + 68c81ab commit 0dd9bbeCopy full SHA for 0dd9bbe
.github/workflows/scap.sh
@@ -25,6 +25,7 @@ pushd $workdir
25
$xsd2go convert \
26
--xmlns-override=http://cpe.mitre.org/language/2.0=cpe_language \
27
.scap_schemas/schemas/xccdf/1.2/xccdf_1.2.xsd github.com/gocomply/scap pkg/scap/models
28
+ $xsd2go convert .scap_schemas/schemas/oval/5.11.3/oval-results-schema.xsd github.com/gocomply/scap pkg/scap/models
29
30
# Ensure the code can be compiled
31
go vet ./...
pkg/xsd/element.go
@@ -80,7 +80,7 @@ func (e *Element) GoTypeName() string {
80
}
81
82
func (e *Element) GoForeignModule() string {
83
- if e.isPlainString() {
+ if e.isPlainString() && e.refElm == nil && e.typ == nil {
84
return ""
85
86
0 commit comments