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

@ -5,6 +5,7 @@
#include "n2_info_content.h"
OpenAPI_n2_info_content_t *OpenAPI_n2_info_content_create(
bool is_ngap_message_type,
int ngap_message_type,
OpenAPI_ngap_ie_type_e ngap_ie_type,
OpenAPI_ref_to_binary_data_t *ngap_data
@ -14,6 +15,7 @@ OpenAPI_n2_info_content_t *OpenAPI_n2_info_content_create(
if (!n2_info_content_local_var) {
return NULL;
}
n2_info_content_local_var->is_ngap_message_type = is_ngap_message_type;
n2_info_content_local_var->ngap_message_type = ngap_message_type;
n2_info_content_local_var->ngap_ie_type = ngap_ie_type;
n2_info_content_local_var->ngap_data = ngap_data;
@ -41,7 +43,7 @@ cJSON *OpenAPI_n2_info_content_convertToJSON(OpenAPI_n2_info_content_t *n2_info_
}
item = cJSON_CreateObject();
if (n2_info_content->ngap_message_type) {
if (n2_info_content->is_ngap_message_type) {
if (cJSON_AddNumberToObject(item, "ngapMessageType", n2_info_content->ngap_message_type) == NULL) {
ogs_error("OpenAPI_n2_info_content_convertToJSON() failed [ngap_message_type]");
goto end;
@ -75,7 +77,7 @@ OpenAPI_n2_info_content_t *OpenAPI_n2_info_content_parseFromJSON(cJSON *n2_info_
OpenAPI_n2_info_content_t *n2_info_content_local_var = NULL;
cJSON *ngap_message_type = cJSON_GetObjectItemCaseSensitive(n2_info_contentJSON, "ngapMessageType");
if (ngap_message_type) {
if (ngap_message_type) {
if (!cJSON_IsNumber(ngap_message_type)) {
ogs_error("OpenAPI_n2_info_content_parseFromJSON() failed [ngap_message_type]");
goto end;
@ -85,7 +87,7 @@ OpenAPI_n2_info_content_t *OpenAPI_n2_info_content_parseFromJSON(cJSON *n2_info_
cJSON *ngap_ie_type = cJSON_GetObjectItemCaseSensitive(n2_info_contentJSON, "ngapIeType");
OpenAPI_ngap_ie_type_e ngap_ie_typeVariable;
if (ngap_ie_type) {
if (ngap_ie_type) {
if (!cJSON_IsString(ngap_ie_type)) {
ogs_error("OpenAPI_n2_info_content_parseFromJSON() failed [ngap_ie_type]");
goto end;
@ -100,10 +102,10 @@ OpenAPI_n2_info_content_t *OpenAPI_n2_info_content_parseFromJSON(cJSON *n2_info_
}
OpenAPI_ref_to_binary_data_t *ngap_data_local_nonprim = NULL;
ngap_data_local_nonprim = OpenAPI_ref_to_binary_data_parseFromJSON(ngap_data);
n2_info_content_local_var = OpenAPI_n2_info_content_create (
ngap_message_type ? true : false,
ngap_message_type ? ngap_message_type->valuedouble : 0,
ngap_ie_type ? ngap_ie_typeVariable : 0,
ngap_data_local_nonprim