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

@ -7,7 +7,7 @@
OpenAPI_amf_cond_t *OpenAPI_amf_cond_create(
char *amf_set_id,
char *amf_region_id
)
)
{
OpenAPI_amf_cond_t *amf_cond_local_var = OpenAPI_malloc(sizeof(OpenAPI_amf_cond_t));
if (!amf_cond_local_var) {
@ -41,17 +41,17 @@ cJSON *OpenAPI_amf_cond_convertToJSON(OpenAPI_amf_cond_t *amf_cond)
item = cJSON_CreateObject();
if (amf_cond->amf_set_id) {
if (cJSON_AddStringToObject(item, "amfSetId", amf_cond->amf_set_id) == NULL) {
ogs_error("OpenAPI_amf_cond_convertToJSON() failed [amf_set_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "amfSetId", amf_cond->amf_set_id) == NULL) {
ogs_error("OpenAPI_amf_cond_convertToJSON() failed [amf_set_id]");
goto end;
}
}
if (amf_cond->amf_region_id) {
if (cJSON_AddStringToObject(item, "amfRegionId", amf_cond->amf_region_id) == NULL) {
ogs_error("OpenAPI_amf_cond_convertToJSON() failed [amf_region_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "amfRegionId", amf_cond->amf_region_id) == NULL) {
ogs_error("OpenAPI_amf_cond_convertToJSON() failed [amf_region_id]");
goto end;
}
}
end:
@ -63,26 +63,26 @@ OpenAPI_amf_cond_t *OpenAPI_amf_cond_parseFromJSON(cJSON *amf_condJSON)
OpenAPI_amf_cond_t *amf_cond_local_var = NULL;
cJSON *amf_set_id = cJSON_GetObjectItemCaseSensitive(amf_condJSON, "amfSetId");
if (amf_set_id) {
if (!cJSON_IsString(amf_set_id)) {
ogs_error("OpenAPI_amf_cond_parseFromJSON() failed [amf_set_id]");
goto end;
}
if (amf_set_id) {
if (!cJSON_IsString(amf_set_id)) {
ogs_error("OpenAPI_amf_cond_parseFromJSON() failed [amf_set_id]");
goto end;
}
}
cJSON *amf_region_id = cJSON_GetObjectItemCaseSensitive(amf_condJSON, "amfRegionId");
if (amf_region_id) {
if (!cJSON_IsString(amf_region_id)) {
ogs_error("OpenAPI_amf_cond_parseFromJSON() failed [amf_region_id]");
goto end;
}
if (amf_region_id) {
if (!cJSON_IsString(amf_region_id)) {
ogs_error("OpenAPI_amf_cond_parseFromJSON() failed [amf_region_id]");
goto end;
}
}
amf_cond_local_var = OpenAPI_amf_cond_create (
amf_set_id ? ogs_strdup_or_assert(amf_set_id->valuestring) : NULL,
amf_region_id ? ogs_strdup_or_assert(amf_region_id->valuestring) : NULL
);
);
return amf_cond_local_var;
end: