Replies: 1 comment 6 replies
-
|
Hey @Kakadus, unfortunately that's not possible right now, but I think your suggestion could be implemented relatively easy. Maybe we can stick to the unit struct and use this instead: #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Default)]
pub struct TestListType(#[serde(rename = "$text")] Vec<MyType>);I will make a short test later. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The default of xsd-parser is to use a
Vectuple struct for lists:which creates an xml such as
<test>A</test><test>B</test>.Schema:
with the generated code from
RenderStep::TypesSerdeQuickXml.However, quick-xml also allows to generate xml lists separated by whitespaces, like
<test>A B</test>:Is there a way to configure xsd-parser to change the list serialization format for specific types? That would be really cool.
Beta Was this translation helpful? Give feedback.
All reactions