exports validate. support yaml object.