if the external type code differes from the main type code, then JsonEntityTypeRepository does not properly resolve the type.