We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<br />
I fetch a more complex config.xml from jenkins, and distilled it down to this test case.
simplified xml test_failing_description.xml
test_failing_description.xml
<?xml version="1.0" encoding="UTF-8"?><project> <description> <br/> Text </description> </project>
test
#[rstest] fn test_failing_description() { #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct SimpleProject { pub description: String, } let d: PathBuf = [ env!("CARGO_MANIFEST_DIR"), "test_resources", "jenkins", "xml", "job", "test_failing_description.xml", ] .iter() .collect(); let xml = fs::read_to_string(d).expect("Unable to read file"); let job: SimpleProject = serde_xml_rs::from_str(&xml).unwrap(); println!("{:?}", job); }
error
thread 'jenkins::xml::job::tests::test_failing_description' panicked at src/jenkins/xml/job.rs:766:63: called `Result::unwrap()` on an `Err` value: UnexpectedToken { token: "XmlEvent::Characters(s)", found: "StartElement(br, {\"\": \"\", \"xml\": \"http://www.w3.org/XML/1998/namespace\", \"xmlns\": \"http://www.w3.org/2000/xmlns/\"})" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I fetch a more complex config.xml from jenkins, and distilled it down to this test case.
simplified xml
test_failing_description.xml
test
error
The text was updated successfully, but these errors were encountered: