lumeohq / xsd-parser-rs

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

missing comma in attribute listing #96

Closed mlevkov closed 4 years ago

mlevkov commented 4 years ago

Hello,

I recently used your tool to generate a rust file to use with the yaserde library.

I've noticed that the generated file had a missing comma in the listing of attributes. Is that intended or not?

    #[yaserde(attribute, prefix = "xlink" rename = "actuate")]
    pub actuate: Option<xlink::Actuate>,

I would have expected to have the following:

    #[yaserde(attribute, prefix = "xlink", rename = "actuate")]
    pub actuate: Option<xlink::Actuate>,

notice , between prefix = "xlink" and rename = "actuate".

Thank you for the awesome effort, by the way ;).

chrisabruce commented 4 years ago

Think you are right. Will have a look.

LeonidKrutovsky commented 4 years ago

Got it, will fix ASAP! Thank you for the comment!

LeonidKrutovsky commented 4 years ago

This PR here will solve the problem.