mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +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
|
|
@ -6,8 +6,10 @@
|
|||
|
||||
OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_create(
|
||||
char *supi,
|
||||
bool is_unauthenticated_supi,
|
||||
int unauthenticated_supi,
|
||||
char *pei,
|
||||
bool is_pdu_session_id,
|
||||
int pdu_session_id,
|
||||
char *dnn,
|
||||
char *selected_dnn,
|
||||
|
|
@ -38,8 +40,10 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_create(
|
|||
char *pcf_id,
|
||||
char *pcf_group_id,
|
||||
char *pcf_set_id,
|
||||
bool is_ho_preparation_indication,
|
||||
int ho_preparation_indication,
|
||||
OpenAPI_dnn_selection_mode_e sel_mode,
|
||||
bool is_always_on_requested,
|
||||
int always_on_requested,
|
||||
char *udm_group_id,
|
||||
char *routing_indicator,
|
||||
|
|
@ -49,22 +53,29 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_create(
|
|||
char *recovery_time,
|
||||
OpenAPI_roaming_charging_profile_t *roaming_charging_profile,
|
||||
char *charging_id,
|
||||
bool is_old_pdu_session_id,
|
||||
int old_pdu_session_id,
|
||||
char *eps_bearer_ctx_status,
|
||||
char *amf_nf_id,
|
||||
OpenAPI_guami_t *guami,
|
||||
OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate_ul,
|
||||
OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate_dl,
|
||||
bool is_cp_ciot_enabled,
|
||||
int cp_ciot_enabled,
|
||||
bool is_cp_only_ind,
|
||||
int cp_only_ind,
|
||||
bool is_invoke_nef,
|
||||
int invoke_nef,
|
||||
bool is_ma_request_ind,
|
||||
int ma_request_ind,
|
||||
bool is_ma_nw_upgrade_ind,
|
||||
int ma_nw_upgrade_ind,
|
||||
OpenAPI_list_t *dnai_list,
|
||||
OpenAPI_presence_state_e presence_in_ladn,
|
||||
OpenAPI_list_t *secondary_rat_usage_info,
|
||||
OpenAPI_small_data_rate_status_t *small_data_rate_status,
|
||||
OpenAPI_apn_rate_status_t *apn_rate_status,
|
||||
bool is_dl_serving_plmn_rate_ctl,
|
||||
int dl_serving_plmn_rate_ctl,
|
||||
OpenAPI_up_security_info_t *up_security_info,
|
||||
OpenAPI_vplmn_qos_t *vplmn_qos
|
||||
|
|
@ -75,8 +86,10 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_create(
|
|||
return NULL;
|
||||
}
|
||||
pdu_session_create_data_local_var->supi = supi;
|
||||
pdu_session_create_data_local_var->is_unauthenticated_supi = is_unauthenticated_supi;
|
||||
pdu_session_create_data_local_var->unauthenticated_supi = unauthenticated_supi;
|
||||
pdu_session_create_data_local_var->pei = pei;
|
||||
pdu_session_create_data_local_var->is_pdu_session_id = is_pdu_session_id;
|
||||
pdu_session_create_data_local_var->pdu_session_id = pdu_session_id;
|
||||
pdu_session_create_data_local_var->dnn = dnn;
|
||||
pdu_session_create_data_local_var->selected_dnn = selected_dnn;
|
||||
|
|
@ -107,8 +120,10 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_create(
|
|||
pdu_session_create_data_local_var->pcf_id = pcf_id;
|
||||
pdu_session_create_data_local_var->pcf_group_id = pcf_group_id;
|
||||
pdu_session_create_data_local_var->pcf_set_id = pcf_set_id;
|
||||
pdu_session_create_data_local_var->is_ho_preparation_indication = is_ho_preparation_indication;
|
||||
pdu_session_create_data_local_var->ho_preparation_indication = ho_preparation_indication;
|
||||
pdu_session_create_data_local_var->sel_mode = sel_mode;
|
||||
pdu_session_create_data_local_var->is_always_on_requested = is_always_on_requested;
|
||||
pdu_session_create_data_local_var->always_on_requested = always_on_requested;
|
||||
pdu_session_create_data_local_var->udm_group_id = udm_group_id;
|
||||
pdu_session_create_data_local_var->routing_indicator = routing_indicator;
|
||||
|
|
@ -118,22 +133,29 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_create(
|
|||
pdu_session_create_data_local_var->recovery_time = recovery_time;
|
||||
pdu_session_create_data_local_var->roaming_charging_profile = roaming_charging_profile;
|
||||
pdu_session_create_data_local_var->charging_id = charging_id;
|
||||
pdu_session_create_data_local_var->is_old_pdu_session_id = is_old_pdu_session_id;
|
||||
pdu_session_create_data_local_var->old_pdu_session_id = old_pdu_session_id;
|
||||
pdu_session_create_data_local_var->eps_bearer_ctx_status = eps_bearer_ctx_status;
|
||||
pdu_session_create_data_local_var->amf_nf_id = amf_nf_id;
|
||||
pdu_session_create_data_local_var->guami = guami;
|
||||
pdu_session_create_data_local_var->max_integrity_protected_data_rate_ul = max_integrity_protected_data_rate_ul;
|
||||
pdu_session_create_data_local_var->max_integrity_protected_data_rate_dl = max_integrity_protected_data_rate_dl;
|
||||
pdu_session_create_data_local_var->is_cp_ciot_enabled = is_cp_ciot_enabled;
|
||||
pdu_session_create_data_local_var->cp_ciot_enabled = cp_ciot_enabled;
|
||||
pdu_session_create_data_local_var->is_cp_only_ind = is_cp_only_ind;
|
||||
pdu_session_create_data_local_var->cp_only_ind = cp_only_ind;
|
||||
pdu_session_create_data_local_var->is_invoke_nef = is_invoke_nef;
|
||||
pdu_session_create_data_local_var->invoke_nef = invoke_nef;
|
||||
pdu_session_create_data_local_var->is_ma_request_ind = is_ma_request_ind;
|
||||
pdu_session_create_data_local_var->ma_request_ind = ma_request_ind;
|
||||
pdu_session_create_data_local_var->is_ma_nw_upgrade_ind = is_ma_nw_upgrade_ind;
|
||||
pdu_session_create_data_local_var->ma_nw_upgrade_ind = ma_nw_upgrade_ind;
|
||||
pdu_session_create_data_local_var->dnai_list = dnai_list;
|
||||
pdu_session_create_data_local_var->presence_in_ladn = presence_in_ladn;
|
||||
pdu_session_create_data_local_var->secondary_rat_usage_info = secondary_rat_usage_info;
|
||||
pdu_session_create_data_local_var->small_data_rate_status = small_data_rate_status;
|
||||
pdu_session_create_data_local_var->apn_rate_status = apn_rate_status;
|
||||
pdu_session_create_data_local_var->is_dl_serving_plmn_rate_ctl = is_dl_serving_plmn_rate_ctl;
|
||||
pdu_session_create_data_local_var->dl_serving_plmn_rate_ctl = dl_serving_plmn_rate_ctl;
|
||||
pdu_session_create_data_local_var->up_security_info = up_security_info;
|
||||
pdu_session_create_data_local_var->vplmn_qos = vplmn_qos;
|
||||
|
|
@ -218,7 +240,7 @@ cJSON *OpenAPI_pdu_session_create_data_convertToJSON(OpenAPI_pdu_session_create_
|
|||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->unauthenticated_supi) {
|
||||
if (pdu_session_create_data->is_unauthenticated_supi) {
|
||||
if (cJSON_AddBoolToObject(item, "unauthenticatedSupi", pdu_session_create_data->unauthenticated_supi) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [unauthenticated_supi]");
|
||||
goto end;
|
||||
|
|
@ -232,7 +254,7 @@ cJSON *OpenAPI_pdu_session_create_data_convertToJSON(OpenAPI_pdu_session_create_
|
|||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->pdu_session_id) {
|
||||
if (pdu_session_create_data->is_pdu_session_id) {
|
||||
if (cJSON_AddNumberToObject(item, "pduSessionId", pdu_session_create_data->pdu_session_id) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
|
|
@ -505,7 +527,7 @@ cJSON *OpenAPI_pdu_session_create_data_convertToJSON(OpenAPI_pdu_session_create_
|
|||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->ho_preparation_indication) {
|
||||
if (pdu_session_create_data->is_ho_preparation_indication) {
|
||||
if (cJSON_AddBoolToObject(item, "hoPreparationIndication", pdu_session_create_data->ho_preparation_indication) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [ho_preparation_indication]");
|
||||
goto end;
|
||||
|
|
@ -519,7 +541,7 @@ cJSON *OpenAPI_pdu_session_create_data_convertToJSON(OpenAPI_pdu_session_create_
|
|||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->always_on_requested) {
|
||||
if (pdu_session_create_data->is_always_on_requested) {
|
||||
if (cJSON_AddBoolToObject(item, "alwaysOnRequested", pdu_session_create_data->always_on_requested) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [always_on_requested]");
|
||||
goto end;
|
||||
|
|
@ -588,7 +610,7 @@ cJSON *OpenAPI_pdu_session_create_data_convertToJSON(OpenAPI_pdu_session_create_
|
|||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->old_pdu_session_id) {
|
||||
if (pdu_session_create_data->is_old_pdu_session_id) {
|
||||
if (cJSON_AddNumberToObject(item, "oldPduSessionId", pdu_session_create_data->old_pdu_session_id) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [old_pdu_session_id]");
|
||||
goto end;
|
||||
|
|
@ -636,35 +658,35 @@ cJSON *OpenAPI_pdu_session_create_data_convertToJSON(OpenAPI_pdu_session_create_
|
|||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->cp_ciot_enabled) {
|
||||
if (pdu_session_create_data->is_cp_ciot_enabled) {
|
||||
if (cJSON_AddBoolToObject(item, "cpCiotEnabled", pdu_session_create_data->cp_ciot_enabled) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [cp_ciot_enabled]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->cp_only_ind) {
|
||||
if (pdu_session_create_data->is_cp_only_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "cpOnlyInd", pdu_session_create_data->cp_only_ind) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [cp_only_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->invoke_nef) {
|
||||
if (pdu_session_create_data->is_invoke_nef) {
|
||||
if (cJSON_AddBoolToObject(item, "invokeNef", pdu_session_create_data->invoke_nef) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [invoke_nef]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->ma_request_ind) {
|
||||
if (pdu_session_create_data->is_ma_request_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "maRequestInd", pdu_session_create_data->ma_request_ind) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [ma_request_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->ma_nw_upgrade_ind) {
|
||||
if (pdu_session_create_data->is_ma_nw_upgrade_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "maNwUpgradeInd", pdu_session_create_data->ma_nw_upgrade_ind) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [ma_nw_upgrade_ind]");
|
||||
goto end;
|
||||
|
|
@ -740,7 +762,7 @@ cJSON *OpenAPI_pdu_session_create_data_convertToJSON(OpenAPI_pdu_session_create_
|
|||
}
|
||||
}
|
||||
|
||||
if (pdu_session_create_data->dl_serving_plmn_rate_ctl) {
|
||||
if (pdu_session_create_data->is_dl_serving_plmn_rate_ctl) {
|
||||
if (cJSON_AddNumberToObject(item, "dlServingPlmnRateCtl", pdu_session_create_data->dl_serving_plmn_rate_ctl) == NULL) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed [dl_serving_plmn_rate_ctl]");
|
||||
goto end;
|
||||
|
|
@ -782,7 +804,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
OpenAPI_pdu_session_create_data_t *pdu_session_create_data_local_var = NULL;
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
|
@ -791,7 +813,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *unauthenticated_supi = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "unauthenticatedSupi");
|
||||
|
||||
if (unauthenticated_supi) {
|
||||
if (unauthenticated_supi) {
|
||||
if (!cJSON_IsBool(unauthenticated_supi)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [unauthenticated_supi]");
|
||||
goto end;
|
||||
|
|
@ -800,7 +822,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
|
@ -809,7 +831,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *pdu_session_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "pduSessionId");
|
||||
|
||||
if (pdu_session_id) {
|
||||
if (pdu_session_id) {
|
||||
if (!cJSON_IsNumber(pdu_session_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
|
|
@ -822,7 +844,6 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(dnn)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [dnn]");
|
||||
goto end;
|
||||
|
|
@ -830,7 +851,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *selected_dnn = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "selectedDnn");
|
||||
|
||||
if (selected_dnn) {
|
||||
if (selected_dnn) {
|
||||
if (!cJSON_IsString(selected_dnn)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [selected_dnn]");
|
||||
goto end;
|
||||
|
|
@ -840,13 +861,13 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *s_nssai = cJSON_GetObjectItemCaseSensitive(pdu_session_create_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 *vsmf_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "vsmfId");
|
||||
|
||||
if (vsmf_id) {
|
||||
if (vsmf_id) {
|
||||
if (!cJSON_IsString(vsmf_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [vsmf_id]");
|
||||
goto end;
|
||||
|
|
@ -855,7 +876,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *ismf_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "ismfId");
|
||||
|
||||
if (ismf_id) {
|
||||
if (ismf_id) {
|
||||
if (!cJSON_IsString(ismf_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [ismf_id]");
|
||||
goto end;
|
||||
|
|
@ -869,13 +890,12 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
}
|
||||
|
||||
OpenAPI_plmn_id_nid_t *serving_network_local_nonprim = NULL;
|
||||
|
||||
serving_network_local_nonprim = OpenAPI_plmn_id_nid_parseFromJSON(serving_network);
|
||||
|
||||
cJSON *request_type = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "requestType");
|
||||
|
||||
OpenAPI_request_type_e request_typeVariable;
|
||||
if (request_type) {
|
||||
if (request_type) {
|
||||
if (!cJSON_IsString(request_type)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [request_type]");
|
||||
goto end;
|
||||
|
|
@ -886,7 +906,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *eps_bearer_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "epsBearerId");
|
||||
|
||||
OpenAPI_list_t *eps_bearer_idList;
|
||||
if (eps_bearer_id) {
|
||||
if (eps_bearer_id) {
|
||||
cJSON *eps_bearer_id_local;
|
||||
if (!cJSON_IsArray(eps_bearer_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [eps_bearer_id]");
|
||||
|
|
@ -900,12 +920,12 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(eps_bearer_idList , &eps_bearer_id_local->valuedouble);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pgw_s8c_fteid = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "pgwS8cFteid");
|
||||
|
||||
if (pgw_s8c_fteid) {
|
||||
if (pgw_s8c_fteid) {
|
||||
if (!cJSON_IsNumber(pgw_s8c_fteid)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [pgw_s8c_fteid]");
|
||||
goto end;
|
||||
|
|
@ -914,7 +934,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *vsmf_pdu_session_uri = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "vsmfPduSessionUri");
|
||||
|
||||
if (vsmf_pdu_session_uri) {
|
||||
if (vsmf_pdu_session_uri) {
|
||||
if (!cJSON_IsString(vsmf_pdu_session_uri)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [vsmf_pdu_session_uri]");
|
||||
goto end;
|
||||
|
|
@ -923,7 +943,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *ismf_pdu_session_uri = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "ismfPduSessionUri");
|
||||
|
||||
if (ismf_pdu_session_uri) {
|
||||
if (ismf_pdu_session_uri) {
|
||||
if (!cJSON_IsString(ismf_pdu_session_uri)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [ismf_pdu_session_uri]");
|
||||
goto end;
|
||||
|
|
@ -933,28 +953,28 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *vcn_tunnel_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "vcnTunnelInfo");
|
||||
|
||||
OpenAPI_tunnel_info_t *vcn_tunnel_info_local_nonprim = NULL;
|
||||
if (vcn_tunnel_info) {
|
||||
if (vcn_tunnel_info) {
|
||||
vcn_tunnel_info_local_nonprim = OpenAPI_tunnel_info_parseFromJSON(vcn_tunnel_info);
|
||||
}
|
||||
|
||||
cJSON *icn_tunnel_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "icnTunnelInfo");
|
||||
|
||||
OpenAPI_tunnel_info_t *icn_tunnel_info_local_nonprim = NULL;
|
||||
if (icn_tunnel_info) {
|
||||
if (icn_tunnel_info) {
|
||||
icn_tunnel_info_local_nonprim = OpenAPI_tunnel_info_parseFromJSON(icn_tunnel_info);
|
||||
}
|
||||
|
||||
cJSON *n9_forwarding_tunnel_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "n9ForwardingTunnelInfo");
|
||||
|
||||
OpenAPI_tunnel_info_t *n9_forwarding_tunnel_info_local_nonprim = NULL;
|
||||
if (n9_forwarding_tunnel_info) {
|
||||
if (n9_forwarding_tunnel_info) {
|
||||
n9_forwarding_tunnel_info_local_nonprim = OpenAPI_tunnel_info_parseFromJSON(n9_forwarding_tunnel_info);
|
||||
}
|
||||
|
||||
cJSON *additional_cn_tunnel_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "additionalCnTunnelInfo");
|
||||
|
||||
OpenAPI_tunnel_info_t *additional_cn_tunnel_info_local_nonprim = NULL;
|
||||
if (additional_cn_tunnel_info) {
|
||||
if (additional_cn_tunnel_info) {
|
||||
additional_cn_tunnel_info_local_nonprim = OpenAPI_tunnel_info_parseFromJSON(additional_cn_tunnel_info);
|
||||
}
|
||||
|
||||
|
|
@ -965,7 +985,6 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
}
|
||||
|
||||
OpenAPI_access_type_e an_typeVariable;
|
||||
|
||||
if (!cJSON_IsString(an_type)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [an_type]");
|
||||
goto end;
|
||||
|
|
@ -975,7 +994,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *additional_an_type = cJSON_GetObjectItemCaseSensitive(pdu_session_create_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_pdu_session_create_data_parseFromJSON() failed [additional_an_type]");
|
||||
goto end;
|
||||
|
|
@ -986,7 +1005,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *rat_type = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "ratType");
|
||||
|
||||
OpenAPI_rat_type_e rat_typeVariable;
|
||||
if (rat_type) {
|
||||
if (rat_type) {
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
|
|
@ -997,13 +1016,13 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *ue_location = cJSON_GetObjectItemCaseSensitive(pdu_session_create_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(pdu_session_create_dataJSON, "ueTimeZone");
|
||||
|
||||
if (ue_time_zone) {
|
||||
if (ue_time_zone) {
|
||||
if (!cJSON_IsString(ue_time_zone)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [ue_time_zone]");
|
||||
goto end;
|
||||
|
|
@ -1013,13 +1032,13 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *add_ue_location = cJSON_GetObjectItemCaseSensitive(pdu_session_create_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 *gpsi = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "gpsi");
|
||||
|
||||
if (gpsi) {
|
||||
if (gpsi) {
|
||||
if (!cJSON_IsString(gpsi)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [gpsi]");
|
||||
goto end;
|
||||
|
|
@ -1029,20 +1048,20 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *n1_sm_info_from_ue = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "n1SmInfoFromUe");
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *n1_sm_info_from_ue_local_nonprim = NULL;
|
||||
if (n1_sm_info_from_ue) {
|
||||
if (n1_sm_info_from_ue) {
|
||||
n1_sm_info_from_ue_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n1_sm_info_from_ue);
|
||||
}
|
||||
|
||||
cJSON *unknown_n1_sm_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "unknownN1SmInfo");
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *unknown_n1_sm_info_local_nonprim = NULL;
|
||||
if (unknown_n1_sm_info) {
|
||||
if (unknown_n1_sm_info) {
|
||||
unknown_n1_sm_info_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(unknown_n1_sm_info);
|
||||
}
|
||||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
|
@ -1051,7 +1070,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *h_pcf_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "hPcfId");
|
||||
|
||||
if (h_pcf_id) {
|
||||
if (h_pcf_id) {
|
||||
if (!cJSON_IsString(h_pcf_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [h_pcf_id]");
|
||||
goto end;
|
||||
|
|
@ -1060,7 +1079,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *pcf_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "pcfId");
|
||||
|
||||
if (pcf_id) {
|
||||
if (pcf_id) {
|
||||
if (!cJSON_IsString(pcf_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [pcf_id]");
|
||||
goto end;
|
||||
|
|
@ -1069,7 +1088,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *pcf_group_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "pcfGroupId");
|
||||
|
||||
if (pcf_group_id) {
|
||||
if (pcf_group_id) {
|
||||
if (!cJSON_IsString(pcf_group_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [pcf_group_id]");
|
||||
goto end;
|
||||
|
|
@ -1078,7 +1097,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *pcf_set_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "pcfSetId");
|
||||
|
||||
if (pcf_set_id) {
|
||||
if (pcf_set_id) {
|
||||
if (!cJSON_IsString(pcf_set_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [pcf_set_id]");
|
||||
goto end;
|
||||
|
|
@ -1087,7 +1106,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *ho_preparation_indication = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "hoPreparationIndication");
|
||||
|
||||
if (ho_preparation_indication) {
|
||||
if (ho_preparation_indication) {
|
||||
if (!cJSON_IsBool(ho_preparation_indication)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [ho_preparation_indication]");
|
||||
goto end;
|
||||
|
|
@ -1097,7 +1116,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *sel_mode = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "selMode");
|
||||
|
||||
OpenAPI_dnn_selection_mode_e sel_modeVariable;
|
||||
if (sel_mode) {
|
||||
if (sel_mode) {
|
||||
if (!cJSON_IsString(sel_mode)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [sel_mode]");
|
||||
goto end;
|
||||
|
|
@ -1107,7 +1126,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *always_on_requested = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "alwaysOnRequested");
|
||||
|
||||
if (always_on_requested) {
|
||||
if (always_on_requested) {
|
||||
if (!cJSON_IsBool(always_on_requested)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [always_on_requested]");
|
||||
goto end;
|
||||
|
|
@ -1116,7 +1135,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *udm_group_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "udmGroupId");
|
||||
|
||||
if (udm_group_id) {
|
||||
if (udm_group_id) {
|
||||
if (!cJSON_IsString(udm_group_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [udm_group_id]");
|
||||
goto end;
|
||||
|
|
@ -1125,7 +1144,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *routing_indicator = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "routingIndicator");
|
||||
|
||||
if (routing_indicator) {
|
||||
if (routing_indicator) {
|
||||
if (!cJSON_IsString(routing_indicator)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [routing_indicator]");
|
||||
goto end;
|
||||
|
|
@ -1135,7 +1154,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *eps_interworking_ind = cJSON_GetObjectItemCaseSensitive(pdu_session_create_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_pdu_session_create_data_parseFromJSON() failed [eps_interworking_ind]");
|
||||
goto end;
|
||||
|
|
@ -1145,7 +1164,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *v_smf_service_instance_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "vSmfServiceInstanceId");
|
||||
|
||||
if (v_smf_service_instance_id) {
|
||||
if (v_smf_service_instance_id) {
|
||||
if (!cJSON_IsString(v_smf_service_instance_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [v_smf_service_instance_id]");
|
||||
goto end;
|
||||
|
|
@ -1154,7 +1173,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *i_smf_service_instance_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "iSmfServiceInstanceId");
|
||||
|
||||
if (i_smf_service_instance_id) {
|
||||
if (i_smf_service_instance_id) {
|
||||
if (!cJSON_IsString(i_smf_service_instance_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [i_smf_service_instance_id]");
|
||||
goto end;
|
||||
|
|
@ -1163,7 +1182,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *recovery_time = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "recoveryTime");
|
||||
|
||||
if (recovery_time) {
|
||||
if (recovery_time) {
|
||||
if (!cJSON_IsString(recovery_time)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [recovery_time]");
|
||||
goto end;
|
||||
|
|
@ -1173,13 +1192,13 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *roaming_charging_profile = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "roamingChargingProfile");
|
||||
|
||||
OpenAPI_roaming_charging_profile_t *roaming_charging_profile_local_nonprim = NULL;
|
||||
if (roaming_charging_profile) {
|
||||
if (roaming_charging_profile) {
|
||||
roaming_charging_profile_local_nonprim = OpenAPI_roaming_charging_profile_parseFromJSON(roaming_charging_profile);
|
||||
}
|
||||
|
||||
cJSON *charging_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "chargingId");
|
||||
|
||||
if (charging_id) {
|
||||
if (charging_id) {
|
||||
if (!cJSON_IsString(charging_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [charging_id]");
|
||||
goto end;
|
||||
|
|
@ -1188,7 +1207,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *old_pdu_session_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "oldPduSessionId");
|
||||
|
||||
if (old_pdu_session_id) {
|
||||
if (old_pdu_session_id) {
|
||||
if (!cJSON_IsNumber(old_pdu_session_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [old_pdu_session_id]");
|
||||
goto end;
|
||||
|
|
@ -1197,7 +1216,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *eps_bearer_ctx_status = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "epsBearerCtxStatus");
|
||||
|
||||
if (eps_bearer_ctx_status) {
|
||||
if (eps_bearer_ctx_status) {
|
||||
if (!cJSON_IsString(eps_bearer_ctx_status)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [eps_bearer_ctx_status]");
|
||||
goto end;
|
||||
|
|
@ -1206,7 +1225,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *amf_nf_id = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "amfNfId");
|
||||
|
||||
if (amf_nf_id) {
|
||||
if (amf_nf_id) {
|
||||
if (!cJSON_IsString(amf_nf_id)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [amf_nf_id]");
|
||||
goto end;
|
||||
|
|
@ -1216,14 +1235,14 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *guami = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "guami");
|
||||
|
||||
OpenAPI_guami_t *guami_local_nonprim = NULL;
|
||||
if (guami) {
|
||||
if (guami) {
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
}
|
||||
|
||||
cJSON *max_integrity_protected_data_rate_ul = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "maxIntegrityProtectedDataRateUl");
|
||||
|
||||
OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate_ulVariable;
|
||||
if (max_integrity_protected_data_rate_ul) {
|
||||
if (max_integrity_protected_data_rate_ul) {
|
||||
if (!cJSON_IsString(max_integrity_protected_data_rate_ul)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [max_integrity_protected_data_rate_ul]");
|
||||
goto end;
|
||||
|
|
@ -1234,7 +1253,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *max_integrity_protected_data_rate_dl = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "maxIntegrityProtectedDataRateDl");
|
||||
|
||||
OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate_dlVariable;
|
||||
if (max_integrity_protected_data_rate_dl) {
|
||||
if (max_integrity_protected_data_rate_dl) {
|
||||
if (!cJSON_IsString(max_integrity_protected_data_rate_dl)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [max_integrity_protected_data_rate_dl]");
|
||||
goto end;
|
||||
|
|
@ -1244,7 +1263,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *cp_ciot_enabled = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "cpCiotEnabled");
|
||||
|
||||
if (cp_ciot_enabled) {
|
||||
if (cp_ciot_enabled) {
|
||||
if (!cJSON_IsBool(cp_ciot_enabled)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [cp_ciot_enabled]");
|
||||
goto end;
|
||||
|
|
@ -1253,7 +1272,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *cp_only_ind = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "cpOnlyInd");
|
||||
|
||||
if (cp_only_ind) {
|
||||
if (cp_only_ind) {
|
||||
if (!cJSON_IsBool(cp_only_ind)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [cp_only_ind]");
|
||||
goto end;
|
||||
|
|
@ -1262,7 +1281,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *invoke_nef = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "invokeNef");
|
||||
|
||||
if (invoke_nef) {
|
||||
if (invoke_nef) {
|
||||
if (!cJSON_IsBool(invoke_nef)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [invoke_nef]");
|
||||
goto end;
|
||||
|
|
@ -1271,7 +1290,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *ma_request_ind = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "maRequestInd");
|
||||
|
||||
if (ma_request_ind) {
|
||||
if (ma_request_ind) {
|
||||
if (!cJSON_IsBool(ma_request_ind)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [ma_request_ind]");
|
||||
goto end;
|
||||
|
|
@ -1280,7 +1299,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
|
||||
cJSON *ma_nw_upgrade_ind = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "maNwUpgradeInd");
|
||||
|
||||
if (ma_nw_upgrade_ind) {
|
||||
if (ma_nw_upgrade_ind) {
|
||||
if (!cJSON_IsBool(ma_nw_upgrade_ind)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [ma_nw_upgrade_ind]");
|
||||
goto end;
|
||||
|
|
@ -1290,7 +1309,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *dnai_list = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "dnaiList");
|
||||
|
||||
OpenAPI_list_t *dnai_listList;
|
||||
if (dnai_list) {
|
||||
if (dnai_list) {
|
||||
cJSON *dnai_list_local;
|
||||
if (!cJSON_IsArray(dnai_list)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [dnai_list]");
|
||||
|
|
@ -1304,13 +1323,13 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(dnai_listList , ogs_strdup_or_assert(dnai_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *presence_in_ladn = cJSON_GetObjectItemCaseSensitive(pdu_session_create_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_pdu_session_create_data_parseFromJSON() failed [presence_in_ladn]");
|
||||
goto end;
|
||||
|
|
@ -1321,7 +1340,7 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *secondary_rat_usage_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "secondaryRatUsageInfo");
|
||||
|
||||
OpenAPI_list_t *secondary_rat_usage_infoList;
|
||||
if (secondary_rat_usage_info) {
|
||||
if (secondary_rat_usage_info) {
|
||||
cJSON *secondary_rat_usage_info_local_nonprimitive;
|
||||
if (!cJSON_IsArray(secondary_rat_usage_info)){
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [secondary_rat_usage_info]");
|
||||
|
|
@ -1344,20 +1363,20 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *small_data_rate_status = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "smallDataRateStatus");
|
||||
|
||||
OpenAPI_small_data_rate_status_t *small_data_rate_status_local_nonprim = NULL;
|
||||
if (small_data_rate_status) {
|
||||
if (small_data_rate_status) {
|
||||
small_data_rate_status_local_nonprim = OpenAPI_small_data_rate_status_parseFromJSON(small_data_rate_status);
|
||||
}
|
||||
|
||||
cJSON *apn_rate_status = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "apnRateStatus");
|
||||
|
||||
OpenAPI_apn_rate_status_t *apn_rate_status_local_nonprim = NULL;
|
||||
if (apn_rate_status) {
|
||||
if (apn_rate_status) {
|
||||
apn_rate_status_local_nonprim = OpenAPI_apn_rate_status_parseFromJSON(apn_rate_status);
|
||||
}
|
||||
|
||||
cJSON *dl_serving_plmn_rate_ctl = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "dlServingPlmnRateCtl");
|
||||
|
||||
if (dl_serving_plmn_rate_ctl) {
|
||||
if (dl_serving_plmn_rate_ctl) {
|
||||
if (!cJSON_IsNumber(dl_serving_plmn_rate_ctl)) {
|
||||
ogs_error("OpenAPI_pdu_session_create_data_parseFromJSON() failed [dl_serving_plmn_rate_ctl]");
|
||||
goto end;
|
||||
|
|
@ -1367,21 +1386,23 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
cJSON *up_security_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "upSecurityInfo");
|
||||
|
||||
OpenAPI_up_security_info_t *up_security_info_local_nonprim = NULL;
|
||||
if (up_security_info) {
|
||||
if (up_security_info) {
|
||||
up_security_info_local_nonprim = OpenAPI_up_security_info_parseFromJSON(up_security_info);
|
||||
}
|
||||
|
||||
cJSON *vplmn_qos = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "vplmnQos");
|
||||
|
||||
OpenAPI_vplmn_qos_t *vplmn_qos_local_nonprim = NULL;
|
||||
if (vplmn_qos) {
|
||||
if (vplmn_qos) {
|
||||
vplmn_qos_local_nonprim = OpenAPI_vplmn_qos_parseFromJSON(vplmn_qos);
|
||||
}
|
||||
|
||||
pdu_session_create_data_local_var = OpenAPI_pdu_session_create_data_create (
|
||||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL,
|
||||
unauthenticated_supi ? true : false,
|
||||
unauthenticated_supi ? unauthenticated_supi->valueint : 0,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
pdu_session_id ? true : false,
|
||||
pdu_session_id ? pdu_session_id->valuedouble : 0,
|
||||
ogs_strdup_or_assert(dnn->valuestring),
|
||||
selected_dnn ? ogs_strdup_or_assert(selected_dnn->valuestring) : NULL,
|
||||
|
|
@ -1412,8 +1433,10 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
pcf_id ? ogs_strdup_or_assert(pcf_id->valuestring) : NULL,
|
||||
pcf_group_id ? ogs_strdup_or_assert(pcf_group_id->valuestring) : NULL,
|
||||
pcf_set_id ? ogs_strdup_or_assert(pcf_set_id->valuestring) : NULL,
|
||||
ho_preparation_indication ? true : false,
|
||||
ho_preparation_indication ? ho_preparation_indication->valueint : 0,
|
||||
sel_mode ? sel_modeVariable : 0,
|
||||
always_on_requested ? true : false,
|
||||
always_on_requested ? always_on_requested->valueint : 0,
|
||||
udm_group_id ? ogs_strdup_or_assert(udm_group_id->valuestring) : NULL,
|
||||
routing_indicator ? ogs_strdup_or_assert(routing_indicator->valuestring) : NULL,
|
||||
|
|
@ -1423,22 +1446,29 @@ OpenAPI_pdu_session_create_data_t *OpenAPI_pdu_session_create_data_parseFromJSON
|
|||
recovery_time ? ogs_strdup_or_assert(recovery_time->valuestring) : NULL,
|
||||
roaming_charging_profile ? roaming_charging_profile_local_nonprim : NULL,
|
||||
charging_id ? ogs_strdup_or_assert(charging_id->valuestring) : NULL,
|
||||
old_pdu_session_id ? true : false,
|
||||
old_pdu_session_id ? old_pdu_session_id->valuedouble : 0,
|
||||
eps_bearer_ctx_status ? ogs_strdup_or_assert(eps_bearer_ctx_status->valuestring) : NULL,
|
||||
amf_nf_id ? ogs_strdup_or_assert(amf_nf_id->valuestring) : NULL,
|
||||
guami ? guami_local_nonprim : NULL,
|
||||
max_integrity_protected_data_rate_ul ? max_integrity_protected_data_rate_ulVariable : 0,
|
||||
max_integrity_protected_data_rate_dl ? max_integrity_protected_data_rate_dlVariable : 0,
|
||||
cp_ciot_enabled ? true : false,
|
||||
cp_ciot_enabled ? cp_ciot_enabled->valueint : 0,
|
||||
cp_only_ind ? true : false,
|
||||
cp_only_ind ? cp_only_ind->valueint : 0,
|
||||
invoke_nef ? true : false,
|
||||
invoke_nef ? invoke_nef->valueint : 0,
|
||||
ma_request_ind ? true : false,
|
||||
ma_request_ind ? ma_request_ind->valueint : 0,
|
||||
ma_nw_upgrade_ind ? true : false,
|
||||
ma_nw_upgrade_ind ? ma_nw_upgrade_ind->valueint : 0,
|
||||
dnai_list ? dnai_listList : NULL,
|
||||
presence_in_ladn ? presence_in_ladnVariable : 0,
|
||||
secondary_rat_usage_info ? secondary_rat_usage_infoList : NULL,
|
||||
small_data_rate_status ? small_data_rate_status_local_nonprim : NULL,
|
||||
apn_rate_status ? apn_rate_status_local_nonprim : NULL,
|
||||
dl_serving_plmn_rate_ctl ? true : false,
|
||||
dl_serving_plmn_rate_ctl ? dl_serving_plmn_rate_ctl->valuedouble : 0,
|
||||
up_security_info ? up_security_info_local_nonprim : NULL,
|
||||
vplmn_qos ? vplmn_qos_local_nonprim : NULL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue