mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_create(
|
||||
OpenAPI_list_t* ue_policy_sections,
|
||||
OpenAPI_list_t *upsis,
|
||||
bool is_andsp_ind,
|
||||
int andsp_ind,
|
||||
char *pei,
|
||||
OpenAPI_list_t *os_ids
|
||||
|
|
@ -18,6 +19,7 @@ OpenAPI_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_create(
|
|||
}
|
||||
ue_policy_set_patch_local_var->ue_policy_sections = ue_policy_sections;
|
||||
ue_policy_set_patch_local_var->upsis = upsis;
|
||||
ue_policy_set_patch_local_var->is_andsp_ind = is_andsp_ind;
|
||||
ue_policy_set_patch_local_var->andsp_ind = andsp_ind;
|
||||
ue_policy_set_patch_local_var->pei = pei;
|
||||
ue_policy_set_patch_local_var->os_ids = os_ids;
|
||||
|
|
@ -96,7 +98,7 @@ cJSON *OpenAPI_ue_policy_set_patch_convertToJSON(OpenAPI_ue_policy_set_patch_t *
|
|||
}
|
||||
}
|
||||
|
||||
if (ue_policy_set_patch->andsp_ind) {
|
||||
if (ue_policy_set_patch->is_andsp_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "andspInd", ue_policy_set_patch->andsp_ind) == NULL) {
|
||||
ogs_error("OpenAPI_ue_policy_set_patch_convertToJSON() failed [andsp_ind]");
|
||||
goto end;
|
||||
|
|
@ -136,7 +138,7 @@ OpenAPI_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_parseFromJSON(cJSON *
|
|||
cJSON *ue_policy_sections = cJSON_GetObjectItemCaseSensitive(ue_policy_set_patchJSON, "uePolicySections");
|
||||
|
||||
OpenAPI_list_t *ue_policy_sectionsList;
|
||||
if (ue_policy_sections) {
|
||||
if (ue_policy_sections) {
|
||||
cJSON *ue_policy_sections_local_map;
|
||||
if (!cJSON_IsObject(ue_policy_sections)) {
|
||||
ogs_error("OpenAPI_ue_policy_set_patch_parseFromJSON() failed [ue_policy_sections]");
|
||||
|
|
@ -159,7 +161,7 @@ OpenAPI_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_parseFromJSON(cJSON *
|
|||
cJSON *upsis = cJSON_GetObjectItemCaseSensitive(ue_policy_set_patchJSON, "upsis");
|
||||
|
||||
OpenAPI_list_t *upsisList;
|
||||
if (upsis) {
|
||||
if (upsis) {
|
||||
cJSON *upsis_local;
|
||||
if (!cJSON_IsArray(upsis)) {
|
||||
ogs_error("OpenAPI_ue_policy_set_patch_parseFromJSON() failed [upsis]");
|
||||
|
|
@ -173,12 +175,12 @@ OpenAPI_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_parseFromJSON(cJSON *
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(upsisList , ogs_strdup_or_assert(upsis_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *andsp_ind = cJSON_GetObjectItemCaseSensitive(ue_policy_set_patchJSON, "andspInd");
|
||||
|
||||
if (andsp_ind) {
|
||||
if (andsp_ind) {
|
||||
if (!cJSON_IsBool(andsp_ind)) {
|
||||
ogs_error("OpenAPI_ue_policy_set_patch_parseFromJSON() failed [andsp_ind]");
|
||||
goto end;
|
||||
|
|
@ -187,7 +189,7 @@ OpenAPI_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_parseFromJSON(cJSON *
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(ue_policy_set_patchJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_ue_policy_set_patch_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
|
@ -197,7 +199,7 @@ OpenAPI_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_parseFromJSON(cJSON *
|
|||
cJSON *os_ids = cJSON_GetObjectItemCaseSensitive(ue_policy_set_patchJSON, "osIds");
|
||||
|
||||
OpenAPI_list_t *os_idsList;
|
||||
if (os_ids) {
|
||||
if (os_ids) {
|
||||
cJSON *os_ids_local;
|
||||
if (!cJSON_IsArray(os_ids)) {
|
||||
ogs_error("OpenAPI_ue_policy_set_patch_parseFromJSON() failed [os_ids]");
|
||||
|
|
@ -211,12 +213,13 @@ OpenAPI_ue_policy_set_patch_t *OpenAPI_ue_policy_set_patch_parseFromJSON(cJSON *
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(os_idsList , ogs_strdup_or_assert(os_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ue_policy_set_patch_local_var = OpenAPI_ue_policy_set_patch_create (
|
||||
ue_policy_sections ? ue_policy_sectionsList : NULL,
|
||||
upsis ? upsisList : NULL,
|
||||
andsp_ind ? true : false,
|
||||
andsp_ind ? andsp_ind->valueint : 0,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
os_ids ? os_idsList : NULL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue