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
|
|
@ -7,7 +7,7 @@
|
|||
OpenAPI_tscai_input_container_t *OpenAPI_tscai_input_container_create(
|
||||
int periodicity,
|
||||
char *burst_arrival_time
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_tscai_input_container_t *tscai_input_container_local_var = OpenAPI_malloc(sizeof(OpenAPI_tscai_input_container_t));
|
||||
if (!tscai_input_container_local_var) {
|
||||
|
|
@ -40,17 +40,17 @@ cJSON *OpenAPI_tscai_input_container_convertToJSON(OpenAPI_tscai_input_container
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (tscai_input_container->periodicity) {
|
||||
if (cJSON_AddNumberToObject(item, "periodicity", tscai_input_container->periodicity) == NULL) {
|
||||
ogs_error("OpenAPI_tscai_input_container_convertToJSON() failed [periodicity]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(item, "periodicity", tscai_input_container->periodicity) == NULL) {
|
||||
ogs_error("OpenAPI_tscai_input_container_convertToJSON() failed [periodicity]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (tscai_input_container->burst_arrival_time) {
|
||||
if (cJSON_AddStringToObject(item, "burstArrivalTime", tscai_input_container->burst_arrival_time) == NULL) {
|
||||
ogs_error("OpenAPI_tscai_input_container_convertToJSON() failed [burst_arrival_time]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "burstArrivalTime", tscai_input_container->burst_arrival_time) == NULL) {
|
||||
ogs_error("OpenAPI_tscai_input_container_convertToJSON() failed [burst_arrival_time]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -62,26 +62,26 @@ OpenAPI_tscai_input_container_t *OpenAPI_tscai_input_container_parseFromJSON(cJS
|
|||
OpenAPI_tscai_input_container_t *tscai_input_container_local_var = NULL;
|
||||
cJSON *periodicity = cJSON_GetObjectItemCaseSensitive(tscai_input_containerJSON, "periodicity");
|
||||
|
||||
if (periodicity) {
|
||||
if (!cJSON_IsNumber(periodicity)) {
|
||||
ogs_error("OpenAPI_tscai_input_container_parseFromJSON() failed [periodicity]");
|
||||
goto end;
|
||||
}
|
||||
if (periodicity) {
|
||||
if (!cJSON_IsNumber(periodicity)) {
|
||||
ogs_error("OpenAPI_tscai_input_container_parseFromJSON() failed [periodicity]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *burst_arrival_time = cJSON_GetObjectItemCaseSensitive(tscai_input_containerJSON, "burstArrivalTime");
|
||||
|
||||
if (burst_arrival_time) {
|
||||
if (!cJSON_IsString(burst_arrival_time)) {
|
||||
ogs_error("OpenAPI_tscai_input_container_parseFromJSON() failed [burst_arrival_time]");
|
||||
goto end;
|
||||
}
|
||||
if (burst_arrival_time) {
|
||||
if (!cJSON_IsString(burst_arrival_time)) {
|
||||
ogs_error("OpenAPI_tscai_input_container_parseFromJSON() failed [burst_arrival_time]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
tscai_input_container_local_var = OpenAPI_tscai_input_container_create (
|
||||
periodicity ? periodicity->valuedouble : 0,
|
||||
burst_arrival_time ? ogs_strdup_or_assert(burst_arrival_time->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return tscai_input_container_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue