Schema: 'type' attribute is an array when it should be a string
at throwInvalidType (..../json-gate/lib/valid-schema.js:10:8)
at assertType (..../json-gate/lib/valid-schema.js:16:4)
at module.exports (..../json-gate/lib/valid-schema.js:281:2)
at new Schema (..../json-gate/lib/json-gate.js:6:2)
When creating a schema with an union type, an error is thrown:
produces: