mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
SBI updated
- openapi-generator version 5.2.0 - add priority/capacity/load in NFProfile/NFService - add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_nr_location_t *OpenAPI_nr_location_create(
|
||||
OpenAPI_tai_t *tai,
|
||||
OpenAPI_ncgi_t *ncgi,
|
||||
bool is_age_of_location_information,
|
||||
int age_of_location_information,
|
||||
char *ue_location_timestamp,
|
||||
char *geographical_information,
|
||||
|
|
@ -20,6 +21,7 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_create(
|
|||
}
|
||||
nr_location_local_var->tai = tai;
|
||||
nr_location_local_var->ncgi = ncgi;
|
||||
nr_location_local_var->is_age_of_location_information = is_age_of_location_information;
|
||||
nr_location_local_var->age_of_location_information = age_of_location_information;
|
||||
nr_location_local_var->ue_location_timestamp = ue_location_timestamp;
|
||||
nr_location_local_var->geographical_information = geographical_information;
|
||||
|
|
@ -76,7 +78,7 @@ cJSON *OpenAPI_nr_location_convertToJSON(OpenAPI_nr_location_t *nr_location)
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (nr_location->age_of_location_information) {
|
||||
if (nr_location->is_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;
|
||||
|
|
@ -131,7 +133,6 @@ 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,12 +142,11 @@ 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 (age_of_location_information) {
|
||||
if (!cJSON_IsNumber(age_of_location_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [age_of_location_information]");
|
||||
goto end;
|
||||
|
|
@ -155,7 +155,7 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_parseFromJSON(cJSON *nr_locationJSON)
|
|||
|
||||
cJSON *ue_location_timestamp = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "ueLocationTimestamp");
|
||||
|
||||
if (ue_location_timestamp) {
|
||||
if (ue_location_timestamp) {
|
||||
if (!cJSON_IsString(ue_location_timestamp)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [ue_location_timestamp]");
|
||||
goto end;
|
||||
|
|
@ -164,7 +164,7 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_parseFromJSON(cJSON *nr_locationJSON)
|
|||
|
||||
cJSON *geographical_information = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "geographicalInformation");
|
||||
|
||||
if (geographical_information) {
|
||||
if (geographical_information) {
|
||||
if (!cJSON_IsString(geographical_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [geographical_information]");
|
||||
goto end;
|
||||
|
|
@ -173,7 +173,7 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_parseFromJSON(cJSON *nr_locationJSON)
|
|||
|
||||
cJSON *geodetic_information = cJSON_GetObjectItemCaseSensitive(nr_locationJSON, "geodeticInformation");
|
||||
|
||||
if (geodetic_information) {
|
||||
if (geodetic_information) {
|
||||
if (!cJSON_IsString(geodetic_information)) {
|
||||
ogs_error("OpenAPI_nr_location_parseFromJSON() failed [geodetic_information]");
|
||||
goto end;
|
||||
|
|
@ -183,13 +183,14 @@ OpenAPI_nr_location_t *OpenAPI_nr_location_parseFromJSON(cJSON *nr_locationJSON)
|
|||
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) {
|
||||
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,
|
||||
ncgi_local_nonprim,
|
||||
age_of_location_information ? true : false,
|
||||
age_of_location_information ? age_of_location_information->valuedouble : 0,
|
||||
ue_location_timestamp ? ogs_strdup_or_assert(ue_location_timestamp->valuestring) : NULL,
|
||||
geographical_information ? ogs_strdup_or_assert(geographical_information->valuestring) : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue