mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -8,7 +8,7 @@ OpenAPI_app_session_context_t *OpenAPI_app_session_context_create(
|
|||
OpenAPI_app_session_context_req_data_t *asc_req_data,
|
||||
OpenAPI_app_session_context_resp_data_t *asc_resp_data,
|
||||
OpenAPI_events_notification_t *evs_notif
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_app_session_context_t *app_session_context_local_var = OpenAPI_malloc(sizeof(OpenAPI_app_session_context_t));
|
||||
if (!app_session_context_local_var) {
|
||||
|
|
@ -44,42 +44,42 @@ cJSON *OpenAPI_app_session_context_convertToJSON(OpenAPI_app_session_context_t *
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (app_session_context->asc_req_data) {
|
||||
cJSON *asc_req_data_local_JSON = OpenAPI_app_session_context_req_data_convertToJSON(app_session_context->asc_req_data);
|
||||
if (asc_req_data_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_req_data]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "ascReqData", asc_req_data_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_req_data]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *asc_req_data_local_JSON = OpenAPI_app_session_context_req_data_convertToJSON(app_session_context->asc_req_data);
|
||||
if (asc_req_data_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_req_data]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "ascReqData", asc_req_data_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_req_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (app_session_context->asc_resp_data) {
|
||||
cJSON *asc_resp_data_local_JSON = OpenAPI_app_session_context_resp_data_convertToJSON(app_session_context->asc_resp_data);
|
||||
if (asc_resp_data_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_resp_data]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "ascRespData", asc_resp_data_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_resp_data]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *asc_resp_data_local_JSON = OpenAPI_app_session_context_resp_data_convertToJSON(app_session_context->asc_resp_data);
|
||||
if (asc_resp_data_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_resp_data]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "ascRespData", asc_resp_data_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [asc_resp_data]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (app_session_context->evs_notif) {
|
||||
cJSON *evs_notif_local_JSON = OpenAPI_events_notification_convertToJSON(app_session_context->evs_notif);
|
||||
if (evs_notif_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [evs_notif]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "evsNotif", evs_notif_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [evs_notif]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *evs_notif_local_JSON = OpenAPI_events_notification_convertToJSON(app_session_context->evs_notif);
|
||||
if (evs_notif_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [evs_notif]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "evsNotif", evs_notif_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_app_session_context_convertToJSON() failed [evs_notif]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -92,29 +92,29 @@ OpenAPI_app_session_context_t *OpenAPI_app_session_context_parseFromJSON(cJSON *
|
|||
cJSON *asc_req_data = cJSON_GetObjectItemCaseSensitive(app_session_contextJSON, "ascReqData");
|
||||
|
||||
OpenAPI_app_session_context_req_data_t *asc_req_data_local_nonprim = NULL;
|
||||
if (asc_req_data) {
|
||||
asc_req_data_local_nonprim = OpenAPI_app_session_context_req_data_parseFromJSON(asc_req_data);
|
||||
}
|
||||
if (asc_req_data) {
|
||||
asc_req_data_local_nonprim = OpenAPI_app_session_context_req_data_parseFromJSON(asc_req_data);
|
||||
}
|
||||
|
||||
cJSON *asc_resp_data = cJSON_GetObjectItemCaseSensitive(app_session_contextJSON, "ascRespData");
|
||||
|
||||
OpenAPI_app_session_context_resp_data_t *asc_resp_data_local_nonprim = NULL;
|
||||
if (asc_resp_data) {
|
||||
asc_resp_data_local_nonprim = OpenAPI_app_session_context_resp_data_parseFromJSON(asc_resp_data);
|
||||
}
|
||||
if (asc_resp_data) {
|
||||
asc_resp_data_local_nonprim = OpenAPI_app_session_context_resp_data_parseFromJSON(asc_resp_data);
|
||||
}
|
||||
|
||||
cJSON *evs_notif = cJSON_GetObjectItemCaseSensitive(app_session_contextJSON, "evsNotif");
|
||||
|
||||
OpenAPI_events_notification_t *evs_notif_local_nonprim = NULL;
|
||||
if (evs_notif) {
|
||||
evs_notif_local_nonprim = OpenAPI_events_notification_parseFromJSON(evs_notif);
|
||||
}
|
||||
if (evs_notif) {
|
||||
evs_notif_local_nonprim = OpenAPI_events_notification_parseFromJSON(evs_notif);
|
||||
}
|
||||
|
||||
app_session_context_local_var = OpenAPI_app_session_context_create (
|
||||
asc_req_data ? asc_req_data_local_nonprim : NULL,
|
||||
asc_resp_data ? asc_resp_data_local_nonprim : NULL,
|
||||
evs_notif ? evs_notif_local_nonprim : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return app_session_context_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue