make policy endpoint schema valid