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
|
|
@ -5,11 +5,13 @@
|
|||
#include "af_routing_requirement.h"
|
||||
|
||||
OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_create(
|
||||
bool is_app_reloc,
|
||||
int app_reloc,
|
||||
OpenAPI_list_t *route_to_locs,
|
||||
OpenAPI_spatial_validity_t *sp_val,
|
||||
OpenAPI_list_t *temp_vals,
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub,
|
||||
bool is_addr_preser_ind,
|
||||
int addr_preser_ind
|
||||
)
|
||||
{
|
||||
|
|
@ -17,11 +19,13 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_create(
|
|||
if (!af_routing_requirement_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
af_routing_requirement_local_var->is_app_reloc = is_app_reloc;
|
||||
af_routing_requirement_local_var->app_reloc = app_reloc;
|
||||
af_routing_requirement_local_var->route_to_locs = route_to_locs;
|
||||
af_routing_requirement_local_var->sp_val = sp_val;
|
||||
af_routing_requirement_local_var->temp_vals = temp_vals;
|
||||
af_routing_requirement_local_var->up_path_chg_sub = up_path_chg_sub;
|
||||
af_routing_requirement_local_var->is_addr_preser_ind = is_addr_preser_ind;
|
||||
af_routing_requirement_local_var->addr_preser_ind = addr_preser_ind;
|
||||
|
||||
return af_routing_requirement_local_var;
|
||||
|
|
@ -56,7 +60,7 @@ cJSON *OpenAPI_af_routing_requirement_convertToJSON(OpenAPI_af_routing_requireme
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (af_routing_requirement->app_reloc) {
|
||||
if (af_routing_requirement->is_app_reloc) {
|
||||
if (cJSON_AddBoolToObject(item, "appReloc", af_routing_requirement->app_reloc) == NULL) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_convertToJSON() failed [app_reloc]");
|
||||
goto end;
|
||||
|
|
@ -129,7 +133,7 @@ cJSON *OpenAPI_af_routing_requirement_convertToJSON(OpenAPI_af_routing_requireme
|
|||
}
|
||||
}
|
||||
|
||||
if (af_routing_requirement->addr_preser_ind) {
|
||||
if (af_routing_requirement->is_addr_preser_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "addrPreserInd", af_routing_requirement->addr_preser_ind) == NULL) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_convertToJSON() failed [addr_preser_ind]");
|
||||
goto end;
|
||||
|
|
@ -145,7 +149,7 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
OpenAPI_af_routing_requirement_t *af_routing_requirement_local_var = NULL;
|
||||
cJSON *app_reloc = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "appReloc");
|
||||
|
||||
if (app_reloc) {
|
||||
if (app_reloc) {
|
||||
if (!cJSON_IsBool(app_reloc)) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [app_reloc]");
|
||||
goto end;
|
||||
|
|
@ -155,7 +159,7 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
cJSON *route_to_locs = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "routeToLocs");
|
||||
|
||||
OpenAPI_list_t *route_to_locsList;
|
||||
if (route_to_locs) {
|
||||
if (route_to_locs) {
|
||||
cJSON *route_to_locs_local_nonprimitive;
|
||||
if (!cJSON_IsArray(route_to_locs)){
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [route_to_locs]");
|
||||
|
|
@ -178,14 +182,14 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
cJSON *sp_val = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "spVal");
|
||||
|
||||
OpenAPI_spatial_validity_t *sp_val_local_nonprim = NULL;
|
||||
if (sp_val) {
|
||||
if (sp_val) {
|
||||
sp_val_local_nonprim = OpenAPI_spatial_validity_parseFromJSON(sp_val);
|
||||
}
|
||||
|
||||
cJSON *temp_vals = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "tempVals");
|
||||
|
||||
OpenAPI_list_t *temp_valsList;
|
||||
if (temp_vals) {
|
||||
if (temp_vals) {
|
||||
cJSON *temp_vals_local_nonprimitive;
|
||||
if (!cJSON_IsArray(temp_vals)){
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [temp_vals]");
|
||||
|
|
@ -208,13 +212,13 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
cJSON *up_path_chg_sub = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "upPathChgSub");
|
||||
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub_local_nonprim = NULL;
|
||||
if (up_path_chg_sub) {
|
||||
if (up_path_chg_sub) {
|
||||
up_path_chg_sub_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_sub);
|
||||
}
|
||||
|
||||
cJSON *addr_preser_ind = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "addrPreserInd");
|
||||
|
||||
if (addr_preser_ind) {
|
||||
if (addr_preser_ind) {
|
||||
if (!cJSON_IsBool(addr_preser_ind)) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [addr_preser_ind]");
|
||||
goto end;
|
||||
|
|
@ -222,11 +226,13 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
}
|
||||
|
||||
af_routing_requirement_local_var = OpenAPI_af_routing_requirement_create (
|
||||
app_reloc ? true : false,
|
||||
app_reloc ? app_reloc->valueint : 0,
|
||||
route_to_locs ? route_to_locsList : NULL,
|
||||
sp_val ? sp_val_local_nonprim : NULL,
|
||||
temp_vals ? temp_valsList : NULL,
|
||||
up_path_chg_sub ? up_path_chg_sub_local_nonprim : NULL,
|
||||
addr_preser_ind ? true : false,
|
||||
addr_preser_ind ? addr_preser_ind->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue