Schema for defining arrays in function

Try this, it works