gh-1401 added in text option in schema type and also tests