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_options_response_t *OpenAPI_options_response_create(
char *supported_features
)
)
{
OpenAPI_options_response_t *options_response_local_var = OpenAPI_malloc(sizeof(OpenAPI_options_response_t));
if (!options_response_local_var) {
@ -38,10 +38,10 @@ cJSON *OpenAPI_options_response_convertToJSON(OpenAPI_options_response_t *option
item = cJSON_CreateObject();
if (options_response->supported_features) {
if (cJSON_AddStringToObject(item, "supportedFeatures", options_response->supported_features) == NULL) {
ogs_error("OpenAPI_options_response_convertToJSON() failed [supported_features]");
goto end;
}
if (cJSON_AddStringToObject(item, "supportedFeatures", options_response->supported_features) == NULL) {
ogs_error("OpenAPI_options_response_convertToJSON() failed [supported_features]");
goto end;
}
}
end:
@ -53,16 +53,16 @@ OpenAPI_options_response_t *OpenAPI_options_response_parseFromJSON(cJSON *option
OpenAPI_options_response_t *options_response_local_var = NULL;
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(options_responseJSON, "supportedFeatures");
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_options_response_parseFromJSON() failed [supported_features]");
goto end;
}
if (supported_features) {
if (!cJSON_IsString(supported_features)) {
ogs_error("OpenAPI_options_response_parseFromJSON() failed [supported_features]");
goto end;
}
}
options_response_local_var = OpenAPI_options_response_create (
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL
);
);
return options_response_local_var;
end: