Some complex types are missing the namespace
Closed this issue · 0 comments
This applies to cases where its expected to have nodes prefixed with the alias namespace or fully defined the namespace that it belongs to.
Any idea how to resolve this maybe in types_tmpl.go ?
This complex type does have the namespace when generated
<xs:complexType name="BaseItemIdType" abstract="true">
xs:annotation
xs:documentationAbstract base type for item identifiers. Should never be used in web base calls</xs:documentation>
</xs:annotation>
</xs:complexType>
<xs:element name="BaseItemId" type="t:BaseItemIdType"/>
Generated Code
type BaseItemIdType struct {
XMLName xml.Name xml:"http://schemas.microsoft.com/exchange/services/2006/types BaseItemId"
}
This complex type does not have the namespace when generated
<xs:complexType name="CalendarItemType">
xs:complexContent
<xs:extension base="t:ItemType">
xs:sequence
<xs:element name="CalendarItem" type="t:CalendarItemType"/>
Generated Code
type CalendarItemType struct {
*ItemType
UID string `xml:"UID,omitempty" json:"UID,omitempty"`
type ItemType struct {
MimeContent *MimeContentType xml:"MimeContent,omitempty" json:"MimeContent,omitempty"
ItemId *ItemIdType `xml:"ItemId,omitempty" json:"ItemId,omitempty"`
ParentFolderId *FolderIdType `xml:"ParentFolderId,omitempty" json:"ParentFolderId,omitempty"`
Generated xml
HERE is missing xmlns="http://schemas.microsoft.com/exchange/services/2006/types"