pre switch validation error checking to match new version of z-schema