mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +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
|
|
@ -24,7 +24,7 @@ OpenAPI_sm_context_updated_data_t *OpenAPI_sm_context_updated_data_create(
|
|||
OpenAPI_list_t *forwarding_bearer_contexts,
|
||||
char *selected_smf_id,
|
||||
char *selected_old_smf_id
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_sm_context_updated_data_t *sm_context_updated_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_sm_context_updated_data_t));
|
||||
if (!sm_context_updated_data_local_var) {
|
||||
|
|
@ -106,227 +106,227 @@ cJSON *OpenAPI_sm_context_updated_data_convertToJSON(OpenAPI_sm_context_updated_
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (sm_context_updated_data->up_cnx_state) {
|
||||
if (cJSON_AddStringToObject(item, "upCnxState", OpenAPI_up_cnx_state_ToString(sm_context_updated_data->up_cnx_state)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [up_cnx_state]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "upCnxState", OpenAPI_up_cnx_state_ToString(sm_context_updated_data->up_cnx_state)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [up_cnx_state]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->ho_state) {
|
||||
if (cJSON_AddStringToObject(item, "hoState", OpenAPI_ho_state_ToString(sm_context_updated_data->ho_state)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [ho_state]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "hoState", OpenAPI_ho_state_ToString(sm_context_updated_data->ho_state)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [ho_state]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->release_ebi_list) {
|
||||
cJSON *release_ebi_list = cJSON_AddArrayToObject(item, "releaseEbiList");
|
||||
if (release_ebi_list == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *release_ebi_list = cJSON_AddArrayToObject(item, "releaseEbiList");
|
||||
if (release_ebi_list == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *release_ebi_list_node;
|
||||
OpenAPI_list_for_each(sm_context_updated_data->release_ebi_list, release_ebi_list_node) {
|
||||
if (cJSON_AddNumberToObject(release_ebi_list, "", *(double *)release_ebi_list_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
OpenAPI_lnode_t *release_ebi_list_node;
|
||||
OpenAPI_list_for_each(sm_context_updated_data->release_ebi_list, release_ebi_list_node) {
|
||||
if (cJSON_AddNumberToObject(release_ebi_list, "", *(double *)release_ebi_list_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->allocated_ebi_list) {
|
||||
cJSON *allocated_ebi_listList = cJSON_AddArrayToObject(item, "allocatedEbiList");
|
||||
if (allocated_ebi_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [allocated_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *allocated_ebi_listList = cJSON_AddArrayToObject(item, "allocatedEbiList");
|
||||
if (allocated_ebi_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [allocated_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *allocated_ebi_list_node;
|
||||
if (sm_context_updated_data->allocated_ebi_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->allocated_ebi_list, allocated_ebi_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_ebi_arp_mapping_convertToJSON(allocated_ebi_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [allocated_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(allocated_ebi_listList, itemLocal);
|
||||
OpenAPI_lnode_t *allocated_ebi_list_node;
|
||||
if (sm_context_updated_data->allocated_ebi_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->allocated_ebi_list, allocated_ebi_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_ebi_arp_mapping_convertToJSON(allocated_ebi_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [allocated_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(allocated_ebi_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->modified_ebi_list) {
|
||||
cJSON *modified_ebi_listList = cJSON_AddArrayToObject(item, "modifiedEbiList");
|
||||
if (modified_ebi_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [modified_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *modified_ebi_listList = cJSON_AddArrayToObject(item, "modifiedEbiList");
|
||||
if (modified_ebi_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [modified_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *modified_ebi_list_node;
|
||||
if (sm_context_updated_data->modified_ebi_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->modified_ebi_list, modified_ebi_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_ebi_arp_mapping_convertToJSON(modified_ebi_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [modified_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(modified_ebi_listList, itemLocal);
|
||||
OpenAPI_lnode_t *modified_ebi_list_node;
|
||||
if (sm_context_updated_data->modified_ebi_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->modified_ebi_list, modified_ebi_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_ebi_arp_mapping_convertToJSON(modified_ebi_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [modified_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(modified_ebi_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->n1_sm_msg) {
|
||||
cJSON *n1_sm_msg_local_JSON = OpenAPI_ref_to_binary_data_convertToJSON(sm_context_updated_data->n1_sm_msg);
|
||||
if (n1_sm_msg_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n1_sm_msg]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n1SmMsg", n1_sm_msg_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n1_sm_msg]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *n1_sm_msg_local_JSON = OpenAPI_ref_to_binary_data_convertToJSON(sm_context_updated_data->n1_sm_msg);
|
||||
if (n1_sm_msg_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n1_sm_msg]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n1SmMsg", n1_sm_msg_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n1_sm_msg]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->n2_sm_info) {
|
||||
cJSON *n2_sm_info_local_JSON = OpenAPI_ref_to_binary_data_convertToJSON(sm_context_updated_data->n2_sm_info);
|
||||
if (n2_sm_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n2_sm_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n2SmInfo", n2_sm_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n2_sm_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *n2_sm_info_local_JSON = OpenAPI_ref_to_binary_data_convertToJSON(sm_context_updated_data->n2_sm_info);
|
||||
if (n2_sm_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n2_sm_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n2SmInfo", n2_sm_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n2_sm_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->n2_sm_info_type) {
|
||||
if (cJSON_AddStringToObject(item, "n2SmInfoType", OpenAPI_n2_sm_info_type_ToString(sm_context_updated_data->n2_sm_info_type)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n2_sm_info_type]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "n2SmInfoType", OpenAPI_n2_sm_info_type_ToString(sm_context_updated_data->n2_sm_info_type)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n2_sm_info_type]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->eps_bearer_setup) {
|
||||
cJSON *eps_bearer_setup = cJSON_AddArrayToObject(item, "epsBearerSetup");
|
||||
if (eps_bearer_setup == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *eps_bearer_setup = cJSON_AddArrayToObject(item, "epsBearerSetup");
|
||||
if (eps_bearer_setup == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *eps_bearer_setup_node;
|
||||
OpenAPI_list_for_each(sm_context_updated_data->eps_bearer_setup, eps_bearer_setup_node) {
|
||||
if (cJSON_AddStringToObject(eps_bearer_setup, "", (char*)eps_bearer_setup_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
OpenAPI_lnode_t *eps_bearer_setup_node;
|
||||
OpenAPI_list_for_each(sm_context_updated_data->eps_bearer_setup, eps_bearer_setup_node) {
|
||||
if (cJSON_AddStringToObject(eps_bearer_setup, "", (char*)eps_bearer_setup_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->data_forwarding) {
|
||||
if (cJSON_AddBoolToObject(item, "dataForwarding", sm_context_updated_data->data_forwarding) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [data_forwarding]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "dataForwarding", sm_context_updated_data->data_forwarding) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [data_forwarding]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->n3_dl_forwarding_tnl_list) {
|
||||
cJSON *n3_dl_forwarding_tnl_listList = cJSON_AddArrayToObject(item, "n3DlForwardingTnlList");
|
||||
if (n3_dl_forwarding_tnl_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_dl_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *n3_dl_forwarding_tnl_listList = cJSON_AddArrayToObject(item, "n3DlForwardingTnlList");
|
||||
if (n3_dl_forwarding_tnl_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_dl_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *n3_dl_forwarding_tnl_list_node;
|
||||
if (sm_context_updated_data->n3_dl_forwarding_tnl_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->n3_dl_forwarding_tnl_list, n3_dl_forwarding_tnl_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_indirect_data_forwarding_tunnel_info_convertToJSON(n3_dl_forwarding_tnl_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_dl_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(n3_dl_forwarding_tnl_listList, itemLocal);
|
||||
OpenAPI_lnode_t *n3_dl_forwarding_tnl_list_node;
|
||||
if (sm_context_updated_data->n3_dl_forwarding_tnl_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->n3_dl_forwarding_tnl_list, n3_dl_forwarding_tnl_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_indirect_data_forwarding_tunnel_info_convertToJSON(n3_dl_forwarding_tnl_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_dl_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(n3_dl_forwarding_tnl_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->n3_ul_forwarding_tnl_list) {
|
||||
cJSON *n3_ul_forwarding_tnl_listList = cJSON_AddArrayToObject(item, "n3UlForwardingTnlList");
|
||||
if (n3_ul_forwarding_tnl_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_ul_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *n3_ul_forwarding_tnl_listList = cJSON_AddArrayToObject(item, "n3UlForwardingTnlList");
|
||||
if (n3_ul_forwarding_tnl_listList == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_ul_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *n3_ul_forwarding_tnl_list_node;
|
||||
if (sm_context_updated_data->n3_ul_forwarding_tnl_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->n3_ul_forwarding_tnl_list, n3_ul_forwarding_tnl_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_indirect_data_forwarding_tunnel_info_convertToJSON(n3_ul_forwarding_tnl_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_ul_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(n3_ul_forwarding_tnl_listList, itemLocal);
|
||||
OpenAPI_lnode_t *n3_ul_forwarding_tnl_list_node;
|
||||
if (sm_context_updated_data->n3_ul_forwarding_tnl_list) {
|
||||
OpenAPI_list_for_each(sm_context_updated_data->n3_ul_forwarding_tnl_list, n3_ul_forwarding_tnl_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_indirect_data_forwarding_tunnel_info_convertToJSON(n3_ul_forwarding_tnl_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [n3_ul_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(n3_ul_forwarding_tnl_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->cause) {
|
||||
if (cJSON_AddStringToObject(item, "cause", OpenAPI_cause_ToString(sm_context_updated_data->cause)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "cause", OpenAPI_cause_ToString(sm_context_updated_data->cause)) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->ma_accepted_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "maAcceptedInd", sm_context_updated_data->ma_accepted_ind) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [ma_accepted_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "maAcceptedInd", sm_context_updated_data->ma_accepted_ind) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [ma_accepted_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->supported_features) {
|
||||
if (cJSON_AddStringToObject(item, "supportedFeatures", sm_context_updated_data->supported_features) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "supportedFeatures", sm_context_updated_data->supported_features) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->forwarding_f_teid) {
|
||||
if (cJSON_AddNumberToObject(item, "forwardingFTeid", sm_context_updated_data->forwarding_f_teid) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [forwarding_f_teid]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "forwardingFTeid", sm_context_updated_data->forwarding_f_teid) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [forwarding_f_teid]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->forwarding_bearer_contexts) {
|
||||
cJSON *forwarding_bearer_contexts = cJSON_AddArrayToObject(item, "forwardingBearerContexts");
|
||||
if (forwarding_bearer_contexts == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *forwarding_bearer_contexts = cJSON_AddArrayToObject(item, "forwardingBearerContexts");
|
||||
if (forwarding_bearer_contexts == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *forwarding_bearer_contexts_node;
|
||||
OpenAPI_list_for_each(sm_context_updated_data->forwarding_bearer_contexts, forwarding_bearer_contexts_node) {
|
||||
if (cJSON_AddStringToObject(forwarding_bearer_contexts, "", (char*)forwarding_bearer_contexts_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
OpenAPI_lnode_t *forwarding_bearer_contexts_node;
|
||||
OpenAPI_list_for_each(sm_context_updated_data->forwarding_bearer_contexts, forwarding_bearer_contexts_node) {
|
||||
if (cJSON_AddStringToObject(forwarding_bearer_contexts, "", (char*)forwarding_bearer_contexts_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->selected_smf_id) {
|
||||
if (cJSON_AddStringToObject(item, "selectedSmfId", sm_context_updated_data->selected_smf_id) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [selected_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "selectedSmfId", sm_context_updated_data->selected_smf_id) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [selected_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_updated_data->selected_old_smf_id) {
|
||||
if (cJSON_AddStringToObject(item, "selectedOldSmfId", sm_context_updated_data->selected_old_smf_id) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [selected_old_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "selectedOldSmfId", sm_context_updated_data->selected_old_smf_id) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_convertToJSON() failed [selected_old_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -339,266 +339,266 @@ OpenAPI_sm_context_updated_data_t *OpenAPI_sm_context_updated_data_parseFromJSON
|
|||
cJSON *up_cnx_state = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "upCnxState");
|
||||
|
||||
OpenAPI_up_cnx_state_e up_cnx_stateVariable;
|
||||
if (up_cnx_state) {
|
||||
if (!cJSON_IsString(up_cnx_state)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [up_cnx_state]");
|
||||
goto end;
|
||||
}
|
||||
up_cnx_stateVariable = OpenAPI_up_cnx_state_FromString(up_cnx_state->valuestring);
|
||||
if (up_cnx_state) {
|
||||
if (!cJSON_IsString(up_cnx_state)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [up_cnx_state]");
|
||||
goto end;
|
||||
}
|
||||
up_cnx_stateVariable = OpenAPI_up_cnx_state_FromString(up_cnx_state->valuestring);
|
||||
}
|
||||
|
||||
cJSON *ho_state = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "hoState");
|
||||
|
||||
OpenAPI_ho_state_e ho_stateVariable;
|
||||
if (ho_state) {
|
||||
if (!cJSON_IsString(ho_state)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [ho_state]");
|
||||
goto end;
|
||||
}
|
||||
ho_stateVariable = OpenAPI_ho_state_FromString(ho_state->valuestring);
|
||||
if (ho_state) {
|
||||
if (!cJSON_IsString(ho_state)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [ho_state]");
|
||||
goto end;
|
||||
}
|
||||
ho_stateVariable = OpenAPI_ho_state_FromString(ho_state->valuestring);
|
||||
}
|
||||
|
||||
cJSON *release_ebi_list = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "releaseEbiList");
|
||||
|
||||
OpenAPI_list_t *release_ebi_listList;
|
||||
if (release_ebi_list) {
|
||||
cJSON *release_ebi_list_local;
|
||||
if (!cJSON_IsArray(release_ebi_list)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
release_ebi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(release_ebi_list_local, release_ebi_list) {
|
||||
if (!cJSON_IsNumber(release_ebi_list_local)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(release_ebi_listList, &release_ebi_list_local->valuedouble);
|
||||
}
|
||||
if (release_ebi_list) {
|
||||
cJSON *release_ebi_list_local;
|
||||
if (!cJSON_IsArray(release_ebi_list)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
release_ebi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(release_ebi_list_local, release_ebi_list) {
|
||||
if (!cJSON_IsNumber(release_ebi_list_local)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [release_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(release_ebi_listList , &release_ebi_list_local->valuedouble);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *allocated_ebi_list = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "allocatedEbiList");
|
||||
|
||||
OpenAPI_list_t *allocated_ebi_listList;
|
||||
if (allocated_ebi_list) {
|
||||
cJSON *allocated_ebi_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(allocated_ebi_list)) {
|
||||
if (allocated_ebi_list) {
|
||||
cJSON *allocated_ebi_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(allocated_ebi_list)){
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [allocated_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
allocated_ebi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(allocated_ebi_list_local_nonprimitive, allocated_ebi_list ) {
|
||||
if (!cJSON_IsObject(allocated_ebi_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [allocated_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ebi_arp_mapping_t *allocated_ebi_listItem = OpenAPI_ebi_arp_mapping_parseFromJSON(allocated_ebi_list_local_nonprimitive);
|
||||
|
||||
allocated_ebi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(allocated_ebi_list_local_nonprimitive, allocated_ebi_list ) {
|
||||
if (!cJSON_IsObject(allocated_ebi_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [allocated_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ebi_arp_mapping_t *allocated_ebi_listItem = OpenAPI_ebi_arp_mapping_parseFromJSON(allocated_ebi_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(allocated_ebi_listList, allocated_ebi_listItem);
|
||||
}
|
||||
OpenAPI_list_add(allocated_ebi_listList, allocated_ebi_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *modified_ebi_list = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "modifiedEbiList");
|
||||
|
||||
OpenAPI_list_t *modified_ebi_listList;
|
||||
if (modified_ebi_list) {
|
||||
cJSON *modified_ebi_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(modified_ebi_list)) {
|
||||
if (modified_ebi_list) {
|
||||
cJSON *modified_ebi_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(modified_ebi_list)){
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [modified_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
modified_ebi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(modified_ebi_list_local_nonprimitive, modified_ebi_list ) {
|
||||
if (!cJSON_IsObject(modified_ebi_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [modified_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ebi_arp_mapping_t *modified_ebi_listItem = OpenAPI_ebi_arp_mapping_parseFromJSON(modified_ebi_list_local_nonprimitive);
|
||||
|
||||
modified_ebi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(modified_ebi_list_local_nonprimitive, modified_ebi_list ) {
|
||||
if (!cJSON_IsObject(modified_ebi_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [modified_ebi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ebi_arp_mapping_t *modified_ebi_listItem = OpenAPI_ebi_arp_mapping_parseFromJSON(modified_ebi_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(modified_ebi_listList, modified_ebi_listItem);
|
||||
}
|
||||
OpenAPI_list_add(modified_ebi_listList, modified_ebi_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *n1_sm_msg = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "n1SmMsg");
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *n1_sm_msg_local_nonprim = NULL;
|
||||
if (n1_sm_msg) {
|
||||
n1_sm_msg_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n1_sm_msg);
|
||||
}
|
||||
if (n1_sm_msg) {
|
||||
n1_sm_msg_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n1_sm_msg);
|
||||
}
|
||||
|
||||
cJSON *n2_sm_info = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "n2SmInfo");
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *n2_sm_info_local_nonprim = NULL;
|
||||
if (n2_sm_info) {
|
||||
n2_sm_info_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n2_sm_info);
|
||||
}
|
||||
if (n2_sm_info) {
|
||||
n2_sm_info_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n2_sm_info);
|
||||
}
|
||||
|
||||
cJSON *n2_sm_info_type = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "n2SmInfoType");
|
||||
|
||||
OpenAPI_n2_sm_info_type_e n2_sm_info_typeVariable;
|
||||
if (n2_sm_info_type) {
|
||||
if (!cJSON_IsString(n2_sm_info_type)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n2_sm_info_type]");
|
||||
goto end;
|
||||
}
|
||||
n2_sm_info_typeVariable = OpenAPI_n2_sm_info_type_FromString(n2_sm_info_type->valuestring);
|
||||
if (n2_sm_info_type) {
|
||||
if (!cJSON_IsString(n2_sm_info_type)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n2_sm_info_type]");
|
||||
goto end;
|
||||
}
|
||||
n2_sm_info_typeVariable = OpenAPI_n2_sm_info_type_FromString(n2_sm_info_type->valuestring);
|
||||
}
|
||||
|
||||
cJSON *eps_bearer_setup = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "epsBearerSetup");
|
||||
|
||||
OpenAPI_list_t *eps_bearer_setupList;
|
||||
if (eps_bearer_setup) {
|
||||
cJSON *eps_bearer_setup_local;
|
||||
if (!cJSON_IsArray(eps_bearer_setup)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
eps_bearer_setupList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(eps_bearer_setup_local, eps_bearer_setup) {
|
||||
if (!cJSON_IsString(eps_bearer_setup_local)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(eps_bearer_setupList, ogs_strdup_or_assert(eps_bearer_setup_local->valuestring));
|
||||
}
|
||||
if (eps_bearer_setup) {
|
||||
cJSON *eps_bearer_setup_local;
|
||||
if (!cJSON_IsArray(eps_bearer_setup)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
eps_bearer_setupList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(eps_bearer_setup_local, eps_bearer_setup) {
|
||||
if (!cJSON_IsString(eps_bearer_setup_local)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [eps_bearer_setup]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(eps_bearer_setupList , ogs_strdup_or_assert(eps_bearer_setup_local->valuestring));
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *data_forwarding = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "dataForwarding");
|
||||
|
||||
if (data_forwarding) {
|
||||
if (!cJSON_IsBool(data_forwarding)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [data_forwarding]");
|
||||
goto end;
|
||||
}
|
||||
if (data_forwarding) {
|
||||
if (!cJSON_IsBool(data_forwarding)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [data_forwarding]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *n3_dl_forwarding_tnl_list = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "n3DlForwardingTnlList");
|
||||
|
||||
OpenAPI_list_t *n3_dl_forwarding_tnl_listList;
|
||||
if (n3_dl_forwarding_tnl_list) {
|
||||
cJSON *n3_dl_forwarding_tnl_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(n3_dl_forwarding_tnl_list)) {
|
||||
if (n3_dl_forwarding_tnl_list) {
|
||||
cJSON *n3_dl_forwarding_tnl_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(n3_dl_forwarding_tnl_list)){
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n3_dl_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
n3_dl_forwarding_tnl_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(n3_dl_forwarding_tnl_list_local_nonprimitive, n3_dl_forwarding_tnl_list ) {
|
||||
if (!cJSON_IsObject(n3_dl_forwarding_tnl_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n3_dl_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_indirect_data_forwarding_tunnel_info_t *n3_dl_forwarding_tnl_listItem = OpenAPI_indirect_data_forwarding_tunnel_info_parseFromJSON(n3_dl_forwarding_tnl_list_local_nonprimitive);
|
||||
|
||||
n3_dl_forwarding_tnl_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(n3_dl_forwarding_tnl_list_local_nonprimitive, n3_dl_forwarding_tnl_list ) {
|
||||
if (!cJSON_IsObject(n3_dl_forwarding_tnl_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n3_dl_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_indirect_data_forwarding_tunnel_info_t *n3_dl_forwarding_tnl_listItem = OpenAPI_indirect_data_forwarding_tunnel_info_parseFromJSON(n3_dl_forwarding_tnl_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(n3_dl_forwarding_tnl_listList, n3_dl_forwarding_tnl_listItem);
|
||||
}
|
||||
OpenAPI_list_add(n3_dl_forwarding_tnl_listList, n3_dl_forwarding_tnl_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *n3_ul_forwarding_tnl_list = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "n3UlForwardingTnlList");
|
||||
|
||||
OpenAPI_list_t *n3_ul_forwarding_tnl_listList;
|
||||
if (n3_ul_forwarding_tnl_list) {
|
||||
cJSON *n3_ul_forwarding_tnl_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(n3_ul_forwarding_tnl_list)) {
|
||||
if (n3_ul_forwarding_tnl_list) {
|
||||
cJSON *n3_ul_forwarding_tnl_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(n3_ul_forwarding_tnl_list)){
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n3_ul_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
n3_ul_forwarding_tnl_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(n3_ul_forwarding_tnl_list_local_nonprimitive, n3_ul_forwarding_tnl_list ) {
|
||||
if (!cJSON_IsObject(n3_ul_forwarding_tnl_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n3_ul_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_indirect_data_forwarding_tunnel_info_t *n3_ul_forwarding_tnl_listItem = OpenAPI_indirect_data_forwarding_tunnel_info_parseFromJSON(n3_ul_forwarding_tnl_list_local_nonprimitive);
|
||||
|
||||
n3_ul_forwarding_tnl_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(n3_ul_forwarding_tnl_list_local_nonprimitive, n3_ul_forwarding_tnl_list ) {
|
||||
if (!cJSON_IsObject(n3_ul_forwarding_tnl_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [n3_ul_forwarding_tnl_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_indirect_data_forwarding_tunnel_info_t *n3_ul_forwarding_tnl_listItem = OpenAPI_indirect_data_forwarding_tunnel_info_parseFromJSON(n3_ul_forwarding_tnl_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(n3_ul_forwarding_tnl_listList, n3_ul_forwarding_tnl_listItem);
|
||||
}
|
||||
OpenAPI_list_add(n3_ul_forwarding_tnl_listList, n3_ul_forwarding_tnl_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *cause = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "cause");
|
||||
|
||||
OpenAPI_cause_e causeVariable;
|
||||
if (cause) {
|
||||
if (!cJSON_IsString(cause)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
causeVariable = OpenAPI_cause_FromString(cause->valuestring);
|
||||
if (cause) {
|
||||
if (!cJSON_IsString(cause)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
causeVariable = OpenAPI_cause_FromString(cause->valuestring);
|
||||
}
|
||||
|
||||
cJSON *ma_accepted_ind = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "maAcceptedInd");
|
||||
|
||||
if (ma_accepted_ind) {
|
||||
if (!cJSON_IsBool(ma_accepted_ind)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [ma_accepted_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (ma_accepted_ind) {
|
||||
if (!cJSON_IsBool(ma_accepted_ind)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [ma_accepted_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *forwarding_f_teid = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "forwardingFTeid");
|
||||
|
||||
if (forwarding_f_teid) {
|
||||
if (!cJSON_IsNumber(forwarding_f_teid)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [forwarding_f_teid]");
|
||||
goto end;
|
||||
}
|
||||
if (forwarding_f_teid) {
|
||||
if (!cJSON_IsNumber(forwarding_f_teid)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [forwarding_f_teid]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *forwarding_bearer_contexts = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "forwardingBearerContexts");
|
||||
|
||||
OpenAPI_list_t *forwarding_bearer_contextsList;
|
||||
if (forwarding_bearer_contexts) {
|
||||
cJSON *forwarding_bearer_contexts_local;
|
||||
if (!cJSON_IsArray(forwarding_bearer_contexts)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
forwarding_bearer_contextsList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(forwarding_bearer_contexts_local, forwarding_bearer_contexts) {
|
||||
if (!cJSON_IsString(forwarding_bearer_contexts_local)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(forwarding_bearer_contextsList, ogs_strdup_or_assert(forwarding_bearer_contexts_local->valuestring));
|
||||
}
|
||||
if (forwarding_bearer_contexts) {
|
||||
cJSON *forwarding_bearer_contexts_local;
|
||||
if (!cJSON_IsArray(forwarding_bearer_contexts)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
forwarding_bearer_contextsList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(forwarding_bearer_contexts_local, forwarding_bearer_contexts) {
|
||||
if (!cJSON_IsString(forwarding_bearer_contexts_local)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [forwarding_bearer_contexts]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(forwarding_bearer_contextsList , ogs_strdup_or_assert(forwarding_bearer_contexts_local->valuestring));
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *selected_smf_id = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "selectedSmfId");
|
||||
|
||||
if (selected_smf_id) {
|
||||
if (!cJSON_IsString(selected_smf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [selected_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
if (selected_smf_id) {
|
||||
if (!cJSON_IsString(selected_smf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [selected_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *selected_old_smf_id = cJSON_GetObjectItemCaseSensitive(sm_context_updated_dataJSON, "selectedOldSmfId");
|
||||
|
||||
if (selected_old_smf_id) {
|
||||
if (!cJSON_IsString(selected_old_smf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [selected_old_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
if (selected_old_smf_id) {
|
||||
if (!cJSON_IsString(selected_old_smf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_updated_data_parseFromJSON() failed [selected_old_smf_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
sm_context_updated_data_local_var = OpenAPI_sm_context_updated_data_create (
|
||||
up_cnx_state ? up_cnx_stateVariable : 0,
|
||||
|
|
@ -620,7 +620,7 @@ OpenAPI_sm_context_updated_data_t *OpenAPI_sm_context_updated_data_parseFromJSON
|
|||
forwarding_bearer_contexts ? forwarding_bearer_contextsList : NULL,
|
||||
selected_smf_id ? ogs_strdup_or_assert(selected_smf_id->valuestring) : NULL,
|
||||
selected_old_smf_id ? ogs_strdup_or_assert(selected_old_smf_id->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return sm_context_updated_data_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue