mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -9,7 +9,7 @@ OpenAPI_qos_flow_notify_item_t *OpenAPI_qos_flow_notify_item_create(
|
|||
OpenAPI_notification_cause_e notification_cause,
|
||||
int current_qos_profile_index,
|
||||
int null_qo_s_profile_index
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_qos_flow_notify_item_t *qos_flow_notify_item_local_var = OpenAPI_malloc(sizeof(OpenAPI_qos_flow_notify_item_t));
|
||||
if (!qos_flow_notify_item_local_var) {
|
||||
|
|
@ -53,17 +53,17 @@ cJSON *OpenAPI_qos_flow_notify_item_convertToJSON(OpenAPI_qos_flow_notify_item_t
|
|||
}
|
||||
|
||||
if (qos_flow_notify_item->current_qos_profile_index) {
|
||||
if (cJSON_AddNumberToObject(item, "currentQosProfileIndex", qos_flow_notify_item->current_qos_profile_index) == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_convertToJSON() failed [current_qos_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "currentQosProfileIndex", qos_flow_notify_item->current_qos_profile_index) == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_convertToJSON() failed [current_qos_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (qos_flow_notify_item->null_qo_s_profile_index) {
|
||||
if (cJSON_AddBoolToObject(item, "nullQoSProfileIndex", qos_flow_notify_item->null_qo_s_profile_index) == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_convertToJSON() failed [null_qo_s_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "nullQoSProfileIndex", qos_flow_notify_item->null_qo_s_profile_index) == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_convertToJSON() failed [null_qo_s_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -79,7 +79,7 @@ OpenAPI_qos_flow_notify_item_t *OpenAPI_qos_flow_notify_item_parseFromJSON(cJSON
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(qfi)) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_parseFromJSON() failed [qfi]");
|
||||
goto end;
|
||||
|
|
@ -92,7 +92,7 @@ OpenAPI_qos_flow_notify_item_t *OpenAPI_qos_flow_notify_item_parseFromJSON(cJSON
|
|||
}
|
||||
|
||||
OpenAPI_notification_cause_e notification_causeVariable;
|
||||
|
||||
|
||||
if (!cJSON_IsString(notification_cause)) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_parseFromJSON() failed [notification_cause]");
|
||||
goto end;
|
||||
|
|
@ -101,28 +101,28 @@ OpenAPI_qos_flow_notify_item_t *OpenAPI_qos_flow_notify_item_parseFromJSON(cJSON
|
|||
|
||||
cJSON *current_qos_profile_index = cJSON_GetObjectItemCaseSensitive(qos_flow_notify_itemJSON, "currentQosProfileIndex");
|
||||
|
||||
if (current_qos_profile_index) {
|
||||
if (!cJSON_IsNumber(current_qos_profile_index)) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_parseFromJSON() failed [current_qos_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
if (current_qos_profile_index) {
|
||||
if (!cJSON_IsNumber(current_qos_profile_index)) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_parseFromJSON() failed [current_qos_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *null_qo_s_profile_index = cJSON_GetObjectItemCaseSensitive(qos_flow_notify_itemJSON, "nullQoSProfileIndex");
|
||||
|
||||
if (null_qo_s_profile_index) {
|
||||
if (!cJSON_IsBool(null_qo_s_profile_index)) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_parseFromJSON() failed [null_qo_s_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
if (null_qo_s_profile_index) {
|
||||
if (!cJSON_IsBool(null_qo_s_profile_index)) {
|
||||
ogs_error("OpenAPI_qos_flow_notify_item_parseFromJSON() failed [null_qo_s_profile_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
qos_flow_notify_item_local_var = OpenAPI_qos_flow_notify_item_create (
|
||||
qfi->valuedouble,
|
||||
notification_causeVariable,
|
||||
current_qos_profile_index ? current_qos_profile_index->valuedouble : 0,
|
||||
null_qo_s_profile_index ? null_qo_s_profile_index->valueint : 0
|
||||
);
|
||||
);
|
||||
|
||||
return qos_flow_notify_item_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue