xsd-parser-rs icon indicating copy to clipboard operation
xsd-parser-rs copied to clipboard

Struct generated from simpleContent with extention lacks field generated from base

Open victor-soloviev opened this issue 4 years ago • 0 comments

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

victor-soloviev avatar Apr 09 '20 19:04 victor-soloviev