mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +00:00
SBI updated
- openapi-generator version 5.2.0 - add priority/capacity/load in NFProfile/NFService - add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -20,7 +20,9 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_create(
|
|||
OpenAPI_user_location_t *add_ue_location,
|
||||
OpenAPI_up_cnx_state_e up_cnx_state,
|
||||
OpenAPI_ho_state_e ho_state,
|
||||
bool is_to_be_switched,
|
||||
int to_be_switched,
|
||||
bool is_failed_to_be_switched,
|
||||
int failed_to_be_switched,
|
||||
OpenAPI_ref_to_binary_data_t *n1_sm_msg,
|
||||
OpenAPI_ref_to_binary_data_t *n2_sm_info,
|
||||
|
|
@ -28,28 +30,35 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_create(
|
|||
OpenAPI_ng_ran_target_id_t *target_id,
|
||||
char *target_serving_nf_id,
|
||||
char *sm_context_status_uri,
|
||||
bool is_data_forwarding,
|
||||
int data_forwarding,
|
||||
OpenAPI_tunnel_info_t *n9_forwarding_tunnel,
|
||||
OpenAPI_list_t *n9_dl_forwarding_tnl_list,
|
||||
OpenAPI_list_t *n9_ul_forwarding_tnl_list,
|
||||
OpenAPI_list_t *eps_bearer_setup,
|
||||
OpenAPI_list_t *revoke_ebi_list,
|
||||
bool is_release,
|
||||
int release,
|
||||
OpenAPI_cause_e cause,
|
||||
OpenAPI_ng_ap_cause_t *ng_ap_cause,
|
||||
bool is__5g_mm_cause_value,
|
||||
int _5g_mm_cause_value,
|
||||
OpenAPI_snssai_t *s_nssai,
|
||||
OpenAPI_trace_data_t *trace_data,
|
||||
OpenAPI_eps_interworking_indication_e eps_interworking_ind,
|
||||
bool is_an_type_can_be_changed,
|
||||
int an_type_can_be_changed,
|
||||
OpenAPI_ref_to_binary_data_t *n2_sm_info_ext1,
|
||||
OpenAPI_n2_sm_info_type_e n2_sm_info_type_ext1,
|
||||
OpenAPI_ma_release_indication_e ma_release_ind,
|
||||
bool is_ma_nw_upgrade_ind,
|
||||
int ma_nw_upgrade_ind,
|
||||
bool is_ma_request_ind,
|
||||
int ma_request_ind,
|
||||
OpenAPI_exemption_ind_t *exemption_ind,
|
||||
char *supported_features,
|
||||
OpenAPI_mo_exp_data_counter_t *mo_exp_data_counter,
|
||||
bool is_extended_nas_sm_timer_ind,
|
||||
int extended_nas_sm_timer_ind,
|
||||
char forwarding_f_teid,
|
||||
OpenAPI_list_t *forwarding_bearer_contexts,
|
||||
|
|
@ -75,7 +84,9 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_create(
|
|||
sm_context_update_data_local_var->add_ue_location = add_ue_location;
|
||||
sm_context_update_data_local_var->up_cnx_state = up_cnx_state;
|
||||
sm_context_update_data_local_var->ho_state = ho_state;
|
||||
sm_context_update_data_local_var->is_to_be_switched = is_to_be_switched;
|
||||
sm_context_update_data_local_var->to_be_switched = to_be_switched;
|
||||
sm_context_update_data_local_var->is_failed_to_be_switched = is_failed_to_be_switched;
|
||||
sm_context_update_data_local_var->failed_to_be_switched = failed_to_be_switched;
|
||||
sm_context_update_data_local_var->n1_sm_msg = n1_sm_msg;
|
||||
sm_context_update_data_local_var->n2_sm_info = n2_sm_info;
|
||||
|
|
@ -83,28 +94,35 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_create(
|
|||
sm_context_update_data_local_var->target_id = target_id;
|
||||
sm_context_update_data_local_var->target_serving_nf_id = target_serving_nf_id;
|
||||
sm_context_update_data_local_var->sm_context_status_uri = sm_context_status_uri;
|
||||
sm_context_update_data_local_var->is_data_forwarding = is_data_forwarding;
|
||||
sm_context_update_data_local_var->data_forwarding = data_forwarding;
|
||||
sm_context_update_data_local_var->n9_forwarding_tunnel = n9_forwarding_tunnel;
|
||||
sm_context_update_data_local_var->n9_dl_forwarding_tnl_list = n9_dl_forwarding_tnl_list;
|
||||
sm_context_update_data_local_var->n9_ul_forwarding_tnl_list = n9_ul_forwarding_tnl_list;
|
||||
sm_context_update_data_local_var->eps_bearer_setup = eps_bearer_setup;
|
||||
sm_context_update_data_local_var->revoke_ebi_list = revoke_ebi_list;
|
||||
sm_context_update_data_local_var->is_release = is_release;
|
||||
sm_context_update_data_local_var->release = release;
|
||||
sm_context_update_data_local_var->cause = cause;
|
||||
sm_context_update_data_local_var->ng_ap_cause = ng_ap_cause;
|
||||
sm_context_update_data_local_var->is__5g_mm_cause_value = is__5g_mm_cause_value;
|
||||
sm_context_update_data_local_var->_5g_mm_cause_value = _5g_mm_cause_value;
|
||||
sm_context_update_data_local_var->s_nssai = s_nssai;
|
||||
sm_context_update_data_local_var->trace_data = trace_data;
|
||||
sm_context_update_data_local_var->eps_interworking_ind = eps_interworking_ind;
|
||||
sm_context_update_data_local_var->is_an_type_can_be_changed = is_an_type_can_be_changed;
|
||||
sm_context_update_data_local_var->an_type_can_be_changed = an_type_can_be_changed;
|
||||
sm_context_update_data_local_var->n2_sm_info_ext1 = n2_sm_info_ext1;
|
||||
sm_context_update_data_local_var->n2_sm_info_type_ext1 = n2_sm_info_type_ext1;
|
||||
sm_context_update_data_local_var->ma_release_ind = ma_release_ind;
|
||||
sm_context_update_data_local_var->is_ma_nw_upgrade_ind = is_ma_nw_upgrade_ind;
|
||||
sm_context_update_data_local_var->ma_nw_upgrade_ind = ma_nw_upgrade_ind;
|
||||
sm_context_update_data_local_var->is_ma_request_ind = is_ma_request_ind;
|
||||
sm_context_update_data_local_var->ma_request_ind = ma_request_ind;
|
||||
sm_context_update_data_local_var->exemption_ind = exemption_ind;
|
||||
sm_context_update_data_local_var->supported_features = supported_features;
|
||||
sm_context_update_data_local_var->mo_exp_data_counter = mo_exp_data_counter;
|
||||
sm_context_update_data_local_var->is_extended_nas_sm_timer_ind = is_extended_nas_sm_timer_ind;
|
||||
sm_context_update_data_local_var->extended_nas_sm_timer_ind = extended_nas_sm_timer_ind;
|
||||
sm_context_update_data_local_var->forwarding_f_teid = forwarding_f_teid;
|
||||
sm_context_update_data_local_var->forwarding_bearer_contexts = forwarding_bearer_contexts;
|
||||
|
|
@ -319,14 +337,14 @@ cJSON *OpenAPI_sm_context_update_data_convertToJSON(OpenAPI_sm_context_update_da
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->to_be_switched) {
|
||||
if (sm_context_update_data->is_to_be_switched) {
|
||||
if (cJSON_AddBoolToObject(item, "toBeSwitched", sm_context_update_data->to_be_switched) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [to_be_switched]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->failed_to_be_switched) {
|
||||
if (sm_context_update_data->is_failed_to_be_switched) {
|
||||
if (cJSON_AddBoolToObject(item, "failedToBeSwitched", sm_context_update_data->failed_to_be_switched) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [failed_to_be_switched]");
|
||||
goto end;
|
||||
|
|
@ -393,7 +411,7 @@ cJSON *OpenAPI_sm_context_update_data_convertToJSON(OpenAPI_sm_context_update_da
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->data_forwarding) {
|
||||
if (sm_context_update_data->is_data_forwarding) {
|
||||
if (cJSON_AddBoolToObject(item, "dataForwarding", sm_context_update_data->data_forwarding) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [data_forwarding]");
|
||||
goto end;
|
||||
|
|
@ -485,7 +503,7 @@ cJSON *OpenAPI_sm_context_update_data_convertToJSON(OpenAPI_sm_context_update_da
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->release) {
|
||||
if (sm_context_update_data->is_release) {
|
||||
if (cJSON_AddBoolToObject(item, "release", sm_context_update_data->release) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [release]");
|
||||
goto end;
|
||||
|
|
@ -512,7 +530,7 @@ cJSON *OpenAPI_sm_context_update_data_convertToJSON(OpenAPI_sm_context_update_da
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->_5g_mm_cause_value) {
|
||||
if (sm_context_update_data->is__5g_mm_cause_value) {
|
||||
if (cJSON_AddNumberToObject(item, "5gMmCauseValue", sm_context_update_data->_5g_mm_cause_value) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [_5g_mm_cause_value]");
|
||||
goto end;
|
||||
|
|
@ -552,7 +570,7 @@ cJSON *OpenAPI_sm_context_update_data_convertToJSON(OpenAPI_sm_context_update_da
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->an_type_can_be_changed) {
|
||||
if (sm_context_update_data->is_an_type_can_be_changed) {
|
||||
if (cJSON_AddBoolToObject(item, "anTypeCanBeChanged", sm_context_update_data->an_type_can_be_changed) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [an_type_can_be_changed]");
|
||||
goto end;
|
||||
|
|
@ -586,14 +604,14 @@ cJSON *OpenAPI_sm_context_update_data_convertToJSON(OpenAPI_sm_context_update_da
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->ma_nw_upgrade_ind) {
|
||||
if (sm_context_update_data->is_ma_nw_upgrade_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "maNwUpgradeInd", sm_context_update_data->ma_nw_upgrade_ind) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [ma_nw_upgrade_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->ma_request_ind) {
|
||||
if (sm_context_update_data->is_ma_request_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "maRequestInd", sm_context_update_data->ma_request_ind) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [ma_request_ind]");
|
||||
goto end;
|
||||
|
|
@ -633,7 +651,7 @@ cJSON *OpenAPI_sm_context_update_data_convertToJSON(OpenAPI_sm_context_update_da
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_update_data->extended_nas_sm_timer_ind) {
|
||||
if (sm_context_update_data->is_extended_nas_sm_timer_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "extendedNasSmTimerInd", sm_context_update_data->extended_nas_sm_timer_ind) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed [extended_nas_sm_timer_ind]");
|
||||
goto end;
|
||||
|
|
@ -685,7 +703,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
OpenAPI_sm_context_update_data_t *sm_context_update_data_local_var = NULL;
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
|
@ -694,7 +712,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *serving_nf_id = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "servingNfId");
|
||||
|
||||
if (serving_nf_id) {
|
||||
if (serving_nf_id) {
|
||||
if (!cJSON_IsString(serving_nf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [serving_nf_id]");
|
||||
goto end;
|
||||
|
|
@ -704,21 +722,21 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *guami = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "guami");
|
||||
|
||||
OpenAPI_guami_t *guami_local_nonprim = NULL;
|
||||
if (guami) {
|
||||
if (guami) {
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
}
|
||||
|
||||
cJSON *serving_network = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "servingNetwork");
|
||||
|
||||
OpenAPI_plmn_id_nid_t *serving_network_local_nonprim = NULL;
|
||||
if (serving_network) {
|
||||
if (serving_network) {
|
||||
serving_network_local_nonprim = OpenAPI_plmn_id_nid_parseFromJSON(serving_network);
|
||||
}
|
||||
|
||||
cJSON *backup_amf_info = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "backupAmfInfo");
|
||||
|
||||
OpenAPI_list_t *backup_amf_infoList;
|
||||
if (backup_amf_info) {
|
||||
if (backup_amf_info) {
|
||||
cJSON *backup_amf_info_local_nonprimitive;
|
||||
if (!cJSON_IsArray(backup_amf_info)){
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [backup_amf_info]");
|
||||
|
|
@ -741,7 +759,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *an_type = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "anType");
|
||||
|
||||
OpenAPI_access_type_e an_typeVariable;
|
||||
if (an_type) {
|
||||
if (an_type) {
|
||||
if (!cJSON_IsString(an_type)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [an_type]");
|
||||
goto end;
|
||||
|
|
@ -752,7 +770,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *additional_an_type = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "additionalAnType");
|
||||
|
||||
OpenAPI_access_type_e additional_an_typeVariable;
|
||||
if (additional_an_type) {
|
||||
if (additional_an_type) {
|
||||
if (!cJSON_IsString(additional_an_type)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [additional_an_type]");
|
||||
goto end;
|
||||
|
|
@ -763,7 +781,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *an_type_to_reactivate = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "anTypeToReactivate");
|
||||
|
||||
OpenAPI_access_type_e an_type_to_reactivateVariable;
|
||||
if (an_type_to_reactivate) {
|
||||
if (an_type_to_reactivate) {
|
||||
if (!cJSON_IsString(an_type_to_reactivate)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [an_type_to_reactivate]");
|
||||
goto end;
|
||||
|
|
@ -774,7 +792,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *rat_type = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "ratType");
|
||||
|
||||
OpenAPI_rat_type_e rat_typeVariable;
|
||||
if (rat_type) {
|
||||
if (rat_type) {
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
|
|
@ -785,7 +803,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *presence_in_ladn = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "presenceInLadn");
|
||||
|
||||
OpenAPI_presence_state_e presence_in_ladnVariable;
|
||||
if (presence_in_ladn) {
|
||||
if (presence_in_ladn) {
|
||||
if (!cJSON_IsString(presence_in_ladn)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [presence_in_ladn]");
|
||||
goto end;
|
||||
|
|
@ -796,13 +814,13 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *ue_location = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "ueLocation");
|
||||
|
||||
OpenAPI_user_location_t *ue_location_local_nonprim = NULL;
|
||||
if (ue_location) {
|
||||
if (ue_location) {
|
||||
ue_location_local_nonprim = OpenAPI_user_location_parseFromJSON(ue_location);
|
||||
}
|
||||
|
||||
cJSON *ue_time_zone = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "ueTimeZone");
|
||||
|
||||
if (ue_time_zone) {
|
||||
if (ue_time_zone) {
|
||||
if (!cJSON_IsString(ue_time_zone)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [ue_time_zone]");
|
||||
goto end;
|
||||
|
|
@ -812,14 +830,14 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *add_ue_location = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "addUeLocation");
|
||||
|
||||
OpenAPI_user_location_t *add_ue_location_local_nonprim = NULL;
|
||||
if (add_ue_location) {
|
||||
if (add_ue_location) {
|
||||
add_ue_location_local_nonprim = OpenAPI_user_location_parseFromJSON(add_ue_location);
|
||||
}
|
||||
|
||||
cJSON *up_cnx_state = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "upCnxState");
|
||||
|
||||
OpenAPI_up_cnx_state_e up_cnx_stateVariable;
|
||||
if (up_cnx_state) {
|
||||
if (up_cnx_state) {
|
||||
if (!cJSON_IsString(up_cnx_state)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [up_cnx_state]");
|
||||
goto end;
|
||||
|
|
@ -830,7 +848,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *ho_state = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "hoState");
|
||||
|
||||
OpenAPI_ho_state_e ho_stateVariable;
|
||||
if (ho_state) {
|
||||
if (ho_state) {
|
||||
if (!cJSON_IsString(ho_state)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [ho_state]");
|
||||
goto end;
|
||||
|
|
@ -840,7 +858,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *to_be_switched = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "toBeSwitched");
|
||||
|
||||
if (to_be_switched) {
|
||||
if (to_be_switched) {
|
||||
if (!cJSON_IsBool(to_be_switched)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [to_be_switched]");
|
||||
goto end;
|
||||
|
|
@ -849,7 +867,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *failed_to_be_switched = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "failedToBeSwitched");
|
||||
|
||||
if (failed_to_be_switched) {
|
||||
if (failed_to_be_switched) {
|
||||
if (!cJSON_IsBool(failed_to_be_switched)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [failed_to_be_switched]");
|
||||
goto end;
|
||||
|
|
@ -859,21 +877,21 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *n1_sm_msg = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "n1SmMsg");
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *n1_sm_msg_local_nonprim = NULL;
|
||||
if (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_update_dataJSON, "n2SmInfo");
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *n2_sm_info_local_nonprim = NULL;
|
||||
if (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_update_dataJSON, "n2SmInfoType");
|
||||
|
||||
OpenAPI_n2_sm_info_type_e n2_sm_info_typeVariable;
|
||||
if (n2_sm_info_type) {
|
||||
if (n2_sm_info_type) {
|
||||
if (!cJSON_IsString(n2_sm_info_type)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [n2_sm_info_type]");
|
||||
goto end;
|
||||
|
|
@ -884,13 +902,13 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *target_id = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "targetId");
|
||||
|
||||
OpenAPI_ng_ran_target_id_t *target_id_local_nonprim = NULL;
|
||||
if (target_id) {
|
||||
if (target_id) {
|
||||
target_id_local_nonprim = OpenAPI_ng_ran_target_id_parseFromJSON(target_id);
|
||||
}
|
||||
|
||||
cJSON *target_serving_nf_id = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "targetServingNfId");
|
||||
|
||||
if (target_serving_nf_id) {
|
||||
if (target_serving_nf_id) {
|
||||
if (!cJSON_IsString(target_serving_nf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [target_serving_nf_id]");
|
||||
goto end;
|
||||
|
|
@ -899,7 +917,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *sm_context_status_uri = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "smContextStatusUri");
|
||||
|
||||
if (sm_context_status_uri) {
|
||||
if (sm_context_status_uri) {
|
||||
if (!cJSON_IsString(sm_context_status_uri)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [sm_context_status_uri]");
|
||||
goto end;
|
||||
|
|
@ -908,7 +926,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *data_forwarding = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "dataForwarding");
|
||||
|
||||
if (data_forwarding) {
|
||||
if (data_forwarding) {
|
||||
if (!cJSON_IsBool(data_forwarding)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [data_forwarding]");
|
||||
goto end;
|
||||
|
|
@ -918,14 +936,14 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *n9_forwarding_tunnel = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "n9ForwardingTunnel");
|
||||
|
||||
OpenAPI_tunnel_info_t *n9_forwarding_tunnel_local_nonprim = NULL;
|
||||
if (n9_forwarding_tunnel) {
|
||||
if (n9_forwarding_tunnel) {
|
||||
n9_forwarding_tunnel_local_nonprim = OpenAPI_tunnel_info_parseFromJSON(n9_forwarding_tunnel);
|
||||
}
|
||||
|
||||
cJSON *n9_dl_forwarding_tnl_list = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "n9DlForwardingTnlList");
|
||||
|
||||
OpenAPI_list_t *n9_dl_forwarding_tnl_listList;
|
||||
if (n9_dl_forwarding_tnl_list) {
|
||||
if (n9_dl_forwarding_tnl_list) {
|
||||
cJSON *n9_dl_forwarding_tnl_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(n9_dl_forwarding_tnl_list)){
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [n9_dl_forwarding_tnl_list]");
|
||||
|
|
@ -948,7 +966,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *n9_ul_forwarding_tnl_list = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "n9UlForwardingTnlList");
|
||||
|
||||
OpenAPI_list_t *n9_ul_forwarding_tnl_listList;
|
||||
if (n9_ul_forwarding_tnl_list) {
|
||||
if (n9_ul_forwarding_tnl_list) {
|
||||
cJSON *n9_ul_forwarding_tnl_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(n9_ul_forwarding_tnl_list)){
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [n9_ul_forwarding_tnl_list]");
|
||||
|
|
@ -971,7 +989,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *eps_bearer_setup = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "epsBearerSetup");
|
||||
|
||||
OpenAPI_list_t *eps_bearer_setupList;
|
||||
if (eps_bearer_setup) {
|
||||
if (eps_bearer_setup) {
|
||||
cJSON *eps_bearer_setup_local;
|
||||
if (!cJSON_IsArray(eps_bearer_setup)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [eps_bearer_setup]");
|
||||
|
|
@ -985,13 +1003,13 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(eps_bearer_setupList , ogs_strdup_or_assert(eps_bearer_setup_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *revoke_ebi_list = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "revokeEbiList");
|
||||
|
||||
OpenAPI_list_t *revoke_ebi_listList;
|
||||
if (revoke_ebi_list) {
|
||||
if (revoke_ebi_list) {
|
||||
cJSON *revoke_ebi_list_local;
|
||||
if (!cJSON_IsArray(revoke_ebi_list)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [revoke_ebi_list]");
|
||||
|
|
@ -1005,12 +1023,12 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(revoke_ebi_listList , &revoke_ebi_list_local->valuedouble);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *release = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "release");
|
||||
|
||||
if (release) {
|
||||
if (release) {
|
||||
if (!cJSON_IsBool(release)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [release]");
|
||||
goto end;
|
||||
|
|
@ -1020,7 +1038,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *cause = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "cause");
|
||||
|
||||
OpenAPI_cause_e causeVariable;
|
||||
if (cause) {
|
||||
if (cause) {
|
||||
if (!cJSON_IsString(cause)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [cause]");
|
||||
goto end;
|
||||
|
|
@ -1031,13 +1049,13 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *ng_ap_cause = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "ngApCause");
|
||||
|
||||
OpenAPI_ng_ap_cause_t *ng_ap_cause_local_nonprim = NULL;
|
||||
if (ng_ap_cause) {
|
||||
if (ng_ap_cause) {
|
||||
ng_ap_cause_local_nonprim = OpenAPI_ng_ap_cause_parseFromJSON(ng_ap_cause);
|
||||
}
|
||||
|
||||
cJSON *_5g_mm_cause_value = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "5gMmCauseValue");
|
||||
|
||||
if (_5g_mm_cause_value) {
|
||||
if (_5g_mm_cause_value) {
|
||||
if (!cJSON_IsNumber(_5g_mm_cause_value)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [_5g_mm_cause_value]");
|
||||
goto end;
|
||||
|
|
@ -1047,21 +1065,21 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *s_nssai = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "sNssai");
|
||||
|
||||
OpenAPI_snssai_t *s_nssai_local_nonprim = NULL;
|
||||
if (s_nssai) {
|
||||
if (s_nssai) {
|
||||
s_nssai_local_nonprim = OpenAPI_snssai_parseFromJSON(s_nssai);
|
||||
}
|
||||
|
||||
cJSON *trace_data = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "traceData");
|
||||
|
||||
OpenAPI_trace_data_t *trace_data_local_nonprim = NULL;
|
||||
if (trace_data) {
|
||||
if (trace_data) {
|
||||
trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
|
||||
}
|
||||
|
||||
cJSON *eps_interworking_ind = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "epsInterworkingInd");
|
||||
|
||||
OpenAPI_eps_interworking_indication_e eps_interworking_indVariable;
|
||||
if (eps_interworking_ind) {
|
||||
if (eps_interworking_ind) {
|
||||
if (!cJSON_IsString(eps_interworking_ind)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [eps_interworking_ind]");
|
||||
goto end;
|
||||
|
|
@ -1071,7 +1089,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *an_type_can_be_changed = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "anTypeCanBeChanged");
|
||||
|
||||
if (an_type_can_be_changed) {
|
||||
if (an_type_can_be_changed) {
|
||||
if (!cJSON_IsBool(an_type_can_be_changed)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [an_type_can_be_changed]");
|
||||
goto end;
|
||||
|
|
@ -1081,14 +1099,14 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *n2_sm_info_ext1 = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "n2SmInfoExt1");
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *n2_sm_info_ext1_local_nonprim = NULL;
|
||||
if (n2_sm_info_ext1) {
|
||||
if (n2_sm_info_ext1) {
|
||||
n2_sm_info_ext1_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n2_sm_info_ext1);
|
||||
}
|
||||
|
||||
cJSON *n2_sm_info_type_ext1 = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "n2SmInfoTypeExt1");
|
||||
|
||||
OpenAPI_n2_sm_info_type_e n2_sm_info_type_ext1Variable;
|
||||
if (n2_sm_info_type_ext1) {
|
||||
if (n2_sm_info_type_ext1) {
|
||||
if (!cJSON_IsString(n2_sm_info_type_ext1)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [n2_sm_info_type_ext1]");
|
||||
goto end;
|
||||
|
|
@ -1099,7 +1117,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *ma_release_ind = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "maReleaseInd");
|
||||
|
||||
OpenAPI_ma_release_indication_e ma_release_indVariable;
|
||||
if (ma_release_ind) {
|
||||
if (ma_release_ind) {
|
||||
if (!cJSON_IsString(ma_release_ind)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [ma_release_ind]");
|
||||
goto end;
|
||||
|
|
@ -1109,7 +1127,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *ma_nw_upgrade_ind = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "maNwUpgradeInd");
|
||||
|
||||
if (ma_nw_upgrade_ind) {
|
||||
if (ma_nw_upgrade_ind) {
|
||||
if (!cJSON_IsBool(ma_nw_upgrade_ind)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [ma_nw_upgrade_ind]");
|
||||
goto end;
|
||||
|
|
@ -1118,7 +1136,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *ma_request_ind = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "maRequestInd");
|
||||
|
||||
if (ma_request_ind) {
|
||||
if (ma_request_ind) {
|
||||
if (!cJSON_IsBool(ma_request_ind)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [ma_request_ind]");
|
||||
goto end;
|
||||
|
|
@ -1128,13 +1146,13 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *exemption_ind = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "exemptionInd");
|
||||
|
||||
OpenAPI_exemption_ind_t *exemption_ind_local_nonprim = NULL;
|
||||
if (exemption_ind) {
|
||||
if (exemption_ind) {
|
||||
exemption_ind_local_nonprim = OpenAPI_exemption_ind_parseFromJSON(exemption_ind);
|
||||
}
|
||||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
|
@ -1144,13 +1162,13 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *mo_exp_data_counter = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "moExpDataCounter");
|
||||
|
||||
OpenAPI_mo_exp_data_counter_t *mo_exp_data_counter_local_nonprim = NULL;
|
||||
if (mo_exp_data_counter) {
|
||||
if (mo_exp_data_counter) {
|
||||
mo_exp_data_counter_local_nonprim = OpenAPI_mo_exp_data_counter_parseFromJSON(mo_exp_data_counter);
|
||||
}
|
||||
|
||||
cJSON *extended_nas_sm_timer_ind = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "extendedNasSmTimerInd");
|
||||
|
||||
if (extended_nas_sm_timer_ind) {
|
||||
if (extended_nas_sm_timer_ind) {
|
||||
if (!cJSON_IsBool(extended_nas_sm_timer_ind)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [extended_nas_sm_timer_ind]");
|
||||
goto end;
|
||||
|
|
@ -1159,7 +1177,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
|
||||
cJSON *forwarding_f_teid = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "forwardingFTeid");
|
||||
|
||||
if (forwarding_f_teid) {
|
||||
if (forwarding_f_teid) {
|
||||
if (!cJSON_IsNumber(forwarding_f_teid)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [forwarding_f_teid]");
|
||||
goto end;
|
||||
|
|
@ -1169,7 +1187,7 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
cJSON *forwarding_bearer_contexts = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "forwardingBearerContexts");
|
||||
|
||||
OpenAPI_list_t *forwarding_bearer_contextsList;
|
||||
if (forwarding_bearer_contexts) {
|
||||
if (forwarding_bearer_contexts) {
|
||||
cJSON *forwarding_bearer_contexts_local;
|
||||
if (!cJSON_IsArray(forwarding_bearer_contexts)) {
|
||||
ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed [forwarding_bearer_contexts]");
|
||||
|
|
@ -1183,13 +1201,13 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(forwarding_bearer_contextsList , ogs_strdup_or_assert(forwarding_bearer_contexts_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ddn_failure_subs = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "ddnFailureSubs");
|
||||
|
||||
OpenAPI_ddn_failure_subs_t *ddn_failure_subs_local_nonprim = NULL;
|
||||
if (ddn_failure_subs) {
|
||||
if (ddn_failure_subs) {
|
||||
ddn_failure_subs_local_nonprim = OpenAPI_ddn_failure_subs_parseFromJSON(ddn_failure_subs);
|
||||
}
|
||||
|
||||
|
|
@ -1209,7 +1227,9 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
add_ue_location ? add_ue_location_local_nonprim : NULL,
|
||||
up_cnx_state ? up_cnx_stateVariable : 0,
|
||||
ho_state ? ho_stateVariable : 0,
|
||||
to_be_switched ? true : false,
|
||||
to_be_switched ? to_be_switched->valueint : 0,
|
||||
failed_to_be_switched ? true : false,
|
||||
failed_to_be_switched ? failed_to_be_switched->valueint : 0,
|
||||
n1_sm_msg ? n1_sm_msg_local_nonprim : NULL,
|
||||
n2_sm_info ? n2_sm_info_local_nonprim : NULL,
|
||||
|
|
@ -1217,28 +1237,35 @@ OpenAPI_sm_context_update_data_t *OpenAPI_sm_context_update_data_parseFromJSON(c
|
|||
target_id ? target_id_local_nonprim : NULL,
|
||||
target_serving_nf_id ? ogs_strdup_or_assert(target_serving_nf_id->valuestring) : NULL,
|
||||
sm_context_status_uri ? ogs_strdup_or_assert(sm_context_status_uri->valuestring) : NULL,
|
||||
data_forwarding ? true : false,
|
||||
data_forwarding ? data_forwarding->valueint : 0,
|
||||
n9_forwarding_tunnel ? n9_forwarding_tunnel_local_nonprim : NULL,
|
||||
n9_dl_forwarding_tnl_list ? n9_dl_forwarding_tnl_listList : NULL,
|
||||
n9_ul_forwarding_tnl_list ? n9_ul_forwarding_tnl_listList : NULL,
|
||||
eps_bearer_setup ? eps_bearer_setupList : NULL,
|
||||
revoke_ebi_list ? revoke_ebi_listList : NULL,
|
||||
release ? true : false,
|
||||
release ? release->valueint : 0,
|
||||
cause ? causeVariable : 0,
|
||||
ng_ap_cause ? ng_ap_cause_local_nonprim : NULL,
|
||||
_5g_mm_cause_value ? true : false,
|
||||
_5g_mm_cause_value ? _5g_mm_cause_value->valuedouble : 0,
|
||||
s_nssai ? s_nssai_local_nonprim : NULL,
|
||||
trace_data ? trace_data_local_nonprim : NULL,
|
||||
eps_interworking_ind ? eps_interworking_indVariable : 0,
|
||||
an_type_can_be_changed ? true : false,
|
||||
an_type_can_be_changed ? an_type_can_be_changed->valueint : 0,
|
||||
n2_sm_info_ext1 ? n2_sm_info_ext1_local_nonprim : NULL,
|
||||
n2_sm_info_type_ext1 ? n2_sm_info_type_ext1Variable : 0,
|
||||
ma_release_ind ? ma_release_indVariable : 0,
|
||||
ma_nw_upgrade_ind ? true : false,
|
||||
ma_nw_upgrade_ind ? ma_nw_upgrade_ind->valueint : 0,
|
||||
ma_request_ind ? true : false,
|
||||
ma_request_ind ? ma_request_ind->valueint : 0,
|
||||
exemption_ind ? exemption_ind_local_nonprim : NULL,
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
|
||||
mo_exp_data_counter ? mo_exp_data_counter_local_nonprim : NULL,
|
||||
extended_nas_sm_timer_ind ? true : false,
|
||||
extended_nas_sm_timer_ind ? extended_nas_sm_timer_ind->valueint : 0,
|
||||
forwarding_f_teid ? forwarding_f_teid->valueint : 0,
|
||||
forwarding_bearer_contexts ? forwarding_bearer_contextsList : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue