Skip to content

v0.6.7

Compare
Choose a tag to compare
@icebob icebob released this 29 May 08:24
· 640 commits to master since this release

Changes

  • supports multiple object validators #22 by @mauricedoepke
    const schema = {
        list: [
            { 
                type: "object",
                props: {
                    name: {type: "string"},
                    age: {type: "number"},
                } 
            },
            { 
                type: "object",
                props: {
                    country: {type: "string"},
                    code: {type: "string"},
                } 
            }
        ]
    };