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

@ -6,7 +6,7 @@
OpenAPI_link_t *OpenAPI_link_create(
char *href
)
)
{
OpenAPI_link_t *link_local_var = OpenAPI_malloc(sizeof(OpenAPI_link_t));
if (!link_local_var) {
@ -38,10 +38,10 @@ cJSON *OpenAPI_link_convertToJSON(OpenAPI_link_t *link)
item = cJSON_CreateObject();
if (link->href) {
if (cJSON_AddStringToObject(item, "href", link->href) == NULL) {
ogs_error("OpenAPI_link_convertToJSON() failed [href]");
goto end;
}
if (cJSON_AddStringToObject(item, "href", link->href) == NULL) {
ogs_error("OpenAPI_link_convertToJSON() failed [href]");
goto end;
}
}
end:
@ -53,16 +53,16 @@ OpenAPI_link_t *OpenAPI_link_parseFromJSON(cJSON *linkJSON)
OpenAPI_link_t *link_local_var = NULL;
cJSON *href = cJSON_GetObjectItemCaseSensitive(linkJSON, "href");
if (href) {
if (!cJSON_IsString(href)) {
ogs_error("OpenAPI_link_parseFromJSON() failed [href]");
goto end;
}
if (href) {
if (!cJSON_IsString(href)) {
ogs_error("OpenAPI_link_parseFromJSON() failed [href]");
goto end;
}
}
link_local_var = OpenAPI_link_create (
href ? ogs_strdup_or_assert(href->valuestring) : NULL
);
);
return link_local_var;
end: