-
Notifications
You must be signed in to change notification settings - Fork 110
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
base: next
Are you sure you want to change the base?
Conversation
152af6b
to
20f9749
Compare
fbbad24
to
d036aa7
Compare
9aec463
to
c42d133
Compare
There was a problem hiding this 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.
bafc221
to
b100d28
Compare
b100d28
to
70637f4
Compare
err = openapi.ReportError("server no response") | ||
if apiErr, ok := localErr.(openapi.GenericOpenAPIError); ok { | ||
// API error | ||
reporterr := apiErr.Model().(Npcf_AMPolicy.ReportObservedEventTriggersForIndividualAMPolicyAssociationError) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type assertion
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type assertion
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type assertion
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type assertion
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsubcribeerr := apiErr.Model().(Nudm_SubscriberDataManagement.UnsubscribeError) | |
unsubcribeErr := apiErr.Model().(Nudm_SubscriberDataManagement.UnsubscribeError) |
No description provided.