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_dnai_information_t *OpenAPI_dnai_information_create(
char *dnai,
int no_dnai_change_ind,
int no_local_psa_change_ind
)
)
{
OpenAPI_dnai_information_t *dnai_information_local_var = OpenAPI_malloc(sizeof(OpenAPI_dnai_information_t));
if (!dnai_information_local_var) {
@ -47,17 +47,17 @@ cJSON *OpenAPI_dnai_information_convertToJSON(OpenAPI_dnai_information_t *dnai_i
}
if (dnai_information->no_dnai_change_ind) {
if (cJSON_AddBoolToObject(item, "noDnaiChangeInd", dnai_information->no_dnai_change_ind) == NULL) {
ogs_error("OpenAPI_dnai_information_convertToJSON() failed [no_dnai_change_ind]");
goto end;
}
if (cJSON_AddBoolToObject(item, "noDnaiChangeInd", dnai_information->no_dnai_change_ind) == NULL) {
ogs_error("OpenAPI_dnai_information_convertToJSON() failed [no_dnai_change_ind]");
goto end;
}
}
if (dnai_information->no_local_psa_change_ind) {
if (cJSON_AddBoolToObject(item, "noLocalPsaChangeInd", dnai_information->no_local_psa_change_ind) == NULL) {
ogs_error("OpenAPI_dnai_information_convertToJSON() failed [no_local_psa_change_ind]");
goto end;
}
if (cJSON_AddBoolToObject(item, "noLocalPsaChangeInd", dnai_information->no_local_psa_change_ind) == NULL) {
ogs_error("OpenAPI_dnai_information_convertToJSON() failed [no_local_psa_change_ind]");
goto end;
}
}
end:
@ -73,7 +73,7 @@ OpenAPI_dnai_information_t *OpenAPI_dnai_information_parseFromJSON(cJSON *dnai_i
goto end;
}
if (!cJSON_IsString(dnai)) {
ogs_error("OpenAPI_dnai_information_parseFromJSON() failed [dnai]");
goto end;
@ -81,27 +81,27 @@ OpenAPI_dnai_information_t *OpenAPI_dnai_information_parseFromJSON(cJSON *dnai_i
cJSON *no_dnai_change_ind = cJSON_GetObjectItemCaseSensitive(dnai_informationJSON, "noDnaiChangeInd");
if (no_dnai_change_ind) {
if (!cJSON_IsBool(no_dnai_change_ind)) {
ogs_error("OpenAPI_dnai_information_parseFromJSON() failed [no_dnai_change_ind]");
goto end;
}
if (no_dnai_change_ind) {
if (!cJSON_IsBool(no_dnai_change_ind)) {
ogs_error("OpenAPI_dnai_information_parseFromJSON() failed [no_dnai_change_ind]");
goto end;
}
}
cJSON *no_local_psa_change_ind = cJSON_GetObjectItemCaseSensitive(dnai_informationJSON, "noLocalPsaChangeInd");
if (no_local_psa_change_ind) {
if (!cJSON_IsBool(no_local_psa_change_ind)) {
ogs_error("OpenAPI_dnai_information_parseFromJSON() failed [no_local_psa_change_ind]");
goto end;
}
if (no_local_psa_change_ind) {
if (!cJSON_IsBool(no_local_psa_change_ind)) {
ogs_error("OpenAPI_dnai_information_parseFromJSON() failed [no_local_psa_change_ind]");
goto end;
}
}
dnai_information_local_var = OpenAPI_dnai_information_create (
ogs_strdup_or_assert(dnai->valuestring),
no_dnai_change_ind ? no_dnai_change_ind->valueint : 0,
no_local_psa_change_ind ? no_local_psa_change_ind->valueint : 0
);
);
return dnai_information_local_var;
end: