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

No newline necessary between `if` and `{`