[DEBUG] Use getValue instead of ordinal for generated enums