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
|
|
@ -7,7 +7,9 @@
|
|||
OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_create(
|
||||
int qfi,
|
||||
OpenAPI_cause_e cause,
|
||||
bool is_current_qos_profile_index,
|
||||
int current_qos_profile_index,
|
||||
bool is_null_qo_s_profile_index,
|
||||
int null_qo_s_profile_index
|
||||
)
|
||||
{
|
||||
|
|
@ -17,7 +19,9 @@ OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_create(
|
|||
}
|
||||
qos_flow_item_local_var->qfi = qfi;
|
||||
qos_flow_item_local_var->cause = cause;
|
||||
qos_flow_item_local_var->is_current_qos_profile_index = is_current_qos_profile_index;
|
||||
qos_flow_item_local_var->current_qos_profile_index = current_qos_profile_index;
|
||||
qos_flow_item_local_var->is_null_qo_s_profile_index = is_null_qo_s_profile_index;
|
||||
qos_flow_item_local_var->null_qo_s_profile_index = null_qo_s_profile_index;
|
||||
|
||||
return qos_flow_item_local_var;
|
||||
|
|
@ -54,14 +58,14 @@ cJSON *OpenAPI_qos_flow_item_convertToJSON(OpenAPI_qos_flow_item_t *qos_flow_ite
|
|||
}
|
||||
}
|
||||
|
||||
if (qos_flow_item->current_qos_profile_index) {
|
||||
if (qos_flow_item->is_current_qos_profile_index) {
|
||||
if (cJSON_AddNumberToObject(item, "currentQosProfileIndex", qos_flow_item->current_qos_profile_index) == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_item_convertToJSON() failed [current_qos_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (qos_flow_item->null_qo_s_profile_index) {
|
||||
if (qos_flow_item->is_null_qo_s_profile_index) {
|
||||
if (cJSON_AddBoolToObject(item, "nullQoSProfileIndex", qos_flow_item->null_qo_s_profile_index) == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_item_convertToJSON() failed [null_qo_s_profile_index]");
|
||||
goto end;
|
||||
|
|
@ -81,7 +85,6 @@ OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_parseFromJSON(cJSON *qos_flow_ite
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(qfi)) {
|
||||
ogs_error("OpenAPI_qos_flow_item_parseFromJSON() failed [qfi]");
|
||||
goto end;
|
||||
|
|
@ -90,7 +93,7 @@ OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_parseFromJSON(cJSON *qos_flow_ite
|
|||
cJSON *cause = cJSON_GetObjectItemCaseSensitive(qos_flow_itemJSON, "cause");
|
||||
|
||||
OpenAPI_cause_e causeVariable;
|
||||
if (cause) {
|
||||
if (cause) {
|
||||
if (!cJSON_IsString(cause)) {
|
||||
ogs_error("OpenAPI_qos_flow_item_parseFromJSON() failed [cause]");
|
||||
goto end;
|
||||
|
|
@ -100,7 +103,7 @@ OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_parseFromJSON(cJSON *qos_flow_ite
|
|||
|
||||
cJSON *current_qos_profile_index = cJSON_GetObjectItemCaseSensitive(qos_flow_itemJSON, "currentQosProfileIndex");
|
||||
|
||||
if (current_qos_profile_index) {
|
||||
if (current_qos_profile_index) {
|
||||
if (!cJSON_IsNumber(current_qos_profile_index)) {
|
||||
ogs_error("OpenAPI_qos_flow_item_parseFromJSON() failed [current_qos_profile_index]");
|
||||
goto end;
|
||||
|
|
@ -109,7 +112,7 @@ OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_parseFromJSON(cJSON *qos_flow_ite
|
|||
|
||||
cJSON *null_qo_s_profile_index = cJSON_GetObjectItemCaseSensitive(qos_flow_itemJSON, "nullQoSProfileIndex");
|
||||
|
||||
if (null_qo_s_profile_index) {
|
||||
if (null_qo_s_profile_index) {
|
||||
if (!cJSON_IsBool(null_qo_s_profile_index)) {
|
||||
ogs_error("OpenAPI_qos_flow_item_parseFromJSON() failed [null_qo_s_profile_index]");
|
||||
goto end;
|
||||
|
|
@ -117,9 +120,12 @@ OpenAPI_qos_flow_item_t *OpenAPI_qos_flow_item_parseFromJSON(cJSON *qos_flow_ite
|
|||
}
|
||||
|
||||
qos_flow_item_local_var = OpenAPI_qos_flow_item_create (
|
||||
|
||||
qfi->valuedouble,
|
||||
cause ? causeVariable : 0,
|
||||
current_qos_profile_index ? true : false,
|
||||
current_qos_profile_index ? current_qos_profile_index->valuedouble : 0,
|
||||
null_qo_s_profile_index ? true : false,
|
||||
null_qo_s_profile_index ? null_qo_s_profile_index->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue