Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update to R17 openapi #140

Open
wants to merge 28 commits into
base: next
Choose a base branch
from

Conversation

donald1218
Copy link
Contributor

No description provided.

@donald1218 donald1218 marked this pull request as draft August 15, 2024 14:51
@donald1218 donald1218 marked this pull request as ready for review August 18, 2024 04:22
@andy89923 andy89923 changed the title Feat/amf openapi feat: update to R17 openapi Aug 22, 2024
internal/gmm/handler.go Outdated Show resolved Hide resolved
Copy link
Contributor

@andy89923 andy89923 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nnrf_NFDiscovery.SearchNFInstancesParamOpts's TargetNfType must be non nil.
This PR miss this at multiple places.

internal/gmm/handler.go Outdated Show resolved Hide resolved
internal/gmm/handler.go Show resolved Hide resolved
internal/sbi/consumer/nssf_service.go Outdated Show resolved Hide resolved
internal/sbi/consumer/nssf_service.go Outdated Show resolved Hide resolved
internal/sbi/processor/notifier/subscription.go Outdated Show resolved Hide resolved
internal/sbi/consumer/udm_service.go Outdated Show resolved Hide resolved
@ianchen0119 ianchen0119 changed the base branch from main to next November 12, 2024 06:21
err = openapi.ReportError("server no response")
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
reporterr := apiErr.Model().(Npcf_AMPolicy.ReportObservedEventTriggersForIndividualAMPolicyAssociationError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the type assertion

return nil, openapi.ReportError("server no response")
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
createrr := apiErr.Model().(Npcf_AMPolicy.CreateIndividualAMPolicyAssociationError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type assertion

Suggested change
createrr := apiErr.Model().(Npcf_AMPolicy.CreateIndividualAMPolicyAssociationError)
creatErr := apiErr.Model().(Npcf_AMPolicy.CreateIndividualAMPolicyAssociationError)

err = openapi.ReportError("server no response")
if apiErr, ok := err.(openapi.GenericOpenAPIError); ok {
// API error
deleteerr := apiErr.Model().(Npcf_AMPolicy.DeleteIndividualAMPolicyAssociationError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type assertion

Suggested change
deleteerr := apiErr.Model().(Npcf_AMPolicy.DeleteIndividualAMPolicyAssociationError)
deleteErr := apiErr.Model().(Npcf_AMPolicy.DeleteIndividualAMPolicyAssociationError)

err1 = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
posterr := apiErr.Model().(Nsmf_PDUSession.PostSmContextsError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type assertion

Suggested change
posterr := apiErr.Model().(Nsmf_PDUSession.PostSmContextsError)
postErr := apiErr.Model().(Nsmf_PDUSession.PostSmContextsError)

err1 = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
updateerr := apiErr.Model().(Nsmf_PDUSession.UpdateSmContextError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type assertion

Suggested change
updateerr := apiErr.Model().(Nsmf_PDUSession.UpdateSmContextError)
updateErr := apiErr.Model().(Nsmf_PDUSession.UpdateSmContextError)

err = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
geterr := apiErr.Model().(Nudm_SubscriberDataManagement.GetAmDataError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
geterr := apiErr.Model().(Nudm_SubscriberDataManagement.GetAmDataError)
getErr := apiErr.Model().(Nudm_SubscriberDataManagement.GetAmDataError)

err = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
getErr := apiErr.Model().(Nudm_SubscriberDataManagement.GetSmfSelDataError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type assertion

err = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
subcribeerr := apiErr.Model().(Nudm_SubscriberDataManagement.SubscribeError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
subcribeerr := apiErr.Model().(Nudm_SubscriberDataManagement.SubscribeError)
subcribeErr := apiErr.Model().(Nudm_SubscriberDataManagement.SubscribeError)

err = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
geterr := apiErr.Model().(Nudm_SubscriberDataManagement.GetNSSAIError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
geterr := apiErr.Model().(Nudm_SubscriberDataManagement.GetNSSAIError)
getErr := apiErr.Model().(Nudm_SubscriberDataManagement.GetNSSAIError)

err = localErr
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok {
// API error
unsubcribeerr := apiErr.Model().(Nudm_SubscriberDataManagement.UnsubscribeError)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
unsubcribeerr := apiErr.Model().(Nudm_SubscriberDataManagement.UnsubscribeError)
unsubcribeErr := apiErr.Model().(Nudm_SubscriberDataManagement.UnsubscribeError)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants