Currently validateAddress fails for p2sh-segwit addresses in bitcoin-utils.
One would expect these types of addresses to succeed for all types of addresses... legacy, p2sh-segwit, segwit.
If this function is specifically to be used for validating swap addresses, then it should probably be renamed to validateSwapAddress.