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_twap_id_t *OpenAPI_twap_id_create(
char *ss_id,
char *bss_id,
char civic_address
)
)
{
OpenAPI_twap_id_t *twap_id_local_var = OpenAPI_malloc(sizeof(OpenAPI_twap_id_t));
if (!twap_id_local_var) {
@ -48,17 +48,17 @@ cJSON *OpenAPI_twap_id_convertToJSON(OpenAPI_twap_id_t *twap_id)
}
if (twap_id->bss_id) {
if (cJSON_AddStringToObject(item, "bssId", twap_id->bss_id) == NULL) {
ogs_error("OpenAPI_twap_id_convertToJSON() failed [bss_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "bssId", twap_id->bss_id) == NULL) {
ogs_error("OpenAPI_twap_id_convertToJSON() failed [bss_id]");
goto end;
}
}
if (twap_id->civic_address) {
if (cJSON_AddNumberToObject(item, "civicAddress", twap_id->civic_address) == NULL) {
ogs_error("OpenAPI_twap_id_convertToJSON() failed [civic_address]");
goto end;
}
if (cJSON_AddNumberToObject(item, "civicAddress", twap_id->civic_address) == NULL) {
ogs_error("OpenAPI_twap_id_convertToJSON() failed [civic_address]");
goto end;
}
}
end:
@ -74,7 +74,7 @@ OpenAPI_twap_id_t *OpenAPI_twap_id_parseFromJSON(cJSON *twap_idJSON)
goto end;
}
if (!cJSON_IsString(ss_id)) {
ogs_error("OpenAPI_twap_id_parseFromJSON() failed [ss_id]");
goto end;
@ -82,27 +82,27 @@ OpenAPI_twap_id_t *OpenAPI_twap_id_parseFromJSON(cJSON *twap_idJSON)
cJSON *bss_id = cJSON_GetObjectItemCaseSensitive(twap_idJSON, "bssId");
if (bss_id) {
if (!cJSON_IsString(bss_id)) {
ogs_error("OpenAPI_twap_id_parseFromJSON() failed [bss_id]");
goto end;
}
if (bss_id) {
if (!cJSON_IsString(bss_id)) {
ogs_error("OpenAPI_twap_id_parseFromJSON() failed [bss_id]");
goto end;
}
}
cJSON *civic_address = cJSON_GetObjectItemCaseSensitive(twap_idJSON, "civicAddress");
if (civic_address) {
if (!cJSON_IsNumber(civic_address)) {
ogs_error("OpenAPI_twap_id_parseFromJSON() failed [civic_address]");
goto end;
}
if (civic_address) {
if (!cJSON_IsNumber(civic_address)) {
ogs_error("OpenAPI_twap_id_parseFromJSON() failed [civic_address]");
goto end;
}
}
twap_id_local_var = OpenAPI_twap_id_create (
ogs_strdup_or_assert(ss_id->valuestring),
bss_id ? ogs_strdup_or_assert(bss_id->valuestring) : NULL,
civic_address ? civic_address->valueint : 0
);
);
return twap_id_local_var;
end: