mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -7,7 +7,7 @@
|
|||
OpenAPI_ue_id_t *OpenAPI_ue_id_create(
|
||||
char *supi,
|
||||
OpenAPI_list_t *gpsi_list
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_ue_id_t *ue_id_local_var = OpenAPI_malloc(sizeof(OpenAPI_ue_id_t));
|
||||
if (!ue_id_local_var) {
|
||||
|
|
@ -49,19 +49,19 @@ cJSON *OpenAPI_ue_id_convertToJSON(OpenAPI_ue_id_t *ue_id)
|
|||
}
|
||||
|
||||
if (ue_id->gpsi_list) {
|
||||
cJSON *gpsi_list = cJSON_AddArrayToObject(item, "gpsiList");
|
||||
if (gpsi_list == NULL) {
|
||||
ogs_error("OpenAPI_ue_id_convertToJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *gpsi_list = cJSON_AddArrayToObject(item, "gpsiList");
|
||||
if (gpsi_list == NULL) {
|
||||
ogs_error("OpenAPI_ue_id_convertToJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *gpsi_list_node;
|
||||
OpenAPI_list_for_each(ue_id->gpsi_list, gpsi_list_node) {
|
||||
if (cJSON_AddStringToObject(gpsi_list, "", (char*)gpsi_list_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_ue_id_convertToJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
OpenAPI_lnode_t *gpsi_list_node;
|
||||
OpenAPI_list_for_each(ue_id->gpsi_list, gpsi_list_node) {
|
||||
if (cJSON_AddStringToObject(gpsi_list, "", (char*)gpsi_list_node->data) == NULL) {
|
||||
ogs_error("OpenAPI_ue_id_convertToJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -77,7 +77,7 @@ OpenAPI_ue_id_t *OpenAPI_ue_id_parseFromJSON(cJSON *ue_idJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_ue_id_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
|
@ -86,27 +86,27 @@ OpenAPI_ue_id_t *OpenAPI_ue_id_parseFromJSON(cJSON *ue_idJSON)
|
|||
cJSON *gpsi_list = cJSON_GetObjectItemCaseSensitive(ue_idJSON, "gpsiList");
|
||||
|
||||
OpenAPI_list_t *gpsi_listList;
|
||||
if (gpsi_list) {
|
||||
cJSON *gpsi_list_local;
|
||||
if (!cJSON_IsArray(gpsi_list)) {
|
||||
ogs_error("OpenAPI_ue_id_parseFromJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
gpsi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(gpsi_list_local, gpsi_list) {
|
||||
if (!cJSON_IsString(gpsi_list_local)) {
|
||||
ogs_error("OpenAPI_ue_id_parseFromJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(gpsi_listList, ogs_strdup_or_assert(gpsi_list_local->valuestring));
|
||||
}
|
||||
if (gpsi_list) {
|
||||
cJSON *gpsi_list_local;
|
||||
if (!cJSON_IsArray(gpsi_list)) {
|
||||
ogs_error("OpenAPI_ue_id_parseFromJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
gpsi_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(gpsi_list_local, gpsi_list) {
|
||||
if (!cJSON_IsString(gpsi_list_local)) {
|
||||
ogs_error("OpenAPI_ue_id_parseFromJSON() failed [gpsi_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(gpsi_listList , ogs_strdup_or_assert(gpsi_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
|
||||
ue_id_local_var = OpenAPI_ue_id_create (
|
||||
ogs_strdup_or_assert(supi->valuestring),
|
||||
gpsi_list ? gpsi_listList : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return ue_id_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue