mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +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
|
|
@ -10,7 +10,9 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_create(
|
|||
OpenAPI_list_t *tai_range_list,
|
||||
char *pgw_fqdn,
|
||||
OpenAPI_list_t *access_type,
|
||||
bool is_priority,
|
||||
int priority,
|
||||
bool is_vsmf_support_ind,
|
||||
int vsmf_support_ind
|
||||
)
|
||||
{
|
||||
|
|
@ -23,7 +25,9 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_create(
|
|||
smf_info_local_var->tai_range_list = tai_range_list;
|
||||
smf_info_local_var->pgw_fqdn = pgw_fqdn;
|
||||
smf_info_local_var->access_type = access_type;
|
||||
smf_info_local_var->is_priority = is_priority;
|
||||
smf_info_local_var->priority = priority;
|
||||
smf_info_local_var->is_vsmf_support_ind = is_vsmf_support_ind;
|
||||
smf_info_local_var->vsmf_support_ind = vsmf_support_ind;
|
||||
|
||||
return smf_info_local_var;
|
||||
|
|
@ -142,14 +146,14 @@ cJSON *OpenAPI_smf_info_convertToJSON(OpenAPI_smf_info_t *smf_info)
|
|||
}
|
||||
}
|
||||
|
||||
if (smf_info->priority) {
|
||||
if (smf_info->is_priority) {
|
||||
if (cJSON_AddNumberToObject(item, "priority", smf_info->priority) == NULL) {
|
||||
ogs_error("OpenAPI_smf_info_convertToJSON() failed [priority]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (smf_info->vsmf_support_ind) {
|
||||
if (smf_info->is_vsmf_support_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "vsmfSupportInd", smf_info->vsmf_support_ind) == NULL) {
|
||||
ogs_error("OpenAPI_smf_info_convertToJSON() failed [vsmf_support_ind]");
|
||||
goto end;
|
||||
|
|
@ -170,7 +174,6 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
}
|
||||
|
||||
OpenAPI_list_t *s_nssai_smf_info_listList;
|
||||
|
||||
cJSON *s_nssai_smf_info_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(s_nssai_smf_info_list)){
|
||||
ogs_error("OpenAPI_smf_info_parseFromJSON() failed [s_nssai_smf_info_list]");
|
||||
|
|
@ -192,7 +195,7 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
cJSON *tai_list = cJSON_GetObjectItemCaseSensitive(smf_infoJSON, "taiList");
|
||||
|
||||
OpenAPI_list_t *tai_listList;
|
||||
if (tai_list) {
|
||||
if (tai_list) {
|
||||
cJSON *tai_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tai_list)){
|
||||
ogs_error("OpenAPI_smf_info_parseFromJSON() failed [tai_list]");
|
||||
|
|
@ -215,7 +218,7 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
cJSON *tai_range_list = cJSON_GetObjectItemCaseSensitive(smf_infoJSON, "taiRangeList");
|
||||
|
||||
OpenAPI_list_t *tai_range_listList;
|
||||
if (tai_range_list) {
|
||||
if (tai_range_list) {
|
||||
cJSON *tai_range_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tai_range_list)){
|
||||
ogs_error("OpenAPI_smf_info_parseFromJSON() failed [tai_range_list]");
|
||||
|
|
@ -237,7 +240,7 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
|
||||
cJSON *pgw_fqdn = cJSON_GetObjectItemCaseSensitive(smf_infoJSON, "pgwFqdn");
|
||||
|
||||
if (pgw_fqdn) {
|
||||
if (pgw_fqdn) {
|
||||
if (!cJSON_IsString(pgw_fqdn)) {
|
||||
ogs_error("OpenAPI_smf_info_parseFromJSON() failed [pgw_fqdn]");
|
||||
goto end;
|
||||
|
|
@ -247,7 +250,7 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
cJSON *access_type = cJSON_GetObjectItemCaseSensitive(smf_infoJSON, "accessType");
|
||||
|
||||
OpenAPI_list_t *access_typeList;
|
||||
if (access_type) {
|
||||
if (access_type) {
|
||||
cJSON *access_type_local_nonprimitive;
|
||||
if (!cJSON_IsArray(access_type)) {
|
||||
ogs_error("OpenAPI_smf_info_parseFromJSON() failed [access_type]");
|
||||
|
|
@ -268,7 +271,7 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
|
||||
cJSON *priority = cJSON_GetObjectItemCaseSensitive(smf_infoJSON, "priority");
|
||||
|
||||
if (priority) {
|
||||
if (priority) {
|
||||
if (!cJSON_IsNumber(priority)) {
|
||||
ogs_error("OpenAPI_smf_info_parseFromJSON() failed [priority]");
|
||||
goto end;
|
||||
|
|
@ -277,7 +280,7 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
|
||||
cJSON *vsmf_support_ind = cJSON_GetObjectItemCaseSensitive(smf_infoJSON, "vsmfSupportInd");
|
||||
|
||||
if (vsmf_support_ind) {
|
||||
if (vsmf_support_ind) {
|
||||
if (!cJSON_IsBool(vsmf_support_ind)) {
|
||||
ogs_error("OpenAPI_smf_info_parseFromJSON() failed [vsmf_support_ind]");
|
||||
goto end;
|
||||
|
|
@ -290,7 +293,9 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
|
|||
tai_range_list ? tai_range_listList : NULL,
|
||||
pgw_fqdn ? ogs_strdup_or_assert(pgw_fqdn->valuestring) : NULL,
|
||||
access_type ? access_typeList : NULL,
|
||||
priority ? true : false,
|
||||
priority ? priority->valuedouble : 0,
|
||||
vsmf_support_ind ? true : false,
|
||||
vsmf_support_ind ? vsmf_support_ind->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue