mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20: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_confirmation_data_response_t *OpenAPI_confirmation_data_response_create(
|
|||
OpenAPI_auth_result_e auth_result,
|
||||
char *supi,
|
||||
char *kseaf
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_confirmation_data_response_t *confirmation_data_response_local_var = OpenAPI_malloc(sizeof(OpenAPI_confirmation_data_response_t));
|
||||
if (!confirmation_data_response_local_var) {
|
||||
|
|
@ -48,17 +48,17 @@ cJSON *OpenAPI_confirmation_data_response_convertToJSON(OpenAPI_confirmation_dat
|
|||
}
|
||||
|
||||
if (confirmation_data_response->supi) {
|
||||
if (cJSON_AddStringToObject(item, "supi", confirmation_data_response->supi) == NULL) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "supi", confirmation_data_response->supi) == NULL) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (confirmation_data_response->kseaf) {
|
||||
if (cJSON_AddStringToObject(item, "kseaf", confirmation_data_response->kseaf) == NULL) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_convertToJSON() failed [kseaf]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "kseaf", confirmation_data_response->kseaf) == NULL) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_convertToJSON() failed [kseaf]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -75,7 +75,7 @@ OpenAPI_confirmation_data_response_t *OpenAPI_confirmation_data_response_parseFr
|
|||
}
|
||||
|
||||
OpenAPI_auth_result_e auth_resultVariable;
|
||||
|
||||
|
||||
if (!cJSON_IsString(auth_result)) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_parseFromJSON() failed [auth_result]");
|
||||
goto end;
|
||||
|
|
@ -84,27 +84,27 @@ OpenAPI_confirmation_data_response_t *OpenAPI_confirmation_data_response_parseFr
|
|||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(confirmation_data_responseJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *kseaf = cJSON_GetObjectItemCaseSensitive(confirmation_data_responseJSON, "kseaf");
|
||||
|
||||
if (kseaf) {
|
||||
if (!cJSON_IsString(kseaf)) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_parseFromJSON() failed [kseaf]");
|
||||
goto end;
|
||||
}
|
||||
if (kseaf) {
|
||||
if (!cJSON_IsString(kseaf)) {
|
||||
ogs_error("OpenAPI_confirmation_data_response_parseFromJSON() failed [kseaf]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
confirmation_data_response_local_var = OpenAPI_confirmation_data_response_create (
|
||||
auth_resultVariable,
|
||||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL,
|
||||
kseaf ? ogs_strdup_or_assert(kseaf->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return confirmation_data_response_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue