-
Notifications
You must be signed in to change notification settings - Fork 95
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: Upgrade OpenAPI to R17 #117
base: next
Are you sure you want to change the base?
Conversation
Hi @pf-lin , Please note that the content type of the response will be "multipart/related" if and only if the message has binary body part(s). Otherwise, the content type should be "application/json". |
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.
LGTM!
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.
LGTM.
… request structures
postChargingDataRequest := &ConvergedCharging.PostChargingDataRequest{ | ||
ChfConvergedChargingChargingDataRequest: req, | ||
} | ||
rspPost, localErr := client.DefaultApi.PostChargingData(ctx, postChargingDataRequest) | ||
|
||
switch err := localErr.(type) { | ||
case openapi.GenericOpenAPIError: | ||
switch errModel := err.Model().(type) { | ||
case ConvergedCharging.PostChargingDataError: | ||
chargingDataRef := strings.Split(errModel.Location, "/") | ||
smContext.ChargingDataRef = chargingDataRef[len(chargingDataRef)-1] | ||
return nil, &errModel.ProblemDetails, nil | ||
case error: | ||
return nil, openapi.ProblemDetailsSystemFailure(errModel.Error()), nil | ||
default: | ||
return nil, nil, openapi.ReportError("openapi error") | ||
} |
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.
The logic is not correct.
No description provided.