mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 13:50: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
|
|
@ -9,6 +9,7 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_create(
|
|||
int serial_number,
|
||||
OpenAPI_n2_info_content_t *pws_container,
|
||||
OpenAPI_list_t *bc_empty_area_list,
|
||||
bool is_send_ran_response,
|
||||
int send_ran_response,
|
||||
char *omc_id
|
||||
)
|
||||
|
|
@ -21,6 +22,7 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_create(
|
|||
pws_information_local_var->serial_number = serial_number;
|
||||
pws_information_local_var->pws_container = pws_container;
|
||||
pws_information_local_var->bc_empty_area_list = bc_empty_area_list;
|
||||
pws_information_local_var->is_send_ran_response = is_send_ran_response;
|
||||
pws_information_local_var->send_ran_response = send_ran_response;
|
||||
pws_information_local_var->omc_id = omc_id;
|
||||
|
||||
|
|
@ -93,7 +95,7 @@ cJSON *OpenAPI_pws_information_convertToJSON(OpenAPI_pws_information_t *pws_info
|
|||
}
|
||||
}
|
||||
|
||||
if (pws_information->send_ran_response) {
|
||||
if (pws_information->is_send_ran_response) {
|
||||
if (cJSON_AddBoolToObject(item, "sendRanResponse", pws_information->send_ran_response) == NULL) {
|
||||
ogs_error("OpenAPI_pws_information_convertToJSON() failed [send_ran_response]");
|
||||
goto end;
|
||||
|
|
@ -120,7 +122,6 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_parseFromJSON(cJSON *pws_info
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(message_identifier)) {
|
||||
ogs_error("OpenAPI_pws_information_parseFromJSON() failed [message_identifier]");
|
||||
goto end;
|
||||
|
|
@ -132,7 +133,6 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_parseFromJSON(cJSON *pws_info
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(serial_number)) {
|
||||
ogs_error("OpenAPI_pws_information_parseFromJSON() failed [serial_number]");
|
||||
goto end;
|
||||
|
|
@ -145,13 +145,12 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_parseFromJSON(cJSON *pws_info
|
|||
}
|
||||
|
||||
OpenAPI_n2_info_content_t *pws_container_local_nonprim = NULL;
|
||||
|
||||
pws_container_local_nonprim = OpenAPI_n2_info_content_parseFromJSON(pws_container);
|
||||
|
||||
cJSON *bc_empty_area_list = cJSON_GetObjectItemCaseSensitive(pws_informationJSON, "bcEmptyAreaList");
|
||||
|
||||
OpenAPI_list_t *bc_empty_area_listList;
|
||||
if (bc_empty_area_list) {
|
||||
if (bc_empty_area_list) {
|
||||
cJSON *bc_empty_area_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(bc_empty_area_list)){
|
||||
ogs_error("OpenAPI_pws_information_parseFromJSON() failed [bc_empty_area_list]");
|
||||
|
|
@ -173,7 +172,7 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_parseFromJSON(cJSON *pws_info
|
|||
|
||||
cJSON *send_ran_response = cJSON_GetObjectItemCaseSensitive(pws_informationJSON, "sendRanResponse");
|
||||
|
||||
if (send_ran_response) {
|
||||
if (send_ran_response) {
|
||||
if (!cJSON_IsBool(send_ran_response)) {
|
||||
ogs_error("OpenAPI_pws_information_parseFromJSON() failed [send_ran_response]");
|
||||
goto end;
|
||||
|
|
@ -182,7 +181,7 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_parseFromJSON(cJSON *pws_info
|
|||
|
||||
cJSON *omc_id = cJSON_GetObjectItemCaseSensitive(pws_informationJSON, "omcId");
|
||||
|
||||
if (omc_id) {
|
||||
if (omc_id) {
|
||||
if (!cJSON_IsString(omc_id)) {
|
||||
ogs_error("OpenAPI_pws_information_parseFromJSON() failed [omc_id]");
|
||||
goto end;
|
||||
|
|
@ -190,10 +189,13 @@ OpenAPI_pws_information_t *OpenAPI_pws_information_parseFromJSON(cJSON *pws_info
|
|||
}
|
||||
|
||||
pws_information_local_var = OpenAPI_pws_information_create (
|
||||
|
||||
message_identifier->valuedouble,
|
||||
|
||||
serial_number->valuedouble,
|
||||
pws_container_local_nonprim,
|
||||
bc_empty_area_list ? bc_empty_area_listList : NULL,
|
||||
send_ran_response ? true : false,
|
||||
send_ran_response ? send_ran_response->valueint : 0,
|
||||
omc_id ? ogs_strdup_or_assert(omc_id->valuestring) : NULL
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue