mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30: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
|
|
@ -8,7 +8,7 @@ OpenAPI_rg_auth_ctx_t *OpenAPI_rg_auth_ctx_create(
|
|||
OpenAPI_auth_result_e auth_result,
|
||||
char *supi,
|
||||
int auth_ind
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_rg_auth_ctx_t *rg_auth_ctx_local_var = OpenAPI_malloc(sizeof(OpenAPI_rg_auth_ctx_t));
|
||||
if (!rg_auth_ctx_local_var) {
|
||||
|
|
@ -47,17 +47,17 @@ cJSON *OpenAPI_rg_auth_ctx_convertToJSON(OpenAPI_rg_auth_ctx_t *rg_auth_ctx)
|
|||
}
|
||||
|
||||
if (rg_auth_ctx->supi) {
|
||||
if (cJSON_AddStringToObject(item, "supi", rg_auth_ctx->supi) == NULL) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "supi", rg_auth_ctx->supi) == NULL) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_convertToJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (rg_auth_ctx->auth_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "authInd", rg_auth_ctx->auth_ind) == NULL) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_convertToJSON() failed [auth_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "authInd", rg_auth_ctx->auth_ind) == NULL) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_convertToJSON() failed [auth_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -74,7 +74,7 @@ OpenAPI_rg_auth_ctx_t *OpenAPI_rg_auth_ctx_parseFromJSON(cJSON *rg_auth_ctxJSON)
|
|||
}
|
||||
|
||||
OpenAPI_auth_result_e auth_resultVariable;
|
||||
|
||||
|
||||
if (!cJSON_IsString(auth_result)) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_parseFromJSON() failed [auth_result]");
|
||||
goto end;
|
||||
|
|
@ -83,27 +83,27 @@ OpenAPI_rg_auth_ctx_t *OpenAPI_rg_auth_ctx_parseFromJSON(cJSON *rg_auth_ctxJSON)
|
|||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(rg_auth_ctxJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *auth_ind = cJSON_GetObjectItemCaseSensitive(rg_auth_ctxJSON, "authInd");
|
||||
|
||||
if (auth_ind) {
|
||||
if (!cJSON_IsBool(auth_ind)) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_parseFromJSON() failed [auth_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (auth_ind) {
|
||||
if (!cJSON_IsBool(auth_ind)) {
|
||||
ogs_error("OpenAPI_rg_auth_ctx_parseFromJSON() failed [auth_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
rg_auth_ctx_local_var = OpenAPI_rg_auth_ctx_create (
|
||||
auth_resultVariable,
|
||||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL,
|
||||
auth_ind ? auth_ind->valueint : 0
|
||||
);
|
||||
);
|
||||
|
||||
return rg_auth_ctx_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue