mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +00:00
arch: DB schema Changes (#796)
- New function : NSSF - New feature : SMF selection
This commit is contained in:
parent
c6bfbed922
commit
9af4268bab
691 changed files with 40727 additions and 18985 deletions
|
|
@ -12,7 +12,8 @@ OpenAPI_problem_details_2_t *OpenAPI_problem_details_2_create(
|
|||
char *instance,
|
||||
char *cause,
|
||||
OpenAPI_list_t *invalid_params,
|
||||
char *supported_features
|
||||
char *supported_features,
|
||||
char *target_scp
|
||||
)
|
||||
{
|
||||
OpenAPI_problem_details_2_t *problem_details_2_local_var = OpenAPI_malloc(sizeof(OpenAPI_problem_details_2_t));
|
||||
|
|
@ -27,6 +28,7 @@ OpenAPI_problem_details_2_t *OpenAPI_problem_details_2_create(
|
|||
problem_details_2_local_var->cause = cause;
|
||||
problem_details_2_local_var->invalid_params = invalid_params;
|
||||
problem_details_2_local_var->supported_features = supported_features;
|
||||
problem_details_2_local_var->target_scp = target_scp;
|
||||
|
||||
return problem_details_2_local_var;
|
||||
}
|
||||
|
|
@ -47,6 +49,7 @@ void OpenAPI_problem_details_2_free(OpenAPI_problem_details_2_t *problem_details
|
|||
}
|
||||
OpenAPI_list_free(problem_details_2->invalid_params);
|
||||
ogs_free(problem_details_2->supported_features);
|
||||
ogs_free(problem_details_2->target_scp);
|
||||
ogs_free(problem_details_2);
|
||||
}
|
||||
|
||||
|
|
@ -129,6 +132,13 @@ cJSON *OpenAPI_problem_details_2_convertToJSON(OpenAPI_problem_details_2_t *prob
|
|||
}
|
||||
}
|
||||
|
||||
if (problem_details_2->target_scp) {
|
||||
if (cJSON_AddStringToObject(item, "targetScp", problem_details_2->target_scp) == NULL) {
|
||||
ogs_error("OpenAPI_problem_details_2_convertToJSON() failed [target_scp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
|
@ -222,6 +232,15 @@ OpenAPI_problem_details_2_t *OpenAPI_problem_details_2_parseFromJSON(cJSON *prob
|
|||
}
|
||||
}
|
||||
|
||||
cJSON *target_scp = cJSON_GetObjectItemCaseSensitive(problem_details_2JSON, "targetScp");
|
||||
|
||||
if (target_scp) {
|
||||
if (!cJSON_IsString(target_scp)) {
|
||||
ogs_error("OpenAPI_problem_details_2_parseFromJSON() failed [target_scp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
problem_details_2_local_var = OpenAPI_problem_details_2_create (
|
||||
type ? ogs_strdup(type->valuestring) : NULL,
|
||||
title ? ogs_strdup(title->valuestring) : NULL,
|
||||
|
|
@ -230,7 +249,8 @@ OpenAPI_problem_details_2_t *OpenAPI_problem_details_2_parseFromJSON(cJSON *prob
|
|||
instance ? ogs_strdup(instance->valuestring) : NULL,
|
||||
cause ? ogs_strdup(cause->valuestring) : NULL,
|
||||
invalid_params ? invalid_paramsList : NULL,
|
||||
supported_features ? ogs_strdup(supported_features->valuestring) : NULL
|
||||
supported_features ? ogs_strdup(supported_features->valuestring) : NULL,
|
||||
target_scp ? ogs_strdup(target_scp->valuestring) : NULL
|
||||
);
|
||||
|
||||
return problem_details_2_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue