Upgrade SBI(Service-based Interface)

* OpenAPI Generator version: 4.3.1 ==> 5.5.1
* Specification : r16.8.0 (20210629)
This commit is contained in:
Sukchan Lee 2021-07-07 17:32:55 +09:00
parent 2aaa8200c2
commit f278d58a69
1914 changed files with 91329 additions and 57361 deletions

View file

@ -5,18 +5,16 @@
#include "inline_object_2.h"
OpenAPI_inline_object_2_t *OpenAPI_inline_object_2_create(
OpenAPI_n2_information_notification_t *json_data,
OpenAPI_binary_t* binary_data_n1_message,
OpenAPI_binary_t* binary_data_n2_information
)
OpenAPI_ue_context_cancel_relocate_data_t *json_data,
OpenAPI_binary_t* binary_data_gtpc_message
)
{
OpenAPI_inline_object_2_t *inline_object_2_local_var = OpenAPI_malloc(sizeof(OpenAPI_inline_object_2_t));
if (!inline_object_2_local_var) {
return NULL;
}
inline_object_2_local_var->json_data = json_data;
inline_object_2_local_var->binary_data_n1_message = binary_data_n1_message;
inline_object_2_local_var->binary_data_n2_information = binary_data_n2_information;
inline_object_2_local_var->binary_data_gtpc_message = binary_data_gtpc_message;
return inline_object_2_local_var;
}
@ -27,9 +25,8 @@ void OpenAPI_inline_object_2_free(OpenAPI_inline_object_2_t *inline_object_2)
return;
}
OpenAPI_lnode_t *node;
OpenAPI_n2_information_notification_free(inline_object_2->json_data);
ogs_free(inline_object_2->binary_data_n1_message->data);
ogs_free(inline_object_2->binary_data_n2_information->data);
OpenAPI_ue_context_cancel_relocate_data_free(inline_object_2->json_data);
ogs_free(inline_object_2->binary_data_gtpc_message->data);
ogs_free(inline_object_2);
}
@ -44,34 +41,25 @@ cJSON *OpenAPI_inline_object_2_convertToJSON(OpenAPI_inline_object_2_t *inline_o
item = cJSON_CreateObject();
if (inline_object_2->json_data) {
cJSON *json_data_local_JSON = OpenAPI_n2_information_notification_convertToJSON(inline_object_2->json_data);
if (json_data_local_JSON == NULL) {
ogs_error("OpenAPI_inline_object_2_convertToJSON() failed [json_data]");
goto end;
}
cJSON_AddItemToObject(item, "jsonData", json_data_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_inline_object_2_convertToJSON() failed [json_data]");
goto end;
}
cJSON *json_data_local_JSON = OpenAPI_ue_context_cancel_relocate_data_convertToJSON(inline_object_2->json_data);
if (json_data_local_JSON == NULL) {
ogs_error("OpenAPI_inline_object_2_convertToJSON() failed [json_data]");
goto end;
}
cJSON_AddItemToObject(item, "jsonData", json_data_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_inline_object_2_convertToJSON() failed [json_data]");
goto end;
}
}
if (inline_object_2->binary_data_n1_message) {
char* encoded_str_binary_data_n1_message = OpenAPI_base64encode(inline_object_2->binary_data_n1_message->data,inline_object_2->binary_data_n1_message->len);
if (cJSON_AddStringToObject(item, "binaryDataN1Message", encoded_str_binary_data_n1_message) == NULL) {
ogs_error("OpenAPI_inline_object_2_convertToJSON() failed [binary_data_n1_message]");
goto end;
}
ogs_free(encoded_str_binary_data_n1_message);
if (inline_object_2->binary_data_gtpc_message) {
char* encoded_str_binary_data_gtpc_message = OpenAPI_base64encode(inline_object_2->binary_data_gtpc_message->data,inline_object_2->binary_data_gtpc_message->len);
if (cJSON_AddStringToObject(item, "binaryDataGtpcMessage", encoded_str_binary_data_gtpc_message) == NULL) {
ogs_error("OpenAPI_inline_object_2_convertToJSON() failed [binary_data_gtpc_message]");
goto end;
}
if (inline_object_2->binary_data_n2_information) {
char* encoded_str_binary_data_n2_information = OpenAPI_base64encode(inline_object_2->binary_data_n2_information->data,inline_object_2->binary_data_n2_information->len);
if (cJSON_AddStringToObject(item, "binaryDataN2Information", encoded_str_binary_data_n2_information) == NULL) {
ogs_error("OpenAPI_inline_object_2_convertToJSON() failed [binary_data_n2_information]");
goto end;
}
ogs_free(encoded_str_binary_data_n2_information);
ogs_free(encoded_str_binary_data_gtpc_message);
}
end:
@ -83,46 +71,30 @@ OpenAPI_inline_object_2_t *OpenAPI_inline_object_2_parseFromJSON(cJSON *inline_o
OpenAPI_inline_object_2_t *inline_object_2_local_var = NULL;
cJSON *json_data = cJSON_GetObjectItemCaseSensitive(inline_object_2JSON, "jsonData");
OpenAPI_n2_information_notification_t *json_data_local_nonprim = NULL;
if (json_data) {
json_data_local_nonprim = OpenAPI_n2_information_notification_parseFromJSON(json_data);
OpenAPI_ue_context_cancel_relocate_data_t *json_data_local_nonprim = NULL;
if (json_data) {
json_data_local_nonprim = OpenAPI_ue_context_cancel_relocate_data_parseFromJSON(json_data);
}
cJSON *binary_data_gtpc_message = cJSON_GetObjectItemCaseSensitive(inline_object_2JSON, "binaryDataGtpcMessage");
OpenAPI_binary_t* decoded_str_binary_data_gtpc_message = OpenAPI_malloc(sizeof(OpenAPI_binary_t));
if (binary_data_gtpc_message) {
if (!cJSON_IsString(binary_data_gtpc_message)) {
ogs_error("OpenAPI_inline_object_2_parseFromJSON() failed [binary_data_gtpc_message]");
goto end;
}
cJSON *binary_data_n1_message = cJSON_GetObjectItemCaseSensitive(inline_object_2JSON, "binaryDataN1Message");
OpenAPI_binary_t* decoded_str_binary_data_n1_message = OpenAPI_malloc(sizeof(OpenAPI_binary_t));
if (binary_data_n1_message) {
if (!cJSON_IsString(binary_data_n1_message)) {
ogs_error("OpenAPI_inline_object_2_parseFromJSON() failed [binary_data_n1_message]");
goto end;
}
decoded_str_binary_data_n1_message->data = OpenAPI_base64decode(binary_data_n1_message->valuestring, strlen(binary_data_n1_message->valuestring), &decoded_str_binary_data_n1_message->len);
if (!decoded_str_binary_data_n1_message->data) {
ogs_error("OpenAPI_inline_object_2_parseFromJSON() failed [binary_data_n1_message]");
goto end;
}
}
cJSON *binary_data_n2_information = cJSON_GetObjectItemCaseSensitive(inline_object_2JSON, "binaryDataN2Information");
OpenAPI_binary_t* decoded_str_binary_data_n2_information = OpenAPI_malloc(sizeof(OpenAPI_binary_t));
if (binary_data_n2_information) {
if (!cJSON_IsString(binary_data_n2_information)) {
ogs_error("OpenAPI_inline_object_2_parseFromJSON() failed [binary_data_n2_information]");
goto end;
}
decoded_str_binary_data_n2_information->data = OpenAPI_base64decode(binary_data_n2_information->valuestring, strlen(binary_data_n2_information->valuestring), &decoded_str_binary_data_n2_information->len);
if (!decoded_str_binary_data_n2_information->data) {
ogs_error("OpenAPI_inline_object_2_parseFromJSON() failed [binary_data_n2_information]");
goto end;
}
decoded_str_binary_data_gtpc_message->data = OpenAPI_base64decode(binary_data_gtpc_message->valuestring, strlen(binary_data_gtpc_message->valuestring), &decoded_str_binary_data_gtpc_message->len);
if (!decoded_str_binary_data_gtpc_message->data) {
ogs_error("OpenAPI_inline_object_2_parseFromJSON() failed [binary_data_gtpc_message]");
goto end;
}
}
inline_object_2_local_var = OpenAPI_inline_object_2_create (
json_data ? json_data_local_nonprim : NULL,
binary_data_n1_message ? decoded_str_binary_data_n1_message : NULL,
binary_data_n2_information ? decoded_str_binary_data_n2_information : NULL
);
binary_data_gtpc_message ? decoded_str_binary_data_gtpc_message : NULL
);
return inline_object_2_local_var;
end: