Repository navigation
pkg/openapi: restore v5.2.2 model type names as aliases - #34
Open
DzmitryHumianiuk wants to merge 1 commit into
Open
DzmitryHumianiuk wants to merge 1 commit into
DzmitryHumianiuk wants to merge 1 commit into
Conversation
After the OpenAPI regeneration, 137 of the 186 model type names that pkg/openapi exported at v5.2.2 were gone, while the module path is still /v5. Code written against v5.2.2 (for example the Ginkgo agent in #15, which uses openapi.Issue and openapi.ParameterResource) no longer compiled. Restore 116 of them as type aliases in compat.go. The block is generated by scripts/openapi-compat/v5names.go. 114 aliases are emitted because exactly one schema key in reportportal-api-docs.json has the v5.2.2 class name; 2 (ItemAttributeResource, PagedLogResourcePagesLocationInner) because every field that used the name now uses one and the same type. In both cases the JSON fields of the v5.2.2 struct must still be present. 21 names are not restored (18 have no counterpart, 3 lost JSON fields). pkg/gorp/openapi_compat_v5_test.go is a generated compile-level check of every restored and previously aliased name and its field types. Refs #32 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Member
Author
|
Note for merging: #33 and #34 conflict at the type level. #34's generated test pins |
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #32. This is the "stay on v5" option from the issue: it restores the short model type names that
pkg/openapiexported at v5.2.2, wherever the new generated type is provably the same thing. It does not touch the module path, the tags or the README install line; those decisions stay with the maintainers.After the OpenAPI regeneration, 137 of the 186 model type names of v5.2.2 no longer existed on
master. This PR restores 116 of them as type aliases. 21 are not restored, and the reasons are listed below. With this branch, the Ginkgo agent from #15 (pkg/ginkgo, head 07ad5c4) builds against current goRP code without changes.Changes
scripts/openapi-compat/compat.go.tmpland its copypkg/openapi/compat.go: a new block of 116 aliases betweenBEGIN v5.2.2 namesandEND v5.2.2 names, grouped by the Java package of the target type. The hand-written part of the file is unchanged. The two files are byte-identical, as the Taskfile'scpproduces them.scripts/openapi-compat/v5names.go(new,//go:build ignore): the tool that builds the mapping and writes the alias block, the test and a report. It reads the current tree without its own block, so a second run gives the same output.pkg/gorp/openapi_compat_v5_test.go(new, generated): a compile-level check. For each of the 135 short names (116 restored and 19 that were already aliased) it references the name, pins the alias target, and checks every v5.2.2 field with its v5.2.2 Go type. It lives inpkg/gorpbecausetask generate-openapi-clientdeletes and recreatespkg/openapi.AGENTS.md: a short note on the block, the tool and the test.Mapping rule
An alias
Old = Newis emitted only when all of these hold:Oldis a v5.2.2 model type (notNullable*,Api*Requestor*APIService) that no longer resolves onmaster.reportportal-api-docs.jsonhas the class nameOldafter its Java package segments are stripped. Examples:com.epam.reportportal.base.reporting.IssuegivesIssue;…model.BulkRQJava.lang.LongCom.epam.…launch.UpdateLaunchRQgivesBulkRQLongUpdateLaunchRQ; the nested class…reporting.Issue.ExternalSystemIssuegivesExternalSystemIssue. Two keys with the same class name would be "ambiguous" and get no alias. This did not occur.Oldin an already mapped v5.2.2 struct now has one and the same type in the same position. This restores two names:ItemAttributeResource(11 fields, all now…ReportingAttributeResource, with the samekeyandvalueJSON fields) andPagedLogResourcePagesLocationInner(an inline schema ofPagedLogResource).No two short names point to the same long type (
grep -E '^\t[A-Z][A-Za-z0-9]* += ' pkg/openapi/compat.go | awk '{print $3}' | sort | uniq -dprints nothing).ItemAttributeResourceis the one alias that does not come from a class name. Its JSON fields (key,value) are also present inItemAttributesRQ(key,value,system), so the field check alone does not separate the two; the position of the type in 11 fields does. v5.2.2 had both names, andItemAttributesRQalready maps to its own class, which leavesAttributeResourceas the only counterpart. If maintainers prefer not to rely on this rule, delete rule 2b from the script and rerun it: both position-matched aliases and their test blocks disappear, and 10 structs (3 of them aliased before this PR) get anAttributes/From/Tofield that no longer compiles under the v5.2.2 type name.The 30 model names that are still declared on
masterhave all their v5.2.2 fields with unchanged Go types.The rule was checked against the 19 aliases that
compat.goalready had for v5.2.2 names. It reproduces all 19 targets, includingLaunchResource(the reporting model) versusLaunchViewModel.Restored aliases (116)
114 are matched by schema key and 2 by position. 13 of the 116 still differ from v5.2.2 at the Go level, because a field type or a constructor signature changed upstream. Those are listed in the next section.
All 116 aliases
ActivityEventResourceComEpamReportportalBaseModelActivityEventResourceActivityResourceComEpamReportportalBaseInfrastructureModelActivityResourceconstructor: (int64, string, int64, time.Time, string, string, int64) (*ActivityResource) -> (int64, string, int64, int64, time.Time, string, string, int64) (*ComEpamReportportalBaseInfrastructureModelActivityResource)
AddProjectToGroupByIdRequestComEpamReportportalApiModelAddProjectToGroupByIdRequestAddWidgetRqComEpamReportportalBaseModelDashboardAddWidgetRqAnalyzeLaunchRQComEpamReportportalBaseModelLaunchAnalyzeLaunchRQApiKeyRQComEpamReportportalBaseModelApiKeyRQApiKeyRSComEpamReportportalBaseModelApiKeyRSApiKeysRSComEpamReportportalBaseModelApiKeysRSAssignUsersRQComEpamReportportalBaseModelProjectAssignUsersRQBatchElementCreatedRSComEpamReportportalBaseReportingBatchElementCreatedRSBatchSaveOperatingRSComEpamReportportalBaseReportingBatchSaveOperatingRSBinaryContentComEpamReportportalBaseModelLogLogResourceBinaryContentBulkInfoUpdateRQComEpamReportportalBaseReportingBulkInfoUpdateRQBulkItemsRQComEpamReportportalBaseModelBulkItemsRQBulkRQLongFinishExecutionRQComEpamReportportalBaseModelBulkRQJavaLangLongComEpamReportportalBaseReportingFinishExecutionRQBulkRQLongUpdateLaunchRQComEpamReportportalBaseModelBulkRQJavaLangLongComEpamReportportalBaseModelLaunchUpdateLaunchRQBulkUpdateFilterRQComEpamReportportalBaseModelFilterBulkUpdateFilterRQChangePasswordRQComEpamReportportalBaseModelUserChangePasswordRQChartStatisticsContentComEpamReportportalBaseInfrastructurePersistenceEntityWidgetContentChartStatisticsContentClusterInfoResourceComEpamReportportalBaseInfrastructureModelLaunchClusterClusterInfoResourceCollectionsRQBulkUpdateFilterRQComEpamReportportalBaseModelCollectionsRQComEpamReportportalBaseModelFilterBulkUpdateFilterRQContentParametersComEpamReportportalBaseModelWidgetContentParametersCreateClustersRQComEpamReportportalBaseModelLaunchClusterCreateClustersRQCreateDashboardRQComEpamReportportalBaseModelDashboardCreateDashboardRQCreateIssueSubTypeRQComEpamReportportalBaseModelProjectConfigCreateIssueSubTypeRQCreatePatternTemplateRQComEpamReportportalBaseModelProjectConfigPatternCreatePatternTemplateRQDashboardConfigResourceComEpamReportportalBaseModelDashboardDashboardConfigResourceDashboardPreconfiguredRqComEpamReportportalBaseModelDashboardDashboardPreconfiguredRqDashboardResourceComEpamReportportalBaseModelDashboardDashboardResourceDefineIssueRQComEpamReportportalBaseModelIssueDefineIssueRQDeleteBulkRSComEpamReportportalBaseModelDeleteBulkRSDemoDataRqComEpamReportportalBaseDemodataModelDemoDataRqDemoDataRsComEpamReportportalBaseDemodataModelDemoDataRsDescriptionComEpamReportportalBaseReportingBulkInfoUpdateRQDescriptionEditUserRQComEpamReportportalBaseModelUserEditUserRQEntryCreatedRSComEpamReportportalBaseModelEntryCreatedRSErrorRSComEpamReportportalBaseInfrastructureRulesExceptionErrorRSExternalSystemIssueComEpamReportportalBaseReportingIssueExternalSystemIssueGetLogTypes200ResponseComEpamReportportalApiModelGetLogTypes200ResponseGetLogsUnderRqComEpamReportportalBaseModelLogGetLogsUnderRqIntegrationRQComEpamReportportalBaseModelIntegrationIntegrationRQIntegrationResourceComEpamReportportalBaseModelIntegrationIntegrationResourceIntegrationTypeResourceComEpamReportportalBaseModelIntegrationIntegrationTypeResourceIssueComEpamReportportalBaseReportingIssueIssueDefinitionComEpamReportportalBaseModelIssueIssueDefinitionIssueSubTypeCreatedRSComEpamReportportalBaseModelProjectConfigIssueSubTypeCreatedRSIssueSubTypeResourceComEpamReportportalBaseModelProjectConfigIssueSubTypeResourceItemAttributeResourceComEpamReportportalBaseReportingAttributeResourceItemPathNameComEpamReportportalBaseReportingItemPathNameLaunchImportRQComEpamReportportalBaseModelLaunchLaunchImportRQLaunchPathNameComEpamReportportalBaseReportingLaunchPathNameLaunchResourceOldComEpamReportportalBaseReportingLaunchResourceOldconstructor: (int64, string, string, int64, time.Time, string) (*LaunchResourceOld) -> (int64, string, string, int64, time.Time) (*ComEpamReportportalBaseReportingLaunchResourceOld)
LaunchesPerUserComEpamReportportalBaseModelProjectLaunchesPerUserLinkExternalIssueRQComEpamReportportalBaseModelItemLinkExternalIssueRQconstructor: ([]int64, ExternalSystemIssue) (*LinkExternalIssueRQ) -> ([]int64, []ComEpamReportportalBaseReportingIssueExternalSystemIssue) (*ComEpamReportportalBaseModelItemLinkExternalIssueRQ)
LogEntryComEpamReportportalBaseModelLogSearchLogRsLogEntryLogResourceComEpamReportportalBaseModelLogLogResourceMultiValueMapStringStringOrgSpringframeworkUtilMultiValueMapJavaLangStringJavaLangStringOwnedEntityResourceComEpamReportportalBaseModelOwnedEntityResourcePageComEpamReportportalBaseModelPagePageClusterInfoResourceComEpamReportportalBaseModelPageComEpamReportportalBaseInfrastructureModelLaunchClusterClusterInfoResourcePageDashboardResourceComEpamReportportalBaseModelPageComEpamReportportalBaseModelDashboardDashboardResourcePageLogResourceComEpamReportportalBaseModelPageComEpamReportportalBaseModelLogLogResourcePageObjectComEpamReportportalBaseModelPageJavaLangObjectPageOwnedEntityResourceComEpamReportportalBaseModelPageComEpamReportportalBaseModelOwnedEntityResourcePagePagedLogResourceComEpamReportportalBaseModelPageComEpamReportportalBaseCoreLogImplPagedLogResourcePageProjectInfoResourceComEpamReportportalBaseModelPageComEpamReportportalBaseModelProjectProjectInfoResourcePageTestItemHistoryElementComEpamReportportalBaseModelPageComEpamReportportalBaseModelTestItemHistoryElementPageTestItemResourceComEpamReportportalBaseModelPageComEpamReportportalBaseReportingTestItemResourcePageUserResourceComEpamReportportalBaseModelPageComEpamReportportalBaseModelUserUserResourcePagedLogResourceComEpamReportportalBaseCoreLogImplPagedLogResourcePagedLogResourcePagesLocationInnerComEpamReportportalBaseCoreLogImplPagedLogResourcePagesLocationInnerParameterResourceComEpamReportportalBaseReportingParameterResourcePatchDashboardRQComEpamReportportalBaseModelDashboardPatchDashboardRQPathNameResourceComEpamReportportalBaseReportingPathNameResourcePatternTemplateResourceComEpamReportportalBaseModelProjectConfigPatternPatternTemplateResourcePositionComEpamReportportalBaseModelPositionPreferenceResourceComEpamReportportalBaseModelPreferencePreferenceResourceProjectConfigurationComEpamReportportalBaseModelProjectProjectConfigurationProjectConfigurationUpdateComEpamReportportalBaseModelProjectConfigProjectConfigurationUpdateProjectGroupsPageComEpamReportportalApiModelProjectGroupsPageProjectInfoResourceComEpamReportportalBaseModelProjectProjectInfoResourceProjectNotificationConfigDTOComEpamReportportalBaseModelProjectEmailProjectNotificationConfigDTOProjectSettingsResourceComEpamReportportalBaseModelProjectConfigProjectSettingsResourceProjectUserComEpamReportportalBaseModelProjectProjectResourceProjectUserResetPasswordRQComEpamReportportalBaseModelUserResetPasswordRQRestorePasswordRQComEpamReportportalBaseModelUserRestorePasswordRQSearchLogRqComEpamReportportalBaseModelLogSearchLogRqSearchLogRsComEpamReportportalBaseModelLogSearchLogRsSenderCaseDTOComEpamReportportalBaseModelProjectEmailSenderCaseDTOSizeComEpamReportportalBaseModelSizeStartLaunchRSComEpamReportportalBaseReportingStartLaunchRSStatisticsResourceComEpamReportportalBaseReportingStatisticsResourceSuggestInfoComEpamReportportalBaseCoreAnalyzerAutoClientModelSuggestInfoSuggestedItemComEpamReportportalBaseCoreAnalyzerAutoImplSuggestedItemTestItemHistoryElementComEpamReportportalBaseModelTestItemHistoryElementTestItemResourceComEpamReportportalBaseReportingTestItemResourceTestItemResourceOldComEpamReportportalBaseReportingTestItemResourceOldUnassignUsersRQComEpamReportportalBaseModelProjectUnassignUsersRQUnlinkExternalIssueRQComEpamReportportalBaseModelItemUnlinkExternalIssueRQUpdateDashboardRQComEpamReportportalBaseModelDashboardUpdateDashboardRQUpdateIssueSubTypeRQComEpamReportportalBaseModelProjectConfigUpdateIssueSubTypeRQUpdateItemAttributeRQComEpamReportportalBaseReportingUpdateItemAttributeRQUpdateLaunchRQComEpamReportportalBaseModelLaunchUpdateLaunchRQUpdateOneIssueSubTypeRQComEpamReportportalBaseModelProjectConfigUpdateOneIssueSubTypeRQUpdatePatternTemplateRQComEpamReportportalBaseModelProjectConfigPatternUpdatePatternTemplateRQUpdatePluginStateRQComEpamReportportalBaseModelIntegrationUpdatePluginStateRQUpdateProjectRQComEpamReportportalBaseModelProjectUpdateProjectRQUpdateTestItemRQComEpamReportportalBaseModelItemUpdateTestItemRQUpdateUserFilterRQComEpamReportportalBaseModelFilterUpdateUserFilterRQUserResourceComEpamReportportalBaseModelUserUserResourceWidgetConfigResourceComEpamReportportalBaseModelWidgetWidgetConfigResourceWidgetObjectModelComEpamReportportalBaseModelDashboardDashboardResourceWidgetObjectModelWidgetPreviewRQComEpamReportportalBaseModelWidgetWidgetPreviewRQWidgetRQComEpamReportportalBaseModelWidgetWidgetRQWidgetResourceComEpamReportportalBaseModelWidgetWidgetResourceYesNoRSComEpamReportportalBaseModelYesNoRSRestored names that are not fully source-compatible
The name and the JSON shape are back, but v5.2.2 code that touches these fields or constructors still needs a change. In the "fields" and "constructor" entries, the left side of
->is v5.2.2 and the right side ismaster.ActivityEventResourceComEpamReportportalBaseModelActivityEventResourceActivityResourceComEpamReportportalBaseInfrastructureModelActivityResourceconstructor: (int64, string, int64, time.Time, string, string, int64) (*ActivityResource) -> (int64, string, int64, int64, time.Time, string, string, int64) (*ComEpamReportportalBaseInfrastructureModelActivityResource)
ChartStatisticsContentComEpamReportportalBaseInfrastructurePersistenceEntityWidgetContentChartStatisticsContentLaunchResourceOldComEpamReportportalBaseReportingLaunchResourceOldconstructor: (int64, string, string, int64, time.Time, string) (*LaunchResourceOld) -> (int64, string, string, int64, time.Time) (*ComEpamReportportalBaseReportingLaunchResourceOld)
LinkExternalIssueRQComEpamReportportalBaseModelItemLinkExternalIssueRQconstructor: ([]int64, ExternalSystemIssue) (*LinkExternalIssueRQ) -> ([]int64, []ComEpamReportportalBaseReportingIssueExternalSystemIssue) (*ComEpamReportportalBaseModelItemLinkExternalIssueRQ)
MultiValueMapStringStringOrgSpringframeworkUtilMultiValueMapJavaLangStringJavaLangStringPageComEpamReportportalBaseModelPagePageObjectComEpamReportportalBaseModelPageJavaLangObjectProjectConfigurationComEpamReportportalBaseModelProjectProjectConfigurationProjectInfoResourceComEpamReportportalBaseModelProjectProjectInfoResourceStatisticsResourceComEpamReportportalBaseReportingStatisticsResourceUpdateProjectRQComEpamReportportalBaseModelProjectUpdateProjectRQUserResourceComEpamReportportalBaseModelUserUserResourceAmong the 19 names that were aliased before this PR, the same kind of difference remains here:
LaunchResource=ComEpamReportportalBaseReportingLaunchResource— rule agrees; Go field differences: Status string -> Status *stringLaunchViewModel=ComEpamReportportalBaseModelLaunchLaunchViewModel— rule agrees; Go field differences: Status string -> Status *stringNot restored (21)
No counterpart (18). No schema key in the current spec has this class name, and rule 2b finds no single type that replaced it:
AllowedValueAnalyticsResourceCreateProjectRQCreateUserBidRSCreateUserRQCreateUserRQConfirmCreateUserRQFullCreateUserRSNamedValuePageSearchUserResourcePagedResponseActivityEventResourcePostFormFieldPostTicketRQSearchCriteriaSearchUserResourceTicketUpdateSettingsRqUserBidRSMost of these names appear to belong to API areas whose request and service types are also gone (see the lists below: bug tracking tickets, user creation and bids, user search, project creation, onboarding). I did not trace the reason for each of the 18 names one by one.
JSON fields differ (3). Exactly one candidate exists, but a v5.2.2 JSON field is gone. An alias would compile for some code and fail for code that uses the missing field, so none is added:
AssignedProject— JSON fields gone: projectId (candidate ComEpamReportportalBaseModelUserUserResourceAssignedProject)ProjectResource— JSON fields gone: entryType (candidate ComEpamReportportalBaseModelProjectProjectResource)SearchCriteriaRQ— JSON fields gone: search_criterias (candidate ComEpamReportportalApiModelSearchCriteriaRQ)Ambiguous: 0. Different kind of type: 0.
Still broken and not addressed here
These are counted by the same tool and not fixed in this PR:
NewXandNewXWithDefaultsexist only under the long names. For the 116 restored names, theNewXsignature is unchanged for 112 and changed for 4. Wrappers for the 112 could be generated the same way if maintainers want them.pkg/ginkgouses none.Nullable*wrappers. 156 of 181 names are gone.Api*Requesttypes are gone. 74 of the surviving ones lost 90 methods. Most are body setters named after the model: for exampleApiCreateApiKeyRequest.ApiKeyRQ(...)is now.ComEpamReportportalBaseModelApiKeyRQ(...).compat.goalready wraps two of these forMergeLaunchesRQ.*APIServicetypes are gone, and 4 surviving ones lost 16 methods.Methods gone from surviving request types (90)
ApiAddGroupToProjectByIdRequest.AddProjectToGroupByIdRequest, ApiAddProjectToGroupByIdRequest.AddProjectToGroupByIdRequest, ApiAddWidgetRequest.AddWidgetRq, ApiAssignProjectUsersRequest.AssignUsersRQ, ApiBulkForceFinishRequest.BulkRQLongFinishExecutionRQ, ApiBulkUpdate1Request.BulkInfoUpdateRQ, ApiBulkUpdateRequest.BulkInfoUpdateRQ, ApiChangePasswordRequest.ChangePasswordRQ, ApiCreateApiKeyRequest.ApiKeyRQ, ApiCreateClustersRequest.CreateClustersRQ, ApiCreateDashboardRequest.CreateDashboardRQ, ApiCreateFilterRequest.UpdateUserFilterRQ, ApiCreateGlobalIntegrationRequest.IntegrationRQ, ApiCreateLogEntry1Request.SaveLogRQ, ApiCreateLogEntryRequest.SaveLogRQ, ApiCreateNotificationRequest.SenderCaseDTO, ApiCreatePatternTemplateRequest.CreatePatternTemplateRQ, ApiCreatePreconfiguredRequest.DashboardPreconfiguredRq, ApiCreateProjectIntegrationRequest.IntegrationRQ, ApiCreateProjectIssueSubTypeRequest.CreateIssueSubTypeRQ, ApiCreateWidgetRequest.WidgetRQ, ApiDefineTestItemIssueTypeRequest.DefineIssueRQ, ApiEditUserRequest.EditUserRQ, ApiExportProjectsRequest.FilterEqType, ApiFinishLaunch1Request.FinishExecutionRQ, ApiFinishLaunchRequest.FinishExecutionRQ, ApiFinishTestItem1Request.FinishTestItemRQ, ApiFinishTestItem2Request.FinishTestItemRQ, ApiFinishTestItem3Request.FinishTestItemRQ, ApiFinishTestItemRequest.FinishTestItemRQ, ApiForceFinishLaunchRequest.FinishExecutionRQ, ApiGenerateRequest.DemoDataRq, ApiGetAllProjectsInfoRequest.FilterEqType, ApiGetLogsUnderRequest.GetLogsUnderRq, ApiGetTestItemsByIdsRequest.BulkItemsRQ, ApiGetUsersRequest.FilterEqActive, ApiGetUsersRequest.FilterEqEmail, ApiGetUsersRequest.FilterEqExpired, ApiGetUsersRequest.FilterEqExternalId, ApiGetUsersRequest.FilterEqFullName, ApiGetUsersRequest.FilterEqId, ApiGetUsersRequest.FilterEqLastLogin, ApiGetUsersRequest.FilterEqProject, ApiGetUsersRequest.FilterEqProjectId, ApiGetUsersRequest.FilterEqRole, ApiGetUsersRequest.FilterEqSynchronizationDate, ApiGetUsersRequest.FilterEqType, ApiGetUsersRequest.FilterEqUser, ApiGetUsersRequest.FilterEqUuid, ApiGetUsersRequest.PagePage, ApiGetUsersRequest.PageSize, ApiGetUsersRequest.PageSort, ApiGetWidgetPreviewRequest.WidgetPreviewRQ, ApiHandleSuggestChooseRequest.SuggestInfo, ApiLinkExternalIssuesRequest.LinkExternalIssueRQ, ApiPatchDashboardRequest.PatchDashboardRQ, ApiResetPasswordRequest.ResetPasswordRQ, ApiRestorePasswordRequest.RestorePasswordRQ, ApiSaveAnalyticsSettings1Request.AnalyticsResource, ApiSaveAnalyticsSettingsRequest.AnalyticsResource, ApiSearchLogsRequest.SearchLogRq, ApiStartChildItem1Request.StartTestItemRQ, ApiStartChildItem2Request.StartTestItemRQ, ApiStartChildItem3Request.StartTestItemRQ, ApiStartChildItemRequest.StartTestItemRQ, ApiStartLaunch1Request.StartLaunchRQ, ApiStartLaunchAnalyzerRequest.AnalyzeLaunchRQ, ApiStartLaunchRequest.StartLaunchRQ, ApiStartRootItem1Request.StartTestItemRQ, ApiStartRootItem2Request.StartTestItemRQ, ApiStartRootItem3Request.StartTestItemRQ, ApiStartRootItemRequest.StartTestItemRQ, ApiUnassignProjectUsersRequest.UnassignUsersRQ, ApiUnlinkExternalIssuesRequest.UnlinkExternalIssueRQ, ApiUpdateDashboardRequest.UpdateDashboardRQ, ApiUpdateGlobalIntegrationRequest.IntegrationRQ, ApiUpdateLaunchRequest.UpdateLaunchRQ, ApiUpdateLaunchesRequest.BulkRQLongUpdateLaunchRQ, ApiUpdateNotificationRequest.SenderCaseDTO, ApiUpdatePatternTemplateRequest.UpdatePatternTemplateRQ, ApiUpdatePluginStateRequest.UpdatePluginStateRQ, ApiUpdateProjectIntegrationRequest.IntegrationRQ, ApiUpdateProjectIssueSubTypeRequest.UpdateIssueSubTypeRQ, ApiUpdateProjectNotificationConfigRequest.ProjectNotificationConfigDTO, ApiUpdateProjectRequest.UpdateProjectRQ, ApiUpdateServerSettingsRequest.UpdateSettingsRq, ApiUpdateTestItemRequest.UpdateTestItemRQ, ApiUpdateUserFilterRequest.UpdateUserFilterRQ, ApiUpdateUserFiltersRequest.CollectionsRQBulkUpdateFilterRQ, ApiUpdateWidgetRequest.WidgetRQ
Methods gone from surviving service types (16)
ActivityEventAPIService.GetActivities, ActivityEventAPIService.GetActivitiesExecute, FileStorageAPIService.DeletePhoto, FileStorageAPIService.DeletePhotoExecute, FileStorageAPIService.GetMyPhoto, FileStorageAPIService.GetMyPhotoExecute, FileStorageAPIService.GetUserPhoto, FileStorageAPIService.GetUserPhotoExecute, FileStorageAPIService.UploadPhoto, FileStorageAPIService.UploadPhotoExecute, ProjectAPIService.CreateProject, ProjectAPIService.CreateProjectExecute, ProjectAPIService.SearchForUser, ProjectAPIService.SearchForUserExecute, WidgetAPIService.GetWidgetNames, WidgetAPIService.GetWidgetNamesExecute
Gone service names (3)
BugTrackingSystemAPIService, OnboardingAPIService, UserAPIService
Gone request names (19)
ApiCreateIssueRequest, ApiCreateProjectRequest, ApiCreateUserBidRequest, ApiCreateUserByAdminRequest, ApiCreateUserRequest, ApiDeletePhotoRequest, ApiGetActivitiesRequest, ApiGetAllowableIssueTypes1Request, ApiGetAllowableIssueTypesRequest, ApiGetMyPhotoRequest, ApiGetSetOfIntegrationSystemFields1Request, ApiGetSetOfIntegrationSystemFieldsRequest, ApiGetTicketRequest, ApiGetUserBidInfoRequest, ApiGetUserPhotoRequest, ApiGetWidgetNamesRequest, ApiOnBoardingRequest, ApiSearchForUserRequest, ApiUploadPhotoRequest
Gone nullable names (156)
NullableActivityEventResource, NullableActivityResource, NullableAddProjectToGroupByIdRequest, NullableAddWidgetRq, NullableAllowedValue, NullableAnalyticsResource, NullableAnalyzeLaunchRQ, NullableApiKeyRQ, NullableApiKeyRS, NullableApiKeysRS, NullableAssignUsersRQ, NullableAssignedProject, NullableBatchElementCreatedRS, NullableBatchSaveOperatingRS, NullableBinaryContent, NullableBulkInfoUpdateRQ, NullableBulkItemsRQ, NullableBulkRQLongFinishExecutionRQ, NullableBulkRQLongUpdateLaunchRQ, NullableBulkUpdateFilterRQ, NullableChangePasswordRQ, NullableChartStatisticsContent, NullableClusterInfoResource, NullableCollectionsRQBulkUpdateFilterRQ, NullableContentParameters, NullableCreateClustersRQ, NullableCreateDashboardRQ, NullableCreateIssueSubTypeRQ, NullableCreatePatternTemplateRQ, NullableCreateProjectRQ, NullableCreateUserBidRS, NullableCreateUserRQ, NullableCreateUserRQConfirm, NullableCreateUserRQFull, NullableCreateUserRS, NullableDashboardConfigResource, NullableDashboardPreconfiguredRq, NullableDashboardResource, NullableDefineIssueRQ, NullableDeleteBulkRS, NullableDemoDataRq, NullableDemoDataRs, NullableDescription, NullableEditUserRQ, NullableEntryCreatedAsyncRS, NullableEntryCreatedRS, NullableErrorRS, NullableExternalSystemIssue, NullableFile, NullableFinishExecutionRQ, NullableFinishLaunchRS, NullableFinishTestItemRQ, NullableGetLogTypes200Response, NullableGetLogsUnderRq, NullableIntegrationRQ, NullableIntegrationResource, NullableIntegrationTypeResource, NullableIssue, NullableIssueDefinition, NullableIssueSubTypeCreatedRS, NullableIssueSubTypeResource, NullableItemAttributeResource, NullableItemAttributesRQ, NullableItemPathName, NullableLaunchImportRQ, NullableLaunchPathName, NullableLaunchResource, NullableLaunchResourceOld, NullableLaunchViewModel, NullableLaunchesPerUser, NullableLinkExternalIssueRQ, NullableLogEntry, NullableLogResource, NullableMergeLaunchesRQ, NullableMultiValueMapStringString, NullableNamedValue, NullableOperationCompletionRS, NullableOrder, NullableOwnedEntityResource, NullablePage, NullablePageClusterInfoResource, NullablePageDashboardResource, NullablePageLaunchViewModel, NullablePageLogResource, NullablePageMetadata, NullablePageObject, NullablePageOwnedEntityResource, NullablePagePagedLogResource, NullablePageProjectInfoResource, NullablePageSearchUserResource, NullablePageTestItemHistoryElement, NullablePageTestItemResource, NullablePageUserFilterResource, NullablePageUserResource, NullablePagedLogResource, NullablePagedLogResourcePagesLocationInner, NullablePagedResponseActivityEventResource, NullableParameterResource, NullablePatchDashboardRQ, NullablePathNameResource, NullablePatternTemplateResource, NullablePosition, NullablePostFormField, NullablePostTicketRQ, NullablePreferenceResource, NullableProjectConfiguration, NullableProjectConfigurationUpdate, NullableProjectGroupsPage, NullableProjectInfoResource, NullableProjectNotificationConfigDTO, NullableProjectResource, NullableProjectSettingsResource, NullableProjectUser, NullableResetPasswordRQ, NullableRestorePasswordRQ, NullableSaveLogRQ, NullableSearchCriteria, NullableSearchCriteriaRQ, NullableSearchLogRq, NullableSearchLogRs, NullableSearchUserResource, NullableSenderCaseDTO, NullableSize, NullableStartLaunchRQ, NullableStartLaunchRS, NullableStartTestItemRQ, NullableStatisticsResource, NullableSuggestInfo, NullableSuggestedItem, NullableTestItemHistoryElement, NullableTestItemResource, NullableTestItemResourceOld, NullableTicket, NullableUnassignUsersRQ, NullableUnlinkExternalIssueRQ, NullableUpdateDashboardRQ, NullableUpdateIssueSubTypeRQ, NullableUpdateItemAttributeRQ, NullableUpdateLaunchRQ, NullableUpdateOneIssueSubTypeRQ, NullableUpdatePatternTemplateRQ, NullableUpdatePluginStateRQ, NullableUpdateProjectRQ, NullableUpdateSettingsRq, NullableUpdateTestItemRQ, NullableUpdateUserFilterRQ, NullableUserBidRS, NullableUserFilterCondition, NullableUserFilterResource, NullableUserResource, NullableWidgetConfigResource, NullableWidgetObjectModel, NullableWidgetPreviewRQ, NullableWidgetRQ, NullableWidgetResource, NullableYesNoRS
Verification
go build ./...andgo vet ./...pass.go test ./...passes (internal/commands,pkg/gorp).task lint(golangci-lint v2.15.0 in Docker) reports 0 issues.task fmtleaves the tree unchanged.task e2ewas not run. The change adds type aliases only and does not alter what is sent to ReportPortal.Issuealias makesgo vet ./pkg/gorp/fail withundefined: openapi.Issuein the new test.go.workthat usespkg/ginkgofrom Add Ginkgo v2 agent and ginkgo-rp wrapper (pkg/ginkgo) #15 (07ad5c4) and goRP from a local directory:origin/master(517efe6):go build ./...fails withundefined: openapi.ParameterResource(3 places) andundefined: openapi.Issue.go build ./...andgo vet ./...pass, with no edits topkg/ginkgo.Investigation log
Every step can be repeated from the repository root.
$Sis any empty scratch directory.go/parser. It counts 621 exported types at v5.2.2: 186 model, 181Nullable*, 230Api*Request, 24*APIService. Of the 186 model names, 30 are still declared, 19 were aliased incompat.go, and 137 are gone. This matches pkg/openapi: v5.2.2 type names removed on master while module path stays /v5; v6.0.0 tag unusable for Go modules #32. (On this branch the tool ignores its own block, so it reports the same numbers before and after the change.)Issueis a suffix of both…ReportingIssueand…ReportingIssueExternalSystemIssue, and a camel-case suffix has no package boundary. The schema keys inreportportal-api-docs.jsonkeep the dots, so the tool derives the class name from the key (simpleNamesin the script) and derives the Go type name from the same key. A name-suffix hit is printed only as a hint for names with no key candidate. None of the 18 unmapped names has one.…model.PageCom.epam.….log.LogResourceglue a generic type to the package of its argument. The tool strips theCom/Java/Orgjoint and concatenates the class parts (PageLogResource,BulkRQLongUpdateLaunchRQ,MultiValueMapStringString). For a non-generic key with two class parts (Issue.ExternalSystemIssue,LogResource.BinaryContent,SaveLogRQ.File) the inner name alone is also accepted, because that is how v5.2.2 named them. The inner-name form is not applied to generic keys, otherwisePage<LogResource>would compete withLogResource.scripts/openapi-preprocess.jqflattensallOfbefore generation. A candidate is rejected when a v5.2.2 JSON field is missing. This rejectedAssignedProject,ProjectResourceandSearchCriteriaRQ.ItemAttributeResourcehad no key, yet 11 fields of mapped structs still referred to it. The spec now calls that classcom.epam.reportportal.base.reporting.AttributeResource. The tool walks the old and the new field type in parallel. It accepts the new name only if all uses agree on one type and the shapes match ([]Xto[]Y,*Xto*Y). The evidence is in the "matched by position" notes of the table. The same rule mapsPagedLogResourcePagesLocationInner.NewXsignature is compared with the new one, after resolving names through the aliases. A difference does not block an alias, because the type is still the same class, but it is reported. The generated test checks such a field withis[any]and a comment instead of its old type.PageClusterInfoResource) is put in its own paragraph so thatlllpasses.go list -mprints the goRP directory the workspace resolves, so the pass does not come from the v5.2.2 thatpkg/ginkgo/go.modpins.go build ./... && go vet ./... && go test ./..., thentask fmtandtask lint.🤖 Generated with Claude Code