zod 0.1.0

Rust integraions with the `zod` typescript library.
Documentation
use pretty_assertions::assert_eq;
use zod::ZodType;

mod test_utils;

#[test]
fn serde_name_struct() {
    test_case! {
        #[serde(rename= "Hello")]
        enum Test {
            HelloWorld { s: String },
            AnotherValue { num: usize },
        }
    }

    assert_eq!(Test::inline().to_string(), "Ns.Hello");
}

#[test]
fn serde_name_tuple() {
    test_case! {
    #[serde(rename= "Hello")]
    enum Test {
        HelloWorld(String, usize),
        AnotherValue(usize, usize)
        }
    }
    assert_eq!(Test::inline().to_string(), "Ns.Hello");
}

#[test]
fn serde_name_unit() {
    test_case! {
        #[serde(rename= "Hello")]
        enum Test {
            HelloWorld,
            AnotherValue
        }
    }
    assert_eq!(Test::inline().to_string(), "Ns.Hello");
}