As long as the king is not under attack, does not pass through an attacked square or does not land on an attacked square, castling would be valid.
An attack on a corner rook by a bishop does not prevent castling since it's not the king which is affected.
Is it allowed to do castle if bishop is pointing in the corner to rook? I were yesterday playing whith a board and situation came in front. If thinking logically no but how it is? Aint that kind of between king and rook, if bishop points to rook?