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
|
|
@ -12,7 +12,7 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_create(
|
|||
char *geographical_information,
|
||||
char *geodetic_information,
|
||||
OpenAPI_global_ran_node_id_t *global_gnb_id
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_nr_location_t *nr_location_local_var = OpenAPI_malloc(sizeof(OpenAPI_nr_location_t));
|
||||
if (!nr_location_local_var) {
|
||||
|
|
@ -77,44 +77,44 @@ cJSON *OpenAPI_nr_location_convertToJSON(OpenAPI_nr_location_t *nr_location)
|
|||
}
|
||||
|
||||
if (nr_location->age_of_location_information) {
|
||||
if (cJSON_AddNumberToObject(item, "ageOfLocationInformation", nr_location->age_of_location_information) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [age_of_location_information]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "ageOfLocationInformation", nr_location->age_of_location_information) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [age_of_location_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (nr_location->ue_location_timestamp) {
|
||||
if (cJSON_AddStringToObject(item, "ueLocationTimestamp", nr_location->ue_location_timestamp) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [ue_location_timestamp]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "ueLocationTimestamp", nr_location->ue_location_timestamp) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [ue_location_timestamp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (nr_location->geographical_information) {
|
||||
if (cJSON_AddStringToObject(item, "geographicalInformation", nr_location->geographical_information) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [geographical_information]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "geographicalInformation", nr_location->geographical_information) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [geographical_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (nr_location->geodetic_information) {
|
||||
if (cJSON_AddStringToObject(item, "geodeticInformation", nr_location->geodetic_information) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [geodetic_information]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "geodeticInformation", nr_location->geodetic_information) == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [geodetic_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (nr_location->global_gnb_id) {
|
||||
cJSON *global_gnb_id_local_JSON = OpenAPI_global_ran_node_id_convertToJSON(nr_location->global_gnb_id);
|
||||
if (global_gnb_id_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [global_gnb_id]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "globalGnbId", global_gnb_id_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [global_gnb_id]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *global_gnb_id_local_JSON = OpenAPI_global_ran_node_id_convertToJSON(nr_location->global_gnb_id);
|
||||
if (global_gnb_id_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [global_gnb_id]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "globalGnbId", global_gnb_id_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_nr_location_convertToJSON() failed [global_gnb_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -131,7 +131,7 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_parseFromJSON(cJSON *nr_locationJSON)
|
|||
}
|
||||
|
||||
OpenAPI_tai_t *tai_local_nonprim = NULL;
|
||||
|
||||
|
||||
tai_local_nonprim = OpenAPI_tai_parseFromJSON(tai);
|
||||
|
||||
cJSON *ncgi = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "ncgi");
|
||||
|
|
@ -141,51 +141,51 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_parseFromJSON(cJSON *nr_locationJSON)
|
|||
}
|
||||
|
||||
OpenAPI_ncgi_t *ncgi_local_nonprim = NULL;
|
||||
|
||||
|
||||
ncgi_local_nonprim = OpenAPI_ncgi_parseFromJSON(ncgi);
|
||||
|
||||
cJSON *age_of_location_information = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "ageOfLocationInformation");
|
||||
|
||||
if (age_of_location_information) {
|
||||
if (!cJSON_IsNumber(age_of_location_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [age_of_location_information]");
|
||||
goto end;
|
||||
}
|
||||
if (age_of_location_information) {
|
||||
if (!cJSON_IsNumber(age_of_location_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [age_of_location_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ue_location_timestamp = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "ueLocationTimestamp");
|
||||
|
||||
if (ue_location_timestamp) {
|
||||
if (!cJSON_IsString(ue_location_timestamp)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [ue_location_timestamp]");
|
||||
goto end;
|
||||
}
|
||||
if (ue_location_timestamp) {
|
||||
if (!cJSON_IsString(ue_location_timestamp)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [ue_location_timestamp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *geographical_information = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "geographicalInformation");
|
||||
|
||||
if (geographical_information) {
|
||||
if (!cJSON_IsString(geographical_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [geographical_information]");
|
||||
goto end;
|
||||
}
|
||||
if (geographical_information) {
|
||||
if (!cJSON_IsString(geographical_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [geographical_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *geodetic_information = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "geodeticInformation");
|
||||
|
||||
if (geodetic_information) {
|
||||
if (!cJSON_IsString(geodetic_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [geodetic_information]");
|
||||
goto end;
|
||||
}
|
||||
if (geodetic_information) {
|
||||
if (!cJSON_IsString(geodetic_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [geodetic_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *global_gnb_id = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "globalGnbId");
|
||||
|
||||
OpenAPI_global_ran_node_id_t *global_gnb_id_local_nonprim = NULL;
|
||||
if (global_gnb_id) {
|
||||
global_gnb_id_local_nonprim = OpenAPI_global_ran_node_id_parseFromJSON(global_gnb_id);
|
||||
}
|
||||
if (global_gnb_id) {
|
||||
global_gnb_id_local_nonprim = OpenAPI_global_ran_node_id_parseFromJSON(global_gnb_id);
|
||||
}
|
||||
|
||||
nr_location_local_var = OpenAPI_nr_location_create (
|
||||
tai_local_nonprim,
|
||||
|
|
@ -195,7 +195,7 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_parseFromJSON(cJSON *nr_locationJSON)
|
|||
geographical_information ? ogs_strdup_or_assert(geographical_information->valuestring) : NULL,
|
||||
geodetic_information ? ogs_strdup_or_assert(geodetic_information->valuestring) : NULL,
|
||||
global_gnb_id ? global_gnb_id_local_nonprim : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return nr_location_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue