mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +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_requested_qos_t *OpenAPI_requested_qos_create(
|
|||
int _5qi,
|
||||
char *gbr_ul,
|
||||
char *gbr_dl
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_requested_qos_t *requested_qos_local_var = OpenAPI_malloc(sizeof(OpenAPI_requested_qos_t));
|
||||
if (!requested_qos_local_var) {
|
||||
|
|
@ -48,17 +48,17 @@ cJSON *OpenAPI_requested_qos_convertToJSON(OpenAPI_requested_qos_t *requested_qo
|
|||
}
|
||||
|
||||
if (requested_qos->gbr_ul) {
|
||||
if (cJSON_AddStringToObject(item, "gbrUl", requested_qos->gbr_ul) == NULL) {
|
||||
ogs_error("OpenAPI_requested_qos_convertToJSON() failed [gbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "gbrUl", requested_qos->gbr_ul) == NULL) {
|
||||
ogs_error("OpenAPI_requested_qos_convertToJSON() failed [gbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (requested_qos->gbr_dl) {
|
||||
if (cJSON_AddStringToObject(item, "gbrDl", requested_qos->gbr_dl) == NULL) {
|
||||
ogs_error("OpenAPI_requested_qos_convertToJSON() failed [gbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "gbrDl", requested_qos->gbr_dl) == NULL) {
|
||||
ogs_error("OpenAPI_requested_qos_convertToJSON() failed [gbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -74,7 +74,7 @@ OpenAPI_requested_qos_t *OpenAPI_requested_qos_parseFromJSON(cJSON *requested_qo
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(_5qi)) {
|
||||
ogs_error("OpenAPI_requested_qos_parseFromJSON() failed [_5qi]");
|
||||
goto end;
|
||||
|
|
@ -82,27 +82,27 @@ OpenAPI_requested_qos_t *OpenAPI_requested_qos_parseFromJSON(cJSON *requested_qo
|
|||
|
||||
cJSON *gbr_ul = cJSON_GetObjectItemCaseSensitive(requested_qosJSON, "gbrUl");
|
||||
|
||||
if (gbr_ul) {
|
||||
if (!cJSON_IsString(gbr_ul)) {
|
||||
ogs_error("OpenAPI_requested_qos_parseFromJSON() failed [gbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
if (gbr_ul) {
|
||||
if (!cJSON_IsString(gbr_ul)) {
|
||||
ogs_error("OpenAPI_requested_qos_parseFromJSON() failed [gbr_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *gbr_dl = cJSON_GetObjectItemCaseSensitive(requested_qosJSON, "gbrDl");
|
||||
|
||||
if (gbr_dl) {
|
||||
if (!cJSON_IsString(gbr_dl)) {
|
||||
ogs_error("OpenAPI_requested_qos_parseFromJSON() failed [gbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
if (gbr_dl) {
|
||||
if (!cJSON_IsString(gbr_dl)) {
|
||||
ogs_error("OpenAPI_requested_qos_parseFromJSON() failed [gbr_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
requested_qos_local_var = OpenAPI_requested_qos_create (
|
||||
_5qi->valuedouble,
|
||||
gbr_ul ? ogs_strdup_or_assert(gbr_ul->valuestring) : NULL,
|
||||
gbr_dl ? ogs_strdup_or_assert(gbr_dl->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return requested_qos_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue