validate: fix return type of dt_parse() call