Convert tty to schema format