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
|
|
@ -9,7 +9,7 @@ OpenAPI_deregistration_data_t *OpenAPI_deregistration_data_create(
|
|||
OpenAPI_access_type_e access_type,
|
||||
int pdu_session_id,
|
||||
char *new_smf_instance_id
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_deregistration_data_t *deregistration_data_local_var = OpenAPI_malloc(sizeof(OpenAPI_deregistration_data_t));
|
||||
if (!deregistration_data_local_var) {
|
||||
|
|
@ -49,24 +49,24 @@ cJSON *OpenAPI_deregistration_data_convertToJSON(OpenAPI_deregistration_data_t *
|
|||
}
|
||||
|
||||
if (deregistration_data->access_type) {
|
||||
if (cJSON_AddStringToObject(item, "accessType", OpenAPI_access_type_ToString(deregistration_data->access_type)) == NULL) {
|
||||
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [access_type]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "accessType", OpenAPI_access_type_ToString(deregistration_data->access_type)) == NULL) {
|
||||
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [access_type]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (deregistration_data->pdu_session_id) {
|
||||
if (cJSON_AddNumberToObject(item, "pduSessionId", deregistration_data->pdu_session_id) == NULL) {
|
||||
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "pduSessionId", deregistration_data->pdu_session_id) == NULL) {
|
||||
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (deregistration_data->new_smf_instance_id) {
|
||||
if (cJSON_AddStringToObject(item, "newSmfInstanceId", deregistration_data->new_smf_instance_id) == NULL) {
|
||||
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [new_smf_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "newSmfInstanceId", deregistration_data->new_smf_instance_id) == NULL) {
|
||||
ogs_error("OpenAPI_deregistration_data_convertToJSON() failed [new_smf_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -83,7 +83,7 @@ OpenAPI_deregistration_data_t *OpenAPI_deregistration_data_parseFromJSON(cJSON *
|
|||
}
|
||||
|
||||
OpenAPI_deregistration_reason_e dereg_reasonVariable;
|
||||
|
||||
|
||||
if (!cJSON_IsString(dereg_reason)) {
|
||||
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [dereg_reason]");
|
||||
goto end;
|
||||
|
|
@ -93,38 +93,38 @@ OpenAPI_deregistration_data_t *OpenAPI_deregistration_data_parseFromJSON(cJSON *
|
|||
cJSON *access_type = cJSON_GetObjectItemCaseSensitive(deregistration_dataJSON, "accessType");
|
||||
|
||||
OpenAPI_access_type_e access_typeVariable;
|
||||
if (access_type) {
|
||||
if (!cJSON_IsString(access_type)) {
|
||||
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [access_type]");
|
||||
goto end;
|
||||
}
|
||||
access_typeVariable = OpenAPI_access_type_FromString(access_type->valuestring);
|
||||
if (access_type) {
|
||||
if (!cJSON_IsString(access_type)) {
|
||||
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [access_type]");
|
||||
goto end;
|
||||
}
|
||||
access_typeVariable = OpenAPI_access_type_FromString(access_type->valuestring);
|
||||
}
|
||||
|
||||
cJSON *pdu_session_id = cJSON_GetObjectItemCaseSensitive(deregistration_dataJSON, "pduSessionId");
|
||||
|
||||
if (pdu_session_id) {
|
||||
if (!cJSON_IsNumber(pdu_session_id)) {
|
||||
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
}
|
||||
if (pdu_session_id) {
|
||||
if (!cJSON_IsNumber(pdu_session_id)) {
|
||||
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *new_smf_instance_id = cJSON_GetObjectItemCaseSensitive(deregistration_dataJSON, "newSmfInstanceId");
|
||||
|
||||
if (new_smf_instance_id) {
|
||||
if (!cJSON_IsString(new_smf_instance_id)) {
|
||||
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [new_smf_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
if (new_smf_instance_id) {
|
||||
if (!cJSON_IsString(new_smf_instance_id)) {
|
||||
ogs_error("OpenAPI_deregistration_data_parseFromJSON() failed [new_smf_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
deregistration_data_local_var = OpenAPI_deregistration_data_create (
|
||||
dereg_reasonVariable,
|
||||
access_type ? access_typeVariable : 0,
|
||||
pdu_session_id ? pdu_session_id->valuedouble : 0,
|
||||
new_smf_instance_id ? ogs_strdup_or_assert(new_smf_instance_id->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return deregistration_data_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue