mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30: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
|
|
@ -10,7 +10,7 @@ OpenAPI_sor_info_t *OpenAPI_sor_info_create(
|
|||
char *sor_mac_iausf,
|
||||
char *countersor,
|
||||
char *provisioning_time
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_sor_info_t *sor_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_sor_info_t));
|
||||
if (!sor_info_local_var) {
|
||||
|
|
@ -49,16 +49,16 @@ cJSON *OpenAPI_sor_info_convertToJSON(OpenAPI_sor_info_t *sor_info)
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (sor_info->steering_container) {
|
||||
cJSON *steering_container_local_JSON = OpenAPI_steering_container_convertToJSON(sor_info->steering_container);
|
||||
if (steering_container_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [steering_container]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "steeringContainer", steering_container_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [steering_container]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *steering_container_local_JSON = OpenAPI_steering_container_convertToJSON(sor_info->steering_container);
|
||||
if (steering_container_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [steering_container]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "steeringContainer", steering_container_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [steering_container]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (cJSON_AddBoolToObject(item, "ackInd", sor_info->ack_ind) == NULL) {
|
||||
|
|
@ -67,17 +67,17 @@ cJSON *OpenAPI_sor_info_convertToJSON(OpenAPI_sor_info_t *sor_info)
|
|||
}
|
||||
|
||||
if (sor_info->sor_mac_iausf) {
|
||||
if (cJSON_AddStringToObject(item, "sorMacIausf", sor_info->sor_mac_iausf) == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [sor_mac_iausf]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "sorMacIausf", sor_info->sor_mac_iausf) == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [sor_mac_iausf]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (sor_info->countersor) {
|
||||
if (cJSON_AddStringToObject(item, "countersor", sor_info->countersor) == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [countersor]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "countersor", sor_info->countersor) == NULL) {
|
||||
ogs_error("OpenAPI_sor_info_convertToJSON() failed [countersor]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (cJSON_AddStringToObject(item, "provisioningTime", sor_info->provisioning_time) == NULL) {
|
||||
|
|
@ -95,9 +95,9 @@ OpenAPI_sor_info_t *OpenAPI_sor_info_parseFromJSON(cJSON *sor_infoJSON)
|
|||
cJSON *steering_container = cJSON_GetObjectItemCaseSensitive(sor_infoJSON, "steeringContainer");
|
||||
|
||||
OpenAPI_steering_container_t *steering_container_local_nonprim = NULL;
|
||||
if (steering_container) {
|
||||
steering_container_local_nonprim = OpenAPI_steering_container_parseFromJSON(steering_container);
|
||||
}
|
||||
if (steering_container) {
|
||||
steering_container_local_nonprim = OpenAPI_steering_container_parseFromJSON(steering_container);
|
||||
}
|
||||
|
||||
cJSON *ack_ind = cJSON_GetObjectItemCaseSensitive(sor_infoJSON, "ackInd");
|
||||
if (!ack_ind) {
|
||||
|
|
@ -105,7 +105,7 @@ OpenAPI_sor_info_t *OpenAPI_sor_info_parseFromJSON(cJSON *sor_infoJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsBool(ack_ind)) {
|
||||
ogs_error("OpenAPI_sor_info_parseFromJSON() failed [ack_ind]");
|
||||
goto end;
|
||||
|
|
@ -113,21 +113,21 @@ OpenAPI_sor_info_t *OpenAPI_sor_info_parseFromJSON(cJSON *sor_infoJSON)
|
|||
|
||||
cJSON *sor_mac_iausf = cJSON_GetObjectItemCaseSensitive(sor_infoJSON, "sorMacIausf");
|
||||
|
||||
if (sor_mac_iausf) {
|
||||
if (!cJSON_IsString(sor_mac_iausf)) {
|
||||
ogs_error("OpenAPI_sor_info_parseFromJSON() failed [sor_mac_iausf]");
|
||||
goto end;
|
||||
}
|
||||
if (sor_mac_iausf) {
|
||||
if (!cJSON_IsString(sor_mac_iausf)) {
|
||||
ogs_error("OpenAPI_sor_info_parseFromJSON() failed [sor_mac_iausf]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *countersor = cJSON_GetObjectItemCaseSensitive(sor_infoJSON, "countersor");
|
||||
|
||||
if (countersor) {
|
||||
if (!cJSON_IsString(countersor)) {
|
||||
ogs_error("OpenAPI_sor_info_parseFromJSON() failed [countersor]");
|
||||
goto end;
|
||||
}
|
||||
if (countersor) {
|
||||
if (!cJSON_IsString(countersor)) {
|
||||
ogs_error("OpenAPI_sor_info_parseFromJSON() failed [countersor]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *provisioning_time = cJSON_GetObjectItemCaseSensitive(sor_infoJSON, "provisioningTime");
|
||||
if (!provisioning_time) {
|
||||
|
|
@ -135,7 +135,7 @@ OpenAPI_sor_info_t *OpenAPI_sor_info_parseFromJSON(cJSON *sor_infoJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(provisioning_time)) {
|
||||
ogs_error("OpenAPI_sor_info_parseFromJSON() failed [provisioning_time]");
|
||||
goto end;
|
||||
|
|
@ -147,7 +147,7 @@ OpenAPI_sor_info_t *OpenAPI_sor_info_parseFromJSON(cJSON *sor_infoJSON)
|
|||
sor_mac_iausf ? ogs_strdup_or_assert(sor_mac_iausf->valuestring) : NULL,
|
||||
countersor ? ogs_strdup_or_assert(countersor->valuestring) : NULL,
|
||||
ogs_strdup_or_assert(provisioning_time->valuestring)
|
||||
);
|
||||
);
|
||||
|
||||
return sor_info_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue