called get_mapping when validating nested types