mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
OpenAPI_qos_monitoring_info_t *OpenAPI_qos_monitoring_info_create(
|
||||
int qos_monitoring_ind
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_qos_monitoring_info_t *qos_monitoring_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_qos_monitoring_info_t));
|
||||
if (!qos_monitoring_info_local_var) {
|
||||
|
|
@ -37,10 +37,10 @@ cJSON *OpenAPI_qos_monitoring_info_convertToJSON(OpenAPI_qos_monitoring_info_t *
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (qos_monitoring_info->qos_monitoring_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "qosMonitoringInd", qos_monitoring_info->qos_monitoring_ind) == NULL) {
|
||||
ogs_error("OpenAPI_qos_monitoring_info_convertToJSON() failed [qos_monitoring_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "qosMonitoringInd", qos_monitoring_info->qos_monitoring_ind) == NULL) {
|
||||
ogs_error("OpenAPI_qos_monitoring_info_convertToJSON() failed [qos_monitoring_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -52,16 +52,16 @@ OpenAPI_qos_monitoring_info_t *OpenAPI_qos_monitoring_info_parseFromJSON(cJSON *
|
|||
OpenAPI_qos_monitoring_info_t *qos_monitoring_info_local_var = NULL;
|
||||
cJSON *qos_monitoring_ind = cJSON_GetObjectItemCaseSensitive(qos_monitoring_infoJSON, "qosMonitoringInd");
|
||||
|
||||
if (qos_monitoring_ind) {
|
||||
if (!cJSON_IsBool(qos_monitoring_ind)) {
|
||||
ogs_error("OpenAPI_qos_monitoring_info_parseFromJSON() failed [qos_monitoring_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (qos_monitoring_ind) {
|
||||
if (!cJSON_IsBool(qos_monitoring_ind)) {
|
||||
ogs_error("OpenAPI_qos_monitoring_info_parseFromJSON() failed [qos_monitoring_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
qos_monitoring_info_local_var = OpenAPI_qos_monitoring_info_create (
|
||||
qos_monitoring_ind ? qos_monitoring_ind->valueint : 0
|
||||
);
|
||||
);
|
||||
|
||||
return qos_monitoring_info_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue