mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +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
|
|
@ -7,7 +7,7 @@
|
|||
OpenAPI_mo_exp_data_counter_t *OpenAPI_mo_exp_data_counter_create(
|
||||
int counter,
|
||||
char *time_stamp
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_mo_exp_data_counter_t *mo_exp_data_counter_local_var = OpenAPI_malloc(sizeof(OpenAPI_mo_exp_data_counter_t));
|
||||
if (!mo_exp_data_counter_local_var) {
|
||||
|
|
@ -45,10 +45,10 @@ cJSON *OpenAPI_mo_exp_data_counter_convertToJSON(OpenAPI_mo_exp_data_counter_t *
|
|||
}
|
||||
|
||||
if (mo_exp_data_counter->time_stamp) {
|
||||
if (cJSON_AddStringToObject(item, "timeStamp", mo_exp_data_counter->time_stamp) == NULL) {
|
||||
ogs_error("OpenAPI_mo_exp_data_counter_convertToJSON() failed [time_stamp]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "timeStamp", mo_exp_data_counter->time_stamp) == NULL) {
|
||||
ogs_error("OpenAPI_mo_exp_data_counter_convertToJSON() failed [time_stamp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -64,7 +64,7 @@ OpenAPI_mo_exp_data_counter_t *OpenAPI_mo_exp_data_counter_parseFromJSON(cJSON *
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(counter)) {
|
||||
ogs_error("OpenAPI_mo_exp_data_counter_parseFromJSON() failed [counter]");
|
||||
goto end;
|
||||
|
|
@ -72,17 +72,17 @@ OpenAPI_mo_exp_data_counter_t *OpenAPI_mo_exp_data_counter_parseFromJSON(cJSON *
|
|||
|
||||
cJSON *time_stamp = cJSON_GetObjectItemCaseSensitive(mo_exp_data_counterJSON, "timeStamp");
|
||||
|
||||
if (time_stamp) {
|
||||
if (!cJSON_IsString(time_stamp)) {
|
||||
ogs_error("OpenAPI_mo_exp_data_counter_parseFromJSON() failed [time_stamp]");
|
||||
goto end;
|
||||
}
|
||||
if (time_stamp) {
|
||||
if (!cJSON_IsString(time_stamp)) {
|
||||
ogs_error("OpenAPI_mo_exp_data_counter_parseFromJSON() failed [time_stamp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
mo_exp_data_counter_local_var = OpenAPI_mo_exp_data_counter_create (
|
||||
counter->valuedouble,
|
||||
time_stamp ? ogs_strdup_or_assert(time_stamp->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return mo_exp_data_counter_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue