PLAT-6574 Add validation of swap objects