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_n4_information_t *OpenAPI_n4_information_create(
|
|||
OpenAPI_n4_message_type_e n4_message_type,
|
||||
OpenAPI_ref_to_binary_data_t *n4_message_payload,
|
||||
OpenAPI_dnai_information_t *n4_dnai_info
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_n4_information_t *n4_information_local_var = OpenAPI_malloc(sizeof(OpenAPI_n4_information_t));
|
||||
if (!n4_information_local_var) {
|
||||
|
|
@ -59,16 +59,16 @@ cJSON *OpenAPI_n4_information_convertToJSON(OpenAPI_n4_information_t *n4_informa
|
|||
}
|
||||
|
||||
if (n4_information->n4_dnai_info) {
|
||||
cJSON *n4_dnai_info_local_JSON = OpenAPI_dnai_information_convertToJSON(n4_information->n4_dnai_info);
|
||||
if (n4_dnai_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_n4_information_convertToJSON() failed [n4_dnai_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n4DnaiInfo", n4_dnai_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_n4_information_convertToJSON() failed [n4_dnai_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *n4_dnai_info_local_JSON = OpenAPI_dnai_information_convertToJSON(n4_information->n4_dnai_info);
|
||||
if (n4_dnai_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_n4_information_convertToJSON() failed [n4_dnai_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n4DnaiInfo", n4_dnai_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_n4_information_convertToJSON() failed [n4_dnai_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -85,7 +85,7 @@ OpenAPI_n4_information_t *OpenAPI_n4_information_parseFromJSON(cJSON *n4_informa
|
|||
}
|
||||
|
||||
OpenAPI_n4_message_type_e n4_message_typeVariable;
|
||||
|
||||
|
||||
if (!cJSON_IsString(n4_message_type)) {
|
||||
ogs_error("OpenAPI_n4_information_parseFromJSON() failed [n4_message_type]");
|
||||
goto end;
|
||||
|
|
@ -99,21 +99,21 @@ OpenAPI_n4_information_t *OpenAPI_n4_information_parseFromJSON(cJSON *n4_informa
|
|||
}
|
||||
|
||||
OpenAPI_ref_to_binary_data_t *n4_message_payload_local_nonprim = NULL;
|
||||
|
||||
|
||||
n4_message_payload_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(n4_message_payload);
|
||||
|
||||
cJSON *n4_dnai_info = cJSON_GetObjectItemCaseSensitive(n4_informationJSON, "n4DnaiInfo");
|
||||
|
||||
OpenAPI_dnai_information_t *n4_dnai_info_local_nonprim = NULL;
|
||||
if (n4_dnai_info) {
|
||||
n4_dnai_info_local_nonprim = OpenAPI_dnai_information_parseFromJSON(n4_dnai_info);
|
||||
}
|
||||
if (n4_dnai_info) {
|
||||
n4_dnai_info_local_nonprim = OpenAPI_dnai_information_parseFromJSON(n4_dnai_info);
|
||||
}
|
||||
|
||||
n4_information_local_var = OpenAPI_n4_information_create (
|
||||
n4_message_typeVariable,
|
||||
n4_message_payload_local_nonprim,
|
||||
n4_dnai_info ? n4_dnai_info_local_nonprim : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return n4_information_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue