lumeohq / xsd-parser-rs

A xsd/wsdl => rust code generator written in rust
Apache License 2.0
100 stars 39 forks source link

There is a duplicate field in the generated code #72

Closed LeonidKrutovsky closed 4 years ago

LeonidKrutovsky commented 4 years ago

xmlmime.rs

// pub type ExpectedContentTypes = String;
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
#[yaserde(prefix = "xmime", namespace = "xmime: http://www.w3.org/2005/05/xmlmime")]
pub struct Base64Binary {
    #[yaserde(attribute, prefix = "xmime" rename = "contentType")]
    pub content_type: Option<ContentType>,

    #[yaserde(attribute, prefix = "xmime" rename = "contentType")]
    pub content_type: Option<ContentType>,
}