mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40: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_pp_active_time_t *OpenAPI_pp_active_time_create(
|
|||
int reference_id,
|
||||
char *validity_time,
|
||||
char *mtc_provider_information
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_pp_active_time_t *pp_active_time_local_var = OpenAPI_malloc(sizeof(OpenAPI_pp_active_time_t));
|
||||
if (!pp_active_time_local_var) {
|
||||
|
|
@ -63,17 +63,17 @@ cJSON *OpenAPI_pp_active_time_convertToJSON(OpenAPI_pp_active_time_t *pp_active_
|
|||
}
|
||||
|
||||
if (pp_active_time->validity_time) {
|
||||
if (cJSON_AddStringToObject(item, "validityTime", pp_active_time->validity_time) == NULL) {
|
||||
ogs_error("OpenAPI_pp_active_time_convertToJSON() failed [validity_time]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "validityTime", pp_active_time->validity_time) == NULL) {
|
||||
ogs_error("OpenAPI_pp_active_time_convertToJSON() failed [validity_time]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (pp_active_time->mtc_provider_information) {
|
||||
if (cJSON_AddStringToObject(item, "mtcProviderInformation", pp_active_time->mtc_provider_information) == NULL) {
|
||||
ogs_error("OpenAPI_pp_active_time_convertToJSON() failed [mtc_provider_information]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "mtcProviderInformation", pp_active_time->mtc_provider_information) == NULL) {
|
||||
ogs_error("OpenAPI_pp_active_time_convertToJSON() failed [mtc_provider_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -89,7 +89,7 @@ OpenAPI_pp_active_time_t *OpenAPI_pp_active_time_parseFromJSON(cJSON *pp_active_
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(active_time)) {
|
||||
ogs_error("OpenAPI_pp_active_time_parseFromJSON() failed [active_time]");
|
||||
goto end;
|
||||
|
|
@ -101,7 +101,7 @@ OpenAPI_pp_active_time_t *OpenAPI_pp_active_time_parseFromJSON(cJSON *pp_active_
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsString(af_instance_id)) {
|
||||
ogs_error("OpenAPI_pp_active_time_parseFromJSON() failed [af_instance_id]");
|
||||
goto end;
|
||||
|
|
@ -113,7 +113,7 @@ OpenAPI_pp_active_time_t *OpenAPI_pp_active_time_parseFromJSON(cJSON *pp_active_
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(reference_id)) {
|
||||
ogs_error("OpenAPI_pp_active_time_parseFromJSON() failed [reference_id]");
|
||||
goto end;
|
||||
|
|
@ -121,21 +121,21 @@ OpenAPI_pp_active_time_t *OpenAPI_pp_active_time_parseFromJSON(cJSON *pp_active_
|
|||
|
||||
cJSON *validity_time = cJSON_GetObjectItemCaseSensitive(pp_active_timeJSON, "validityTime");
|
||||
|
||||
if (validity_time) {
|
||||
if (!cJSON_IsString(validity_time)) {
|
||||
ogs_error("OpenAPI_pp_active_time_parseFromJSON() failed [validity_time]");
|
||||
goto end;
|
||||
}
|
||||
if (validity_time) {
|
||||
if (!cJSON_IsString(validity_time)) {
|
||||
ogs_error("OpenAPI_pp_active_time_parseFromJSON() failed [validity_time]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *mtc_provider_information = cJSON_GetObjectItemCaseSensitive(pp_active_timeJSON, "mtcProviderInformation");
|
||||
|
||||
if (mtc_provider_information) {
|
||||
if (!cJSON_IsString(mtc_provider_information)) {
|
||||
ogs_error("OpenAPI_pp_active_time_parseFromJSON() failed [mtc_provider_information]");
|
||||
goto end;
|
||||
}
|
||||
if (mtc_provider_information) {
|
||||
if (!cJSON_IsString(mtc_provider_information)) {
|
||||
ogs_error("OpenAPI_pp_active_time_parseFromJSON() failed [mtc_provider_information]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
pp_active_time_local_var = OpenAPI_pp_active_time_create (
|
||||
active_time->valuedouble,
|
||||
|
|
@ -143,7 +143,7 @@ OpenAPI_pp_active_time_t *OpenAPI_pp_active_time_parseFromJSON(cJSON *pp_active_
|
|||
reference_id->valuedouble,
|
||||
validity_time ? ogs_strdup_or_assert(validity_time->valuestring) : NULL,
|
||||
mtc_provider_information ? ogs_strdup_or_assert(mtc_provider_information->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return pp_active_time_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue