Open Rex-Sanchez opened 6 days ago
Hi,
You use incorrectly YaSerDe, you miss the namespaces declaration. This attribute will defines the mapping between prefix and URL.
Here some example with you case:
#[derive(YaSerialize)]
#[yaserde(
rename = "Envelope",
default_namespace = "namespace"
namespaces = {
"namespace" = "http://example.com/",
"prefix" = "http://example.com/prefix",
},
prefix = "soapenv"
)]
struct S1 {
#[yaserde(prefix = "namespace")]
field1: String,
field2: String,
#[yaserde(prefix = "prefix")]
field3: String
}
Good day
It seems that the following attrs are not working.
as a example
one would expect something like the following to render
this is not the case and the prefix and default_namespace dont do anything at all. resulting in the following
I am now forced to do the following
am i doing something wrong or is this a bug..?
kind regards