xsd-parser-rs
xsd-parser-rs copied to clipboard
Struct generated from simpleContent with extention lacks field generated from base
From
<xs:complexType name="reasontext">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
we generate
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
#[yaserde(
prefix = "tns",
namespace = "tns: http://www.w3.org/2003/05/soap-envelope"
)]
pub struct Reasontext {
#[yaserde(attribute, prefix = "xml" rename = "lang")]
pub lang: String,
}
which, obviously, lacks another String field that represents reason itself