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_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_create(
|
|||
int pqi,
|
||||
OpenAPI_pc5_flow_bit_rates_t *pc5_flow_bit_rates,
|
||||
int range
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_pc5_qos_flow_item_t *pc5_qos_flow_item_local_var = OpenAPI_malloc(sizeof(OpenAPI_pc5_qos_flow_item_t));
|
||||
if (!pc5_qos_flow_item_local_var) {
|
||||
|
|
@ -47,23 +47,23 @@ cJSON *OpenAPI_pc5_qos_flow_item_convertToJSON(OpenAPI_pc5_qos_flow_item_t *pc5_
|
|||
}
|
||||
|
||||
if (pc5_qos_flow_item->pc5_flow_bit_rates) {
|
||||
cJSON *pc5_flow_bit_rates_local_JSON = OpenAPI_pc5_flow_bit_rates_convertToJSON(pc5_qos_flow_item->pc5_flow_bit_rates);
|
||||
if (pc5_flow_bit_rates_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_convertToJSON() failed [pc5_flow_bit_rates]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "pc5FlowBitRates", pc5_flow_bit_rates_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_convertToJSON() failed [pc5_flow_bit_rates]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *pc5_flow_bit_rates_local_JSON = OpenAPI_pc5_flow_bit_rates_convertToJSON(pc5_qos_flow_item->pc5_flow_bit_rates);
|
||||
if (pc5_flow_bit_rates_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_convertToJSON() failed [pc5_flow_bit_rates]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "pc5FlowBitRates", pc5_flow_bit_rates_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_convertToJSON() failed [pc5_flow_bit_rates]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pc5_qos_flow_item->range) {
|
||||
if (cJSON_AddNumberToObject(item, "range", pc5_qos_flow_item->range) == NULL) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_convertToJSON() failed [range]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "range", pc5_qos_flow_item->range) == NULL) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_convertToJSON() failed [range]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -79,7 +79,7 @@ OpenAPI_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_parseFromJSON(cJSON *pc5_
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(pqi)) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_parseFromJSON() failed [pqi]");
|
||||
goto end;
|
||||
|
|
@ -88,24 +88,24 @@ OpenAPI_pc5_qos_flow_item_t *OpenAPI_pc5_qos_flow_item_parseFromJSON(cJSON *pc5_
|
|||
cJSON *pc5_flow_bit_rates = cJSON_GetObjectItemCaseSensitive(pc5_qos_flow_itemJSON, "pc5FlowBitRates");
|
||||
|
||||
OpenAPI_pc5_flow_bit_rates_t *pc5_flow_bit_rates_local_nonprim = NULL;
|
||||
if (pc5_flow_bit_rates) {
|
||||
pc5_flow_bit_rates_local_nonprim = OpenAPI_pc5_flow_bit_rates_parseFromJSON(pc5_flow_bit_rates);
|
||||
}
|
||||
if (pc5_flow_bit_rates) {
|
||||
pc5_flow_bit_rates_local_nonprim = OpenAPI_pc5_flow_bit_rates_parseFromJSON(pc5_flow_bit_rates);
|
||||
}
|
||||
|
||||
cJSON *range = cJSON_GetObjectItemCaseSensitive(pc5_qos_flow_itemJSON, "range");
|
||||
|
||||
if (range) {
|
||||
if (!cJSON_IsNumber(range)) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_parseFromJSON() failed [range]");
|
||||
goto end;
|
||||
}
|
||||
if (range) {
|
||||
if (!cJSON_IsNumber(range)) {
|
||||
ogs_error("OpenAPI_pc5_qos_flow_item_parseFromJSON() failed [range]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
pc5_qos_flow_item_local_var = OpenAPI_pc5_qos_flow_item_create (
|
||||
pqi->valuedouble,
|
||||
pc5_flow_bit_rates ? pc5_flow_bit_rates_local_nonprim : NULL,
|
||||
range ? range->valuedouble : 0
|
||||
);
|
||||
);
|
||||
|
||||
return pc5_qos_flow_item_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue