Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct generated from simpleContent with extention lacks field generated from base #83

Open
victor-soloviev opened this issue Apr 9, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@victor-soloviev
Copy link
Contributor

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

@LeonidKrutovsky LeonidKrutovsky added the bug Something isn't working label Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants