mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +00:00
parent
1ba7a73abd
commit
63df530bb4
123 changed files with 2132 additions and 42 deletions
|
|
@ -62,7 +62,11 @@ cJSON *OpenAPI_flows_convertToJSON(OpenAPI_flows_t *flows)
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_for_each(flows->cont_vers, node) {
|
||||
if (cJSON_AddNumberToObject(cont_versList, "", (uintptr_t)node->data) == NULL) {
|
||||
if (node->data == NULL) {
|
||||
ogs_error("OpenAPI_flows_convertToJSON() failed [cont_vers]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(cont_versList, "", *(double *)node->data) == NULL) {
|
||||
ogs_error("OpenAPI_flows_convertToJSON() failed [cont_vers]");
|
||||
goto end;
|
||||
}
|
||||
|
|
@ -76,7 +80,11 @@ cJSON *OpenAPI_flows_convertToJSON(OpenAPI_flows_t *flows)
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_for_each(flows->f_nums, node) {
|
||||
if (cJSON_AddNumberToObject(f_numsList, "", (uintptr_t)node->data) == NULL) {
|
||||
if (node->data == NULL) {
|
||||
ogs_error("OpenAPI_flows_convertToJSON() failed [f_nums]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddNumberToObject(f_numsList, "", *(double *)node->data) == NULL) {
|
||||
ogs_error("OpenAPI_flows_convertToJSON() failed [f_nums]");
|
||||
goto end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue