Upgrade SBI(Service-based Interface)

* OpenAPI Generator version: 4.3.1 ==> 5.5.1
* Specification : r16.8.0 (20210629)
This commit is contained in:
Sukchan Lee 2021-07-07 17:32:55 +09:00
parent 2aaa8200c2
commit f278d58a69
1914 changed files with 91329 additions and 57361 deletions

View file

@ -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: