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
|
|
@ -8,7 +8,7 @@ OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_create(
|
|||
int dnn_congestion,
|
||||
int snssai_only_congestion,
|
||||
int snssai_dnn_congestion
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_exemption_ind_t *exemption_ind_local_var = OpenAPI_malloc(sizeof(OpenAPI_exemption_ind_t));
|
||||
if (!exemption_ind_local_var) {
|
||||
|
|
@ -41,24 +41,24 @@ cJSON *OpenAPI_exemption_ind_convertToJSON(OpenAPI_exemption_ind_t *exemption_in
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (exemption_ind->dnn_congestion) {
|
||||
if (cJSON_AddBoolToObject(item, "dnnCongestion", exemption_ind->dnn_congestion) == NULL) {
|
||||
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "dnnCongestion", exemption_ind->dnn_congestion) == NULL) {
|
||||
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (exemption_ind->snssai_only_congestion) {
|
||||
if (cJSON_AddBoolToObject(item, "snssaiOnlyCongestion", exemption_ind->snssai_only_congestion) == NULL) {
|
||||
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [snssai_only_congestion]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "snssaiOnlyCongestion", exemption_ind->snssai_only_congestion) == NULL) {
|
||||
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [snssai_only_congestion]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (exemption_ind->snssai_dnn_congestion) {
|
||||
if (cJSON_AddBoolToObject(item, "snssaiDnnCongestion", exemption_ind->snssai_dnn_congestion) == NULL) {
|
||||
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [snssai_dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "snssaiDnnCongestion", exemption_ind->snssai_dnn_congestion) == NULL) {
|
||||
ogs_error("OpenAPI_exemption_ind_convertToJSON() failed [snssai_dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -70,36 +70,36 @@ OpenAPI_exemption_ind_t *OpenAPI_exemption_ind_parseFromJSON(cJSON *exemption_in
|
|||
OpenAPI_exemption_ind_t *exemption_ind_local_var = NULL;
|
||||
cJSON *dnn_congestion = cJSON_GetObjectItemCaseSensitive(exemption_indJSON, "dnnCongestion");
|
||||
|
||||
if (dnn_congestion) {
|
||||
if (!cJSON_IsBool(dnn_congestion)) {
|
||||
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
if (dnn_congestion) {
|
||||
if (!cJSON_IsBool(dnn_congestion)) {
|
||||
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *snssai_only_congestion = cJSON_GetObjectItemCaseSensitive(exemption_indJSON, "snssaiOnlyCongestion");
|
||||
|
||||
if (snssai_only_congestion) {
|
||||
if (!cJSON_IsBool(snssai_only_congestion)) {
|
||||
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [snssai_only_congestion]");
|
||||
goto end;
|
||||
}
|
||||
if (snssai_only_congestion) {
|
||||
if (!cJSON_IsBool(snssai_only_congestion)) {
|
||||
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [snssai_only_congestion]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *snssai_dnn_congestion = cJSON_GetObjectItemCaseSensitive(exemption_indJSON, "snssaiDnnCongestion");
|
||||
|
||||
if (snssai_dnn_congestion) {
|
||||
if (!cJSON_IsBool(snssai_dnn_congestion)) {
|
||||
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [snssai_dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
if (snssai_dnn_congestion) {
|
||||
if (!cJSON_IsBool(snssai_dnn_congestion)) {
|
||||
ogs_error("OpenAPI_exemption_ind_parseFromJSON() failed [snssai_dnn_congestion]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
exemption_ind_local_var = OpenAPI_exemption_ind_create (
|
||||
dnn_congestion ? dnn_congestion->valueint : 0,
|
||||
snssai_only_congestion ? snssai_only_congestion->valueint : 0,
|
||||
snssai_dnn_congestion ? snssai_dnn_congestion->valueint : 0
|
||||
);
|
||||
);
|
||||
|
||||
return exemption_ind_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue