requires discriminatorKey to be set in base schema only
modifies error message concerning discriminatorKey