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

@ -8,7 +8,7 @@ OpenAPI_flows_t *OpenAPI_flows_create(
OpenAPI_list_t *cont_vers,
OpenAPI_list_t *f_nums,
int med_comp_n
)
)
{
OpenAPI_flows_t *flows_local_var = OpenAPI_malloc(sizeof(OpenAPI_flows_t));
if (!flows_local_var) {
@ -49,35 +49,35 @@ cJSON *OpenAPI_flows_convertToJSON(OpenAPI_flows_t *flows)
item = cJSON_CreateObject();
if (flows->cont_vers) {
cJSON *cont_vers = cJSON_AddArrayToObject(item, "contVers");
if (cont_vers == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [cont_vers]");
goto end;
}
cJSON *cont_vers = cJSON_AddArrayToObject(item, "contVers");
if (cont_vers == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [cont_vers]");
goto end;
}
OpenAPI_lnode_t *cont_vers_node;
OpenAPI_list_for_each(flows->cont_vers, cont_vers_node) {
if (cJSON_AddNumberToObject(cont_vers, "", *(double *)cont_vers_node->data) == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [cont_vers]");
goto end;
}
}
OpenAPI_lnode_t *cont_vers_node;
OpenAPI_list_for_each(flows->cont_vers, cont_vers_node) {
if (cJSON_AddNumberToObject(cont_vers, "", *(double *)cont_vers_node->data) == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [cont_vers]");
goto end;
}
}
}
if (flows->f_nums) {
cJSON *f_nums = cJSON_AddArrayToObject(item, "fNums");
if (f_nums == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [f_nums]");
goto end;
}
cJSON *f_nums = cJSON_AddArrayToObject(item, "fNums");
if (f_nums == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [f_nums]");
goto end;
}
OpenAPI_lnode_t *f_nums_node;
OpenAPI_list_for_each(flows->f_nums, f_nums_node) {
if (cJSON_AddNumberToObject(f_nums, "", *(double *)f_nums_node->data) == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [f_nums]");
goto end;
}
}
OpenAPI_lnode_t *f_nums_node;
OpenAPI_list_for_each(flows->f_nums, f_nums_node) {
if (cJSON_AddNumberToObject(f_nums, "", *(double *)f_nums_node->data) == NULL) {
ogs_error("OpenAPI_flows_convertToJSON() failed [f_nums]");
goto end;
}
}
}
if (cJSON_AddNumberToObject(item, "medCompN", flows->med_comp_n) == NULL) {
@ -95,42 +95,42 @@ OpenAPI_flows_t *OpenAPI_flows_parseFromJSON(cJSON *flowsJSON)
cJSON *cont_vers = cJSON_GetObjectItemCaseSensitive(flowsJSON, "contVers");
OpenAPI_list_t *cont_versList;
if (cont_vers) {
cJSON *cont_vers_local;
if (!cJSON_IsArray(cont_vers)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [cont_vers]");
goto end;
}
cont_versList = OpenAPI_list_create();
cJSON_ArrayForEach(cont_vers_local, cont_vers) {
if (!cJSON_IsNumber(cont_vers_local)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [cont_vers]");
goto end;
}
OpenAPI_list_add(cont_versList, &cont_vers_local->valuedouble);
}
if (cont_vers) {
cJSON *cont_vers_local;
if (!cJSON_IsArray(cont_vers)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [cont_vers]");
goto end;
}
cont_versList = OpenAPI_list_create();
cJSON_ArrayForEach(cont_vers_local, cont_vers) {
if (!cJSON_IsNumber(cont_vers_local)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [cont_vers]");
goto end;
}
OpenAPI_list_add(cont_versList , &cont_vers_local->valuedouble);
}
}
cJSON *f_nums = cJSON_GetObjectItemCaseSensitive(flowsJSON, "fNums");
OpenAPI_list_t *f_numsList;
if (f_nums) {
cJSON *f_nums_local;
if (!cJSON_IsArray(f_nums)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [f_nums]");
goto end;
}
f_numsList = OpenAPI_list_create();
cJSON_ArrayForEach(f_nums_local, f_nums) {
if (!cJSON_IsNumber(f_nums_local)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [f_nums]");
goto end;
}
OpenAPI_list_add(f_numsList, &f_nums_local->valuedouble);
}
if (f_nums) {
cJSON *f_nums_local;
if (!cJSON_IsArray(f_nums)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [f_nums]");
goto end;
}
f_numsList = OpenAPI_list_create();
cJSON_ArrayForEach(f_nums_local, f_nums) {
if (!cJSON_IsNumber(f_nums_local)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [f_nums]");
goto end;
}
OpenAPI_list_add(f_numsList , &f_nums_local->valuedouble);
}
}
cJSON *med_comp_n = cJSON_GetObjectItemCaseSensitive(flowsJSON, "medCompN");
if (!med_comp_n) {
@ -138,7 +138,7 @@ OpenAPI_flows_t *OpenAPI_flows_parseFromJSON(cJSON *flowsJSON)
goto end;
}
if (!cJSON_IsNumber(med_comp_n)) {
ogs_error("OpenAPI_flows_parseFromJSON() failed [med_comp_n]");
goto end;
@ -148,7 +148,7 @@ OpenAPI_flows_t *OpenAPI_flows_parseFromJSON(cJSON *flowsJSON)
cont_vers ? cont_versList : NULL,
f_nums ? f_numsList : NULL,
med_comp_n->valuedouble
);
);
return flows_local_var;
end: