sending the schemas.Data array object to the generate client function