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
|
|
@ -10,7 +10,7 @@ OpenAPI_v2x_context_t *OpenAPI_v2x_context_create(
|
|||
char *nr_ue_sidelink_ambr,
|
||||
char *lte_ue_sidelink_ambr,
|
||||
OpenAPI_pc5_qo_s_para_t *pc5_qo_s_para
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_v2x_context_t *v2x_context_local_var = OpenAPI_malloc(sizeof(OpenAPI_v2x_context_t));
|
||||
if (!v2x_context_local_var) {
|
||||
|
|
@ -50,56 +50,56 @@ cJSON *OpenAPI_v2x_context_convertToJSON(OpenAPI_v2x_context_t *v2x_context)
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (v2x_context->nr_v2x_services_auth) {
|
||||
cJSON *nr_v2x_services_auth_local_JSON = OpenAPI_nr_v2x_auth_convertToJSON(v2x_context->nr_v2x_services_auth);
|
||||
if (nr_v2x_services_auth_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [nr_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "nrV2xServicesAuth", nr_v2x_services_auth_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [nr_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *nr_v2x_services_auth_local_JSON = OpenAPI_nr_v2x_auth_convertToJSON(v2x_context->nr_v2x_services_auth);
|
||||
if (nr_v2x_services_auth_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [nr_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "nrV2xServicesAuth", nr_v2x_services_auth_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [nr_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (v2x_context->lte_v2x_services_auth) {
|
||||
cJSON *lte_v2x_services_auth_local_JSON = OpenAPI_lte_v2x_auth_convertToJSON(v2x_context->lte_v2x_services_auth);
|
||||
if (lte_v2x_services_auth_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [lte_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "lteV2xServicesAuth", lte_v2x_services_auth_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [lte_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *lte_v2x_services_auth_local_JSON = OpenAPI_lte_v2x_auth_convertToJSON(v2x_context->lte_v2x_services_auth);
|
||||
if (lte_v2x_services_auth_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [lte_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "lteV2xServicesAuth", lte_v2x_services_auth_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [lte_v2x_services_auth]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (v2x_context->nr_ue_sidelink_ambr) {
|
||||
if (cJSON_AddStringToObject(item, "nrUeSidelinkAmbr", v2x_context->nr_ue_sidelink_ambr) == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [nr_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "nrUeSidelinkAmbr", v2x_context->nr_ue_sidelink_ambr) == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [nr_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (v2x_context->lte_ue_sidelink_ambr) {
|
||||
if (cJSON_AddStringToObject(item, "lteUeSidelinkAmbr", v2x_context->lte_ue_sidelink_ambr) == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [lte_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "lteUeSidelinkAmbr", v2x_context->lte_ue_sidelink_ambr) == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [lte_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (v2x_context->pc5_qo_s_para) {
|
||||
cJSON *pc5_qo_s_para_local_JSON = OpenAPI_pc5_qo_s_para_convertToJSON(v2x_context->pc5_qo_s_para);
|
||||
if (pc5_qo_s_para_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [pc5_qo_s_para]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "Pc5QoSPara", pc5_qo_s_para_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [pc5_qo_s_para]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *pc5_qo_s_para_local_JSON = OpenAPI_pc5_qo_s_para_convertToJSON(v2x_context->pc5_qo_s_para);
|
||||
if (pc5_qo_s_para_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [pc5_qo_s_para]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "Pc5QoSPara", pc5_qo_s_para_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_v2x_context_convertToJSON() failed [pc5_qo_s_para]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -112,41 +112,41 @@ OpenAPI_v2x_context_t *OpenAPI_v2x_context_parseFromJSON(cJSON *v2x_contextJSON)
|
|||
cJSON *nr_v2x_services_auth = cJSON_GetObjectItemCaseSensitive(v2x_contextJSON, "nrV2xServicesAuth");
|
||||
|
||||
OpenAPI_nr_v2x_auth_t *nr_v2x_services_auth_local_nonprim = NULL;
|
||||
if (nr_v2x_services_auth) {
|
||||
nr_v2x_services_auth_local_nonprim = OpenAPI_nr_v2x_auth_parseFromJSON(nr_v2x_services_auth);
|
||||
}
|
||||
if (nr_v2x_services_auth) {
|
||||
nr_v2x_services_auth_local_nonprim = OpenAPI_nr_v2x_auth_parseFromJSON(nr_v2x_services_auth);
|
||||
}
|
||||
|
||||
cJSON *lte_v2x_services_auth = cJSON_GetObjectItemCaseSensitive(v2x_contextJSON, "lteV2xServicesAuth");
|
||||
|
||||
OpenAPI_lte_v2x_auth_t *lte_v2x_services_auth_local_nonprim = NULL;
|
||||
if (lte_v2x_services_auth) {
|
||||
lte_v2x_services_auth_local_nonprim = OpenAPI_lte_v2x_auth_parseFromJSON(lte_v2x_services_auth);
|
||||
}
|
||||
if (lte_v2x_services_auth) {
|
||||
lte_v2x_services_auth_local_nonprim = OpenAPI_lte_v2x_auth_parseFromJSON(lte_v2x_services_auth);
|
||||
}
|
||||
|
||||
cJSON *nr_ue_sidelink_ambr = cJSON_GetObjectItemCaseSensitive(v2x_contextJSON, "nrUeSidelinkAmbr");
|
||||
|
||||
if (nr_ue_sidelink_ambr) {
|
||||
if (!cJSON_IsString(nr_ue_sidelink_ambr)) {
|
||||
ogs_error("OpenAPI_v2x_context_parseFromJSON() failed [nr_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
if (nr_ue_sidelink_ambr) {
|
||||
if (!cJSON_IsString(nr_ue_sidelink_ambr)) {
|
||||
ogs_error("OpenAPI_v2x_context_parseFromJSON() failed [nr_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *lte_ue_sidelink_ambr = cJSON_GetObjectItemCaseSensitive(v2x_contextJSON, "lteUeSidelinkAmbr");
|
||||
|
||||
if (lte_ue_sidelink_ambr) {
|
||||
if (!cJSON_IsString(lte_ue_sidelink_ambr)) {
|
||||
ogs_error("OpenAPI_v2x_context_parseFromJSON() failed [lte_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
if (lte_ue_sidelink_ambr) {
|
||||
if (!cJSON_IsString(lte_ue_sidelink_ambr)) {
|
||||
ogs_error("OpenAPI_v2x_context_parseFromJSON() failed [lte_ue_sidelink_ambr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pc5_qo_s_para = cJSON_GetObjectItemCaseSensitive(v2x_contextJSON, "Pc5QoSPara");
|
||||
|
||||
OpenAPI_pc5_qo_s_para_t *pc5_qo_s_para_local_nonprim = NULL;
|
||||
if (pc5_qo_s_para) {
|
||||
pc5_qo_s_para_local_nonprim = OpenAPI_pc5_qo_s_para_parseFromJSON(pc5_qo_s_para);
|
||||
}
|
||||
if (pc5_qo_s_para) {
|
||||
pc5_qo_s_para_local_nonprim = OpenAPI_pc5_qo_s_para_parseFromJSON(pc5_qo_s_para);
|
||||
}
|
||||
|
||||
v2x_context_local_var = OpenAPI_v2x_context_create (
|
||||
nr_v2x_services_auth ? nr_v2x_services_auth_local_nonprim : NULL,
|
||||
|
|
@ -154,7 +154,7 @@ OpenAPI_v2x_context_t *OpenAPI_v2x_context_parseFromJSON(cJSON *v2x_contextJSON)
|
|||
nr_ue_sidelink_ambr ? ogs_strdup_or_assert(nr_ue_sidelink_ambr->valuestring) : NULL,
|
||||
lte_ue_sidelink_ambr ? ogs_strdup_or_assert(lte_ue_sidelink_ambr->valuestring) : NULL,
|
||||
pc5_qo_s_para ? pc5_qo_s_para_local_nonprim : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return v2x_context_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue