SBI updated

- openapi-generator version 5.2.0
- add priority/capacity/load in NFProfile/NFService
- add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
Sukchan Lee 2021-07-16 17:02:33 +09:00
parent 1326fc85dc
commit 039b9d0aaa
930 changed files with 7387 additions and 5434 deletions

View file

@ -7,6 +7,7 @@
OpenAPI_rg_auth_ctx_t *OpenAPI_rg_auth_ctx_create(
OpenAPI_auth_result_e auth_result,
char *supi,
bool is_auth_ind,
int auth_ind
)
{
@ -16,6 +17,7 @@ OpenAPI_rg_auth_ctx_t *OpenAPI_rg_auth_ctx_create(
}
rg_auth_ctx_local_var->auth_result = auth_result;
rg_auth_ctx_local_var->supi = supi;
rg_auth_ctx_local_var->is_auth_ind = is_auth_ind;
rg_auth_ctx_local_var->auth_ind = auth_ind;
return rg_auth_ctx_local_var;
@ -53,7 +55,7 @@ cJSON *OpenAPI_rg_auth_ctx_convertToJSON(OpenAPI_rg_auth_ctx_t *rg_auth_ctx)
}
}
if (rg_auth_ctx->auth_ind) {
if (rg_auth_ctx->is_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;
@ -74,7 +76,6 @@ 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,7 +84,7 @@ 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 (supi) {
if (!cJSON_IsString(supi)) {
ogs_error("OpenAPI_rg_auth_ctx_parseFromJSON() failed [supi]");
goto end;
@ -92,7 +93,7 @@ OpenAPI_rg_auth_ctx_t *OpenAPI_rg_auth_ctx_parseFromJSON(cJSON *rg_auth_ctxJSON)
cJSON *auth_ind = cJSON_GetObjectItemCaseSensitive(rg_auth_ctxJSON, "authInd");
if (auth_ind) {
if (auth_ind) {
if (!cJSON_IsBool(auth_ind)) {
ogs_error("OpenAPI_rg_auth_ctx_parseFromJSON() failed [auth_ind]");
goto end;
@ -102,6 +103,7 @@ OpenAPI_rg_auth_ctx_t *OpenAPI_rg_auth_ctx_parseFromJSON(cJSON *rg_auth_ctxJSON)
rg_auth_ctx_local_var = OpenAPI_rg_auth_ctx_create (
auth_resultVariable,
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL,
auth_ind ? true : false,
auth_ind ? auth_ind->valueint : 0
);