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.
1 parent eb8f0b4 commit aad9022Copy full SHA for aad9022
pkg/xsd/element.go
@@ -107,7 +107,7 @@ func (e *Element) ContainsText() bool {
107
}
108
109
func (e *Element) isPlainString() bool {
110
- return e.SimpleType != nil || (e.Type == "" && e.Ref == "" && e.ComplexType == nil)
+ return e.SimpleType != nil || (e.Type == "" && e.Ref == "" && e.ComplexType == nil) || (e.typ != nil && e.typ.GoTypeName() == "string")
111
112
113
func (e *Element) isArray() bool {
0 commit comments