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
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_create(
|
||||
char *h_smf_uri,
|
||||
char *smf_uri,
|
||||
bool is_pdu_session_id,
|
||||
int pdu_session_id,
|
||||
OpenAPI_snssai_t *s_nssai,
|
||||
OpenAPI_up_cnx_state_e up_cnx_state,
|
||||
|
|
@ -28,6 +29,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_create(
|
|||
}
|
||||
sm_context_created_data_local_var->h_smf_uri = h_smf_uri;
|
||||
sm_context_created_data_local_var->smf_uri = smf_uri;
|
||||
sm_context_created_data_local_var->is_pdu_session_id = is_pdu_session_id;
|
||||
sm_context_created_data_local_var->pdu_session_id = pdu_session_id;
|
||||
sm_context_created_data_local_var->s_nssai = s_nssai;
|
||||
sm_context_created_data_local_var->up_cnx_state = up_cnx_state;
|
||||
|
|
@ -92,7 +94,7 @@ cJSON *OpenAPI_sm_context_created_data_convertToJSON(OpenAPI_sm_context_created_
|
|||
}
|
||||
}
|
||||
|
||||
if (sm_context_created_data->pdu_session_id) {
|
||||
if (sm_context_created_data->is_pdu_session_id) {
|
||||
if (cJSON_AddNumberToObject(item, "pduSessionId", sm_context_created_data->pdu_session_id) == NULL) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_convertToJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
|
|
@ -217,7 +219,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
OpenAPI_sm_context_created_data_t *sm_context_created_data_local_var = NULL;
|
||||
cJSON *h_smf_uri = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "hSmfUri");
|
||||
|
||||
if (h_smf_uri) {
|
||||
if (h_smf_uri) {
|
||||
if (!cJSON_IsString(h_smf_uri)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [h_smf_uri]");
|
||||
goto end;
|
||||
|
|
@ -226,7 +228,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *smf_uri = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "smfUri");
|
||||
|
||||
if (smf_uri) {
|
||||
if (smf_uri) {
|
||||
if (!cJSON_IsString(smf_uri)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [smf_uri]");
|
||||
goto end;
|
||||
|
|
@ -235,7 +237,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *pdu_session_id = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "pduSessionId");
|
||||
|
||||
if (pdu_session_id) {
|
||||
if (pdu_session_id) {
|
||||
if (!cJSON_IsNumber(pdu_session_id)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
|
|
@ -245,14 +247,14 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
cJSON *s_nssai = cJSON_GetObjectItemCaseSensitive(sm_context_created_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 *up_cnx_state = cJSON_GetObjectItemCaseSensitive(sm_context_created_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_created_data_parseFromJSON() failed [up_cnx_state]");
|
||||
goto end;
|
||||
|
|
@ -263,14 +265,14 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
cJSON *n2_sm_info = cJSON_GetObjectItemCaseSensitive(sm_context_created_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_created_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_created_data_parseFromJSON() failed [n2_sm_info_type]");
|
||||
goto end;
|
||||
|
|
@ -281,7 +283,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
cJSON *allocated_ebi_list = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "allocatedEbiList");
|
||||
|
||||
OpenAPI_list_t *allocated_ebi_listList;
|
||||
if (allocated_ebi_list) {
|
||||
if (allocated_ebi_list) {
|
||||
cJSON *allocated_ebi_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(allocated_ebi_list)){
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [allocated_ebi_list]");
|
||||
|
|
@ -304,7 +306,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
cJSON *ho_state = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "hoState");
|
||||
|
||||
OpenAPI_ho_state_e ho_stateVariable;
|
||||
if (ho_state) {
|
||||
if (ho_state) {
|
||||
if (!cJSON_IsString(ho_state)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [ho_state]");
|
||||
goto end;
|
||||
|
|
@ -314,7 +316,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *gpsi = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "gpsi");
|
||||
|
||||
if (gpsi) {
|
||||
if (gpsi) {
|
||||
if (!cJSON_IsString(gpsi)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [gpsi]");
|
||||
goto end;
|
||||
|
|
@ -323,7 +325,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *smf_service_instance_id = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "smfServiceInstanceId");
|
||||
|
||||
if (smf_service_instance_id) {
|
||||
if (smf_service_instance_id) {
|
||||
if (!cJSON_IsString(smf_service_instance_id)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [smf_service_instance_id]");
|
||||
goto end;
|
||||
|
|
@ -332,7 +334,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *recovery_time = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "recoveryTime");
|
||||
|
||||
if (recovery_time) {
|
||||
if (recovery_time) {
|
||||
if (!cJSON_IsString(recovery_time)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [recovery_time]");
|
||||
goto end;
|
||||
|
|
@ -341,7 +343,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
|
@ -350,7 +352,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *selected_smf_id = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "selectedSmfId");
|
||||
|
||||
if (selected_smf_id) {
|
||||
if (selected_smf_id) {
|
||||
if (!cJSON_IsString(selected_smf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [selected_smf_id]");
|
||||
goto end;
|
||||
|
|
@ -359,7 +361,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
|
||||
cJSON *selected_old_smf_id = cJSON_GetObjectItemCaseSensitive(sm_context_created_dataJSON, "selectedOldSmfId");
|
||||
|
||||
if (selected_old_smf_id) {
|
||||
if (selected_old_smf_id) {
|
||||
if (!cJSON_IsString(selected_old_smf_id)) {
|
||||
ogs_error("OpenAPI_sm_context_created_data_parseFromJSON() failed [selected_old_smf_id]");
|
||||
goto end;
|
||||
|
|
@ -369,6 +371,7 @@ OpenAPI_sm_context_created_data_t *OpenAPI_sm_context_created_data_parseFromJSON
|
|||
sm_context_created_data_local_var = OpenAPI_sm_context_created_data_create (
|
||||
h_smf_uri ? ogs_strdup_or_assert(h_smf_uri->valuestring) : NULL,
|
||||
smf_uri ? ogs_strdup_or_assert(smf_uri->valuestring) : NULL,
|
||||
pdu_session_id ? true : false,
|
||||
pdu_session_id ? pdu_session_id->valuedouble : 0,
|
||||
s_nssai ? s_nssai_local_nonprim : NULL,
|
||||
up_cnx_state ? up_cnx_stateVariable : 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue