mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +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
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
OpenAPI_enhanced_coverage_restriction_data_t *OpenAPI_enhanced_coverage_restriction_data_create(
|
||||
OpenAPI_list_t *plmn_ec_info_list
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_enhanced_coverage_restriction_data_t *enhanced_coverage_restriction_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_enhanced_coverage_restriction_data_t));
|
||||
if (!enhanced_coverage_restriction_data_local_var) {
|
||||
|
|
@ -41,24 +41,24 @@ cJSON *OpenAPI_enhanced_coverage_restriction_data_convertToJSON(OpenAPI_enhanced
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (enhanced_coverage_restriction_data->plmn_ec_info_list) {
|
||||
cJSON *plmn_ec_info_listList = cJSON_AddArrayToObject(item, "plmnEcInfoList");
|
||||
if (plmn_ec_info_listList == NULL) {
|
||||
ogs_error("OpenAPI_enhanced_coverage_restriction_data_convertToJSON() failed [plmn_ec_info_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *plmn_ec_info_listList = cJSON_AddArrayToObject(item, "plmnEcInfoList");
|
||||
if (plmn_ec_info_listList == NULL) {
|
||||
ogs_error("OpenAPI_enhanced_coverage_restriction_data_convertToJSON() failed [plmn_ec_info_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *plmn_ec_info_list_node;
|
||||
if (enhanced_coverage_restriction_data->plmn_ec_info_list) {
|
||||
OpenAPI_list_for_each(enhanced_coverage_restriction_data->plmn_ec_info_list, plmn_ec_info_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_plmn_ec_info_convertToJSON(plmn_ec_info_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_enhanced_coverage_restriction_data_convertToJSON() failed [plmn_ec_info_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(plmn_ec_info_listList, itemLocal);
|
||||
OpenAPI_lnode_t *plmn_ec_info_list_node;
|
||||
if (enhanced_coverage_restriction_data->plmn_ec_info_list) {
|
||||
OpenAPI_list_for_each(enhanced_coverage_restriction_data->plmn_ec_info_list, plmn_ec_info_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_plmn_ec_info_convertToJSON(plmn_ec_info_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_enhanced_coverage_restriction_data_convertToJSON() failed [plmn_ec_info_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(plmn_ec_info_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
return item;
|
||||
|
|
@ -70,29 +70,29 @@ OpenAPI_enhanced_coverage_restriction_data_t *OpenAPI_enhanced_coverage_restrict
|
|||
cJSON *plmn_ec_info_list = cJSON_GetObjectItemCaseSensitive(enhanced_coverage_restriction_dataJSON, "plmnEcInfoList");
|
||||
|
||||
OpenAPI_list_t *plmn_ec_info_listList;
|
||||
if (plmn_ec_info_list) {
|
||||
cJSON *plmn_ec_info_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(plmn_ec_info_list)) {
|
||||
if (plmn_ec_info_list) {
|
||||
cJSON *plmn_ec_info_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(plmn_ec_info_list)){
|
||||
ogs_error("OpenAPI_enhanced_coverage_restriction_data_parseFromJSON() failed [plmn_ec_info_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
plmn_ec_info_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(plmn_ec_info_list_local_nonprimitive, plmn_ec_info_list ) {
|
||||
if (!cJSON_IsObject(plmn_ec_info_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_enhanced_coverage_restriction_data_parseFromJSON() failed [plmn_ec_info_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_plmn_ec_info_t *plmn_ec_info_listItem = OpenAPI_plmn_ec_info_parseFromJSON(plmn_ec_info_list_local_nonprimitive);
|
||||
|
||||
plmn_ec_info_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(plmn_ec_info_list_local_nonprimitive, plmn_ec_info_list ) {
|
||||
if (!cJSON_IsObject(plmn_ec_info_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_enhanced_coverage_restriction_data_parseFromJSON() failed [plmn_ec_info_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_plmn_ec_info_t *plmn_ec_info_listItem = OpenAPI_plmn_ec_info_parseFromJSON(plmn_ec_info_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(plmn_ec_info_listList, plmn_ec_info_listItem);
|
||||
}
|
||||
OpenAPI_list_add(plmn_ec_info_listList, plmn_ec_info_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
enhanced_coverage_restriction_data_local_var = OpenAPI_enhanced_coverage_restriction_data_create (
|
||||
plmn_ec_info_list ? plmn_ec_info_listList : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return enhanced_coverage_restriction_data_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue