mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +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
|
|
@ -11,7 +11,7 @@ OpenAPI_pcscf_restoration_request_data_t *OpenAPI_pcscf_restoration_request_data
|
|||
char *supi,
|
||||
char *ue_ipv4,
|
||||
char *ue_ipv6
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_pcscf_restoration_request_data_t *pcscf_restoration_request_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_pcscf_restoration_request_data_t));
|
||||
if (!pcscf_restoration_request_data_local_var) {
|
||||
|
|
@ -53,51 +53,51 @@ cJSON *OpenAPI_pcscf_restoration_request_data_convertToJSON(OpenAPI_pcscf_restor
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (pcscf_restoration_request_data->dnn) {
|
||||
if (cJSON_AddStringToObject(item, "dnn", pcscf_restoration_request_data->dnn) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [dnn]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "dnn", pcscf_restoration_request_data->dnn) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [dnn]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pcscf_restoration_request_data->ip_domain) {
|
||||
if (cJSON_AddStringToObject(item, "ipDomain", pcscf_restoration_request_data->ip_domain) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [ip_domain]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "ipDomain", pcscf_restoration_request_data->ip_domain) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [ip_domain]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pcscf_restoration_request_data->slice_info) {
|
||||
cJSON *slice_info_local_JSON = OpenAPI_snssai_convertToJSON(pcscf_restoration_request_data->slice_info);
|
||||
if (slice_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [slice_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sliceInfo", slice_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [slice_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *slice_info_local_JSON = OpenAPI_snssai_convertToJSON(pcscf_restoration_request_data->slice_info);
|
||||
if (slice_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [slice_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sliceInfo", slice_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [slice_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pcscf_restoration_request_data->supi) {
|
||||
if (cJSON_AddStringToObject(item, "supi", pcscf_restoration_request_data->supi) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "supi", pcscf_restoration_request_data->supi) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pcscf_restoration_request_data->ue_ipv4) {
|
||||
if (cJSON_AddStringToObject(item, "ueIpv4", pcscf_restoration_request_data->ue_ipv4) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [ue_ipv4]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "ueIpv4", pcscf_restoration_request_data->ue_ipv4) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [ue_ipv4]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pcscf_restoration_request_data->ue_ipv6) {
|
||||
if (cJSON_AddStringToObject(item, "ueIpv6", pcscf_restoration_request_data->ue_ipv6) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [ue_ipv6]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "ueIpv6", pcscf_restoration_request_data->ue_ipv6) == NULL) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_convertToJSON() failed [ue_ipv6]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -109,55 +109,55 @@ OpenAPI_pcscf_restoration_request_data_t *OpenAPI_pcscf_restoration_request_data
|
|||
OpenAPI_pcscf_restoration_request_data_t *pcscf_restoration_request_data_local_var = NULL;
|
||||
cJSON *dnn = cJSON_GetObjectItemCaseSensitive(pcscf_restoration_request_dataJSON, "dnn");
|
||||
|
||||
if (dnn) {
|
||||
if (!cJSON_IsString(dnn)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [dnn]");
|
||||
goto end;
|
||||
}
|
||||
if (dnn) {
|
||||
if (!cJSON_IsString(dnn)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [dnn]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ip_domain = cJSON_GetObjectItemCaseSensitive(pcscf_restoration_request_dataJSON, "ipDomain");
|
||||
|
||||
if (ip_domain) {
|
||||
if (!cJSON_IsString(ip_domain)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [ip_domain]");
|
||||
goto end;
|
||||
}
|
||||
if (ip_domain) {
|
||||
if (!cJSON_IsString(ip_domain)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [ip_domain]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *slice_info = cJSON_GetObjectItemCaseSensitive(pcscf_restoration_request_dataJSON, "sliceInfo");
|
||||
|
||||
OpenAPI_snssai_t *slice_info_local_nonprim = NULL;
|
||||
if (slice_info) {
|
||||
slice_info_local_nonprim = OpenAPI_snssai_parseFromJSON(slice_info);
|
||||
}
|
||||
if (slice_info) {
|
||||
slice_info_local_nonprim = OpenAPI_snssai_parseFromJSON(slice_info);
|
||||
}
|
||||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(pcscf_restoration_request_dataJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ue_ipv4 = cJSON_GetObjectItemCaseSensitive(pcscf_restoration_request_dataJSON, "ueIpv4");
|
||||
|
||||
if (ue_ipv4) {
|
||||
if (!cJSON_IsString(ue_ipv4)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [ue_ipv4]");
|
||||
goto end;
|
||||
}
|
||||
if (ue_ipv4) {
|
||||
if (!cJSON_IsString(ue_ipv4)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [ue_ipv4]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ue_ipv6 = cJSON_GetObjectItemCaseSensitive(pcscf_restoration_request_dataJSON, "ueIpv6");
|
||||
|
||||
if (ue_ipv6) {
|
||||
if (!cJSON_IsString(ue_ipv6)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [ue_ipv6]");
|
||||
goto end;
|
||||
}
|
||||
if (ue_ipv6) {
|
||||
if (!cJSON_IsString(ue_ipv6)) {
|
||||
ogs_error("OpenAPI_pcscf_restoration_request_data_parseFromJSON() failed [ue_ipv6]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
pcscf_restoration_request_data_local_var = OpenAPI_pcscf_restoration_request_data_create (
|
||||
dnn ? ogs_strdup_or_assert(dnn->valuestring) : NULL,
|
||||
|
|
@ -166,7 +166,7 @@ OpenAPI_pcscf_restoration_request_data_t *OpenAPI_pcscf_restoration_request_data
|
|||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL,
|
||||
ue_ipv4 ? ogs_strdup_or_assert(ue_ipv4->valuestring) : NULL,
|
||||
ue_ipv6 ? ogs_strdup_or_assert(ue_ipv6->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return pcscf_restoration_request_data_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue