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_inline_response_200_t *OpenAPI_inline_response_200_create(
OpenAPI_list_t* _links
)
)
{
OpenAPI_inline_response_200_t *inline_response_200_local_var = OpenAPI_malloc(sizeof(OpenAPI_inline_response_200_t));
if (!inline_response_200_local_var) {
@ -43,22 +43,22 @@ cJSON *OpenAPI_inline_response_200_convertToJSON(OpenAPI_inline_response_200_t *
item = cJSON_CreateObject();
if (inline_response_200->_links) {
cJSON *_links = cJSON_AddObjectToObject(item, "_links");
if (_links == NULL) {
cJSON *_links = cJSON_AddObjectToObject(item, "_links");
if (_links == NULL) {
ogs_error("OpenAPI_inline_response_200_convertToJSON() failed [_links]");
goto end;
}
cJSON *localMapObject = _links;
OpenAPI_lnode_t *_links_node;
if (inline_response_200->_links) {
OpenAPI_list_for_each(inline_response_200->_links, _links_node) {
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)_links_node->data;
cJSON *itemLocal = OpenAPI_links_value_schema_convertToJSON(localKeyValue->value);
if (itemLocal == NULL) {
ogs_error("OpenAPI_inline_response_200_convertToJSON() failed [_links]");
goto end;
}
cJSON *localMapObject = _links;
OpenAPI_lnode_t *_links_node;
if (inline_response_200->_links) {
OpenAPI_list_for_each(inline_response_200->_links, _links_node) {
OpenAPI_map_t *localKeyValue = (OpenAPI_map_t*)_links_node->data;
cJSON *itemLocal = OpenAPI_links_value_schema_convertToJSON(localKeyValue->value);
if (itemLocal == NULL) {
ogs_error("OpenAPI_inline_response_200_convertToJSON() failed [_links]");
goto end;
}
cJSON_AddItemToObject(_links, localKeyValue->key, itemLocal);
cJSON_AddItemToObject(_links, localKeyValue->key, itemLocal);
}
}
}
@ -73,29 +73,29 @@ OpenAPI_inline_response_200_t *OpenAPI_inline_response_200_parseFromJSON(cJSON *
cJSON *_links = cJSON_GetObjectItemCaseSensitive(inline_response_200JSON, "_links");
OpenAPI_list_t *_linksList;
if (_links) {
cJSON *_links_local_map;
if (!cJSON_IsObject(_links)) {
if (_links) {
cJSON *_links_local_map;
if (!cJSON_IsObject(_links)) {
ogs_error("OpenAPI_inline_response_200_parseFromJSON() failed [_links]");
goto end;
}
_linksList = OpenAPI_list_create();
OpenAPI_map_t *localMapKeyPair = NULL;
cJSON_ArrayForEach(_links_local_map, _links) {
cJSON *localMapObject = _links_local_map;
if (!cJSON_IsObject(_links_local_map)) {
ogs_error("OpenAPI_inline_response_200_parseFromJSON() failed [_links]");
goto end;
}
_linksList = OpenAPI_list_create();
OpenAPI_map_t *localMapKeyPair = NULL;
cJSON_ArrayForEach(_links_local_map, _links) {
cJSON *localMapObject = _links_local_map;
if (!cJSON_IsObject(_links_local_map)) {
ogs_error("OpenAPI_inline_response_200_parseFromJSON() failed [_links]");
goto end;
}
localMapKeyPair = OpenAPI_map_create(
localMapObject->string, OpenAPI_links_value_schema_parseFromJSON(localMapObject));
OpenAPI_list_add(_linksList, localMapKeyPair);
}
localMapKeyPair = OpenAPI_map_create(
localMapObject->string, OpenAPI_links_value_schema_parseFromJSON(localMapObject));
OpenAPI_list_add(_linksList , localMapKeyPair);
}
}
inline_response_200_local_var = OpenAPI_inline_response_200_create (
_links ? _linksList : NULL
);
);
return inline_response_200_local_var;
end: