Don't fail when JSON Schema type is an array

This fixes the case of a type array in JSON Schema:
{
   type: [ "string", "object" ]
}