From 57f293e62a87caa6d2000d623a0ba6713bbbf9a5 Mon Sep 17 00:00:00 2001 From: yccodr Date: Tue, 29 Oct 2024 16:44:57 +0800 Subject: [PATCH] fix: query key of getting ns info should be kebab case --- .../processor/nsselection_network_slice_information.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/sbi/processor/nsselection_network_slice_information.go b/internal/sbi/processor/nsselection_network_slice_information.go index 55cb9fd..24490a2 100644 --- a/internal/sbi/processor/nsselection_network_slice_information.go +++ b/internal/sbi/processor/nsselection_network_slice_information.go @@ -29,17 +29,17 @@ type NetworkSliceInformationGetQuery struct { NfId string `form:"nf-id" binding:"required,uuid"` // nolint: lll - SliceInfoRequestForRegistration *models.SliceInfoForRegistration `form:"sliceInfoRequestForRegistration" binding:"omitempty"` + SliceInfoRequestForRegistration *models.SliceInfoForRegistration `form:"slice-info-request-for-registration" binding:"omitempty"` // nolint: lll - SliceInfoRequestForPduSession *models.SliceInfoForPduSession `form:"sliceInfoRequestForPduSession" binding:"omitempty"` + SliceInfoRequestForPduSession *models.SliceInfoForPduSession `form:"slice-info-request-for-pdu-session" binding:"omitempty"` // nolint: lll - SliceInfoRequestForUeConfigurationUpdate *models.SliceInfoForUeConfigurationUpdate `form:"sliceInfoRequestForUeConfigurationUpdate" binding:"omitempty"` + SliceInfoRequestForUeConfigurationUpdate *models.SliceInfoForUeConfigurationUpdate `form:"slice-info-request-for-ue-configuration-update" binding:"omitempty"` HomePlmnId *models.PlmnId `form:"home-plmn-id" binding:"required_without=Tai,omitempty"` Tai *models.Tai `form:"tai" binding:"required_without=HomePlmnId,omitempty"` - SupportedFeatures string `form:"supportedFeatures"` + SupportedFeatures string `form:"supported-features"` } // Check if the NF service consumer is authorized