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
|
|
@ -9,7 +9,7 @@ OpenAPI_pgw_info_t *OpenAPI_pgw_info_create(
|
|||
char *pgw_fqdn,
|
||||
OpenAPI_plmn_id_t *plmn_id,
|
||||
int epdg_ind
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_pgw_info_t *pgw_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_pgw_info_t));
|
||||
if (!pgw_info_local_var) {
|
||||
|
|
@ -56,23 +56,23 @@ cJSON *OpenAPI_pgw_info_convertToJSON(OpenAPI_pgw_info_t *pgw_info)
|
|||
}
|
||||
|
||||
if (pgw_info->plmn_id) {
|
||||
cJSON *plmn_id_local_JSON = OpenAPI_plmn_id_convertToJSON(pgw_info->plmn_id);
|
||||
if (plmn_id_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_pgw_info_convertToJSON() failed [plmn_id]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "plmnId", plmn_id_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_pgw_info_convertToJSON() failed [plmn_id]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *plmn_id_local_JSON = OpenAPI_plmn_id_convertToJSON(pgw_info->plmn_id);
|
||||
if (plmn_id_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_pgw_info_convertToJSON() failed [plmn_id]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "plmnId", plmn_id_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_pgw_info_convertToJSON() failed [plmn_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pgw_info->epdg_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "epdgInd", pgw_info->epdg_ind) == NULL) {
|
||||
ogs_error("OpenAPI_pgw_info_convertToJSON() failed [epdg_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "epdgInd", pgw_info->epdg_ind) == NULL) {
|
||||
ogs_error("OpenAPI_pgw_info_convertToJSON() failed [epdg_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -88,7 +88,7 @@ OpenAPI_pgw_info_t *OpenAPI_pgw_info_parseFromJSON(cJSON *pgw_infoJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(dnn)) {
|
||||
ogs_error("OpenAPI_pgw_info_parseFromJSON() failed [dnn]");
|
||||
goto end;
|
||||
|
|
@ -100,7 +100,7 @@ OpenAPI_pgw_info_t *OpenAPI_pgw_info_parseFromJSON(cJSON *pgw_infoJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(pgw_fqdn)) {
|
||||
ogs_error("OpenAPI_pgw_info_parseFromJSON() failed [pgw_fqdn]");
|
||||
goto end;
|
||||
|
|
@ -109,25 +109,25 @@ OpenAPI_pgw_info_t *OpenAPI_pgw_info_parseFromJSON(cJSON *pgw_infoJSON)
|
|||
cJSON *plmn_id = cJSON_GetObjectItemCaseSensitive(pgw_infoJSON, "plmnId");
|
||||
|
||||
OpenAPI_plmn_id_t *plmn_id_local_nonprim = NULL;
|
||||
if (plmn_id) {
|
||||
plmn_id_local_nonprim = OpenAPI_plmn_id_parseFromJSON(plmn_id);
|
||||
}
|
||||
if (plmn_id) {
|
||||
plmn_id_local_nonprim = OpenAPI_plmn_id_parseFromJSON(plmn_id);
|
||||
}
|
||||
|
||||
cJSON *epdg_ind = cJSON_GetObjectItemCaseSensitive(pgw_infoJSON, "epdgInd");
|
||||
|
||||
if (epdg_ind) {
|
||||
if (!cJSON_IsBool(epdg_ind)) {
|
||||
ogs_error("OpenAPI_pgw_info_parseFromJSON() failed [epdg_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (epdg_ind) {
|
||||
if (!cJSON_IsBool(epdg_ind)) {
|
||||
ogs_error("OpenAPI_pgw_info_parseFromJSON() failed [epdg_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
pgw_info_local_var = OpenAPI_pgw_info_create (
|
||||
ogs_strdup_or_assert(dnn->valuestring),
|
||||
ogs_strdup_or_assert(pgw_fqdn->valuestring),
|
||||
plmn_id ? plmn_id_local_nonprim : NULL,
|
||||
epdg_ind ? epdg_ind->valueint : 0
|
||||
);
|
||||
);
|
||||
|
||||
return pgw_info_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue