mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +00:00
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:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_problem_details_t *OpenAPI_problem_details_create(
|
||||
char *type,
|
||||
char *title,
|
||||
bool is_status,
|
||||
int status,
|
||||
char *detail,
|
||||
char *instance,
|
||||
|
|
@ -24,6 +25,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_create(
|
|||
}
|
||||
problem_details_local_var->type = type;
|
||||
problem_details_local_var->title = title;
|
||||
problem_details_local_var->is_status = is_status;
|
||||
problem_details_local_var->status = status;
|
||||
problem_details_local_var->detail = detail;
|
||||
problem_details_local_var->instance = instance;
|
||||
|
|
@ -83,7 +85,7 @@ cJSON *OpenAPI_problem_details_convertToJSON(OpenAPI_problem_details_t *problem_
|
|||
}
|
||||
}
|
||||
|
||||
if (problem_details->status) {
|
||||
if (problem_details->is_status) {
|
||||
if (cJSON_AddNumberToObject(item, "status", problem_details->status) == NULL) {
|
||||
ogs_error("OpenAPI_problem_details_convertToJSON() failed [status]");
|
||||
goto end;
|
||||
|
|
@ -180,7 +182,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
OpenAPI_problem_details_t *problem_details_local_var = NULL;
|
||||
cJSON *type = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "type");
|
||||
|
||||
if (type) {
|
||||
if (type) {
|
||||
if (!cJSON_IsString(type)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [type]");
|
||||
goto end;
|
||||
|
|
@ -189,7 +191,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
|
||||
cJSON *title = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "title");
|
||||
|
||||
if (title) {
|
||||
if (title) {
|
||||
if (!cJSON_IsString(title)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [title]");
|
||||
goto end;
|
||||
|
|
@ -198,7 +200,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
|
||||
cJSON *status = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "status");
|
||||
|
||||
if (status) {
|
||||
if (status) {
|
||||
if (!cJSON_IsNumber(status)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [status]");
|
||||
goto end;
|
||||
|
|
@ -207,7 +209,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
|
||||
cJSON *detail = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "detail");
|
||||
|
||||
if (detail) {
|
||||
if (detail) {
|
||||
if (!cJSON_IsString(detail)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [detail]");
|
||||
goto end;
|
||||
|
|
@ -216,7 +218,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
|
||||
cJSON *instance = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "instance");
|
||||
|
||||
if (instance) {
|
||||
if (instance) {
|
||||
if (!cJSON_IsString(instance)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [instance]");
|
||||
goto end;
|
||||
|
|
@ -225,7 +227,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
|
||||
cJSON *cause = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "cause");
|
||||
|
||||
if (cause) {
|
||||
if (cause) {
|
||||
if (!cJSON_IsString(cause)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [cause]");
|
||||
goto end;
|
||||
|
|
@ -235,7 +237,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
cJSON *invalid_params = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "invalidParams");
|
||||
|
||||
OpenAPI_list_t *invalid_paramsList;
|
||||
if (invalid_params) {
|
||||
if (invalid_params) {
|
||||
cJSON *invalid_params_local_nonprimitive;
|
||||
if (!cJSON_IsArray(invalid_params)){
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [invalid_params]");
|
||||
|
|
@ -257,7 +259,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
|
@ -267,20 +269,20 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
cJSON *access_token_error = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "accessTokenError");
|
||||
|
||||
OpenAPI_access_token_err_t *access_token_error_local_nonprim = NULL;
|
||||
if (access_token_error) {
|
||||
if (access_token_error) {
|
||||
access_token_error_local_nonprim = OpenAPI_access_token_err_parseFromJSON(access_token_error);
|
||||
}
|
||||
|
||||
cJSON *access_token_request = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "accessTokenRequest");
|
||||
|
||||
OpenAPI_access_token_req_t *access_token_request_local_nonprim = NULL;
|
||||
if (access_token_request) {
|
||||
if (access_token_request) {
|
||||
access_token_request_local_nonprim = OpenAPI_access_token_req_parseFromJSON(access_token_request);
|
||||
}
|
||||
|
||||
cJSON *nrf_id = cJSON_GetObjectItemCaseSensitive(problem_detailsJSON, "nrfId");
|
||||
|
||||
if (nrf_id) {
|
||||
if (nrf_id) {
|
||||
if (!cJSON_IsString(nrf_id)) {
|
||||
ogs_error("OpenAPI_problem_details_parseFromJSON() failed [nrf_id]");
|
||||
goto end;
|
||||
|
|
@ -290,6 +292,7 @@ OpenAPI_problem_details_t *OpenAPI_problem_details_parseFromJSON(cJSON *problem_
|
|||
problem_details_local_var = OpenAPI_problem_details_create (
|
||||
type ? ogs_strdup_or_assert(type->valuestring) : NULL,
|
||||
title ? ogs_strdup_or_assert(title->valuestring) : NULL,
|
||||
status ? true : false,
|
||||
status ? status->valuedouble : 0,
|
||||
detail ? ogs_strdup_or_assert(detail->valuestring) : NULL,
|
||||
instance ? ogs_strdup_or_assert(instance->valuestring) : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue