Skip to content
New issue

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

Implement choice #36

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Clean-up imports
matzipan committed Jan 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 8878f4dc47fd4e457e90108612bc10b11f910f4a
3 changes: 0 additions & 3 deletions xml_schema/tests/choice.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#[macro_use]
extern crate yaserde_derive;

use log::debug;
use std::io::prelude::*;
use xml_schema_derive::XmlSchema;
use yaserde::de::from_str;
use yaserde::ser::to_string;
use yaserde::{YaDeserialize, YaSerialize};

#[test]
fn choice() {
4 changes: 1 addition & 3 deletions xml_schema_derive/src/xsd/choice.rs
Original file line number Diff line number Diff line change
@@ -7,10 +7,8 @@ use crate::xsd::{
annotation::Annotation, attribute::Attribute, element::Element, max_occurences::MaxOccurences,
Implementation, XsdContext,
};
use log::{debug, info};
use log::info;
use proc_macro2::TokenStream;
use std::io::prelude::*;
use yaserde::YaDeserialize;

#[derive(Clone, Default, Debug, PartialEq, YaDeserialize)]
#[yaserde(