added required array to schema