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_valid_time_period_t *OpenAPI_valid_time_period_create(
char *start_time,
char *end_time
)
)
{
OpenAPI_valid_time_period_t *valid_time_period_local_var = OpenAPI_malloc(sizeof(OpenAPI_valid_time_period_t));
if (!valid_time_period_local_var) {
@ -41,17 +41,17 @@ cJSON *OpenAPI_valid_time_period_convertToJSON(OpenAPI_valid_time_period_t *vali
item = cJSON_CreateObject();
if (valid_time_period->start_time) {
if (cJSON_AddStringToObject(item, "startTime", valid_time_period->start_time) == NULL) {
ogs_error("OpenAPI_valid_time_period_convertToJSON() failed [start_time]");
goto end;
}
if (cJSON_AddStringToObject(item, "startTime", valid_time_period->start_time) == NULL) {
ogs_error("OpenAPI_valid_time_period_convertToJSON() failed [start_time]");
goto end;
}
}
if (valid_time_period->end_time) {
if (cJSON_AddStringToObject(item, "endTime", valid_time_period->end_time) == NULL) {
ogs_error("OpenAPI_valid_time_period_convertToJSON() failed [end_time]");
goto end;
}
if (cJSON_AddStringToObject(item, "endTime", valid_time_period->end_time) == NULL) {
ogs_error("OpenAPI_valid_time_period_convertToJSON() failed [end_time]");
goto end;
}
}
end:
@ -63,26 +63,26 @@ OpenAPI_valid_time_period_t *OpenAPI_valid_time_period_parseFromJSON(cJSON *vali
OpenAPI_valid_time_period_t *valid_time_period_local_var = NULL;
cJSON *start_time = cJSON_GetObjectItemCaseSensitive(valid_time_periodJSON, "startTime");
if (start_time) {
if (!cJSON_IsString(start_time)) {
ogs_error("OpenAPI_valid_time_period_parseFromJSON() failed [start_time]");
goto end;
}
if (start_time) {
if (!cJSON_IsString(start_time)) {
ogs_error("OpenAPI_valid_time_period_parseFromJSON() failed [start_time]");
goto end;
}
}
cJSON *end_time = cJSON_GetObjectItemCaseSensitive(valid_time_periodJSON, "endTime");
if (end_time) {
if (!cJSON_IsString(end_time)) {
ogs_error("OpenAPI_valid_time_period_parseFromJSON() failed [end_time]");
goto end;
}
if (end_time) {
if (!cJSON_IsString(end_time)) {
ogs_error("OpenAPI_valid_time_period_parseFromJSON() failed [end_time]");
goto end;
}
}
valid_time_period_local_var = OpenAPI_valid_time_period_create (
start_time ? ogs_strdup_or_assert(start_time->valuestring) : NULL,
end_time ? ogs_strdup_or_assert(end_time->valuestring) : NULL
);
);
return valid_time_period_local_var;
end: