mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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
|
|
@ -8,7 +8,7 @@ OpenAPI_plmn_ec_info_t *OpenAPI_plmn_ec_info_create(
|
|||
OpenAPI_plmn_id_t *plmn_id,
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb,
|
||||
int ec_restriction_data_nb
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_plmn_ec_info_t *plmn_ec_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_plmn_ec_info_t));
|
||||
if (!plmn_ec_info_local_var) {
|
||||
|
|
@ -54,23 +54,23 @@ cJSON *OpenAPI_plmn_ec_info_convertToJSON(OpenAPI_plmn_ec_info_t *plmn_ec_info)
|
|||
}
|
||||
|
||||
if (plmn_ec_info->ec_restriction_data_wb) {
|
||||
cJSON *ec_restriction_data_wb_local_JSON = OpenAPI_ec_restriction_data_wb_convertToJSON(plmn_ec_info->ec_restriction_data_wb);
|
||||
if (ec_restriction_data_wb_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_convertToJSON() failed [ec_restriction_data_wb]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "ecRestrictionDataWb", ec_restriction_data_wb_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_convertToJSON() failed [ec_restriction_data_wb]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *ec_restriction_data_wb_local_JSON = OpenAPI_ec_restriction_data_wb_convertToJSON(plmn_ec_info->ec_restriction_data_wb);
|
||||
if (ec_restriction_data_wb_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_convertToJSON() failed [ec_restriction_data_wb]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "ecRestrictionDataWb", ec_restriction_data_wb_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_convertToJSON() failed [ec_restriction_data_wb]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (plmn_ec_info->ec_restriction_data_nb) {
|
||||
if (cJSON_AddBoolToObject(item, "ecRestrictionDataNb", plmn_ec_info->ec_restriction_data_nb) == NULL) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_convertToJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "ecRestrictionDataNb", plmn_ec_info->ec_restriction_data_nb) == NULL) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_convertToJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -87,30 +87,30 @@ OpenAPI_plmn_ec_info_t *OpenAPI_plmn_ec_info_parseFromJSON(cJSON *plmn_ec_infoJS
|
|||
}
|
||||
|
||||
OpenAPI_plmn_id_t *plmn_id_local_nonprim = NULL;
|
||||
|
||||
|
||||
plmn_id_local_nonprim = OpenAPI_plmn_id_parseFromJSON(plmn_id);
|
||||
|
||||
cJSON *ec_restriction_data_wb = cJSON_GetObjectItemCaseSensitive(plmn_ec_infoJSON, "ecRestrictionDataWb");
|
||||
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb_local_nonprim = NULL;
|
||||
if (ec_restriction_data_wb) {
|
||||
ec_restriction_data_wb_local_nonprim = OpenAPI_ec_restriction_data_wb_parseFromJSON(ec_restriction_data_wb);
|
||||
}
|
||||
if (ec_restriction_data_wb) {
|
||||
ec_restriction_data_wb_local_nonprim = OpenAPI_ec_restriction_data_wb_parseFromJSON(ec_restriction_data_wb);
|
||||
}
|
||||
|
||||
cJSON *ec_restriction_data_nb = cJSON_GetObjectItemCaseSensitive(plmn_ec_infoJSON, "ecRestrictionDataNb");
|
||||
|
||||
if (ec_restriction_data_nb) {
|
||||
if (!cJSON_IsBool(ec_restriction_data_nb)) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_parseFromJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
}
|
||||
if (ec_restriction_data_nb) {
|
||||
if (!cJSON_IsBool(ec_restriction_data_nb)) {
|
||||
ogs_error("OpenAPI_plmn_ec_info_parseFromJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
plmn_ec_info_local_var = OpenAPI_plmn_ec_info_create (
|
||||
plmn_id_local_nonprim,
|
||||
ec_restriction_data_wb ? ec_restriction_data_wb_local_nonprim : NULL,
|
||||
ec_restriction_data_nb ? ec_restriction_data_nb->valueint : 0
|
||||
);
|
||||
);
|
||||
|
||||
return plmn_ec_info_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue