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

@ -8,6 +8,7 @@ OpenAPI_ip_end_point_t *OpenAPI_ip_end_point_create(
char *ipv4_address,
char *ipv6_address,
OpenAPI_transport_protocol_e transport,
bool is_port,
int port
)
{
@ -18,6 +19,7 @@ OpenAPI_ip_end_point_t *OpenAPI_ip_end_point_create(
ip_end_point_local_var->ipv4_address = ipv4_address;
ip_end_point_local_var->ipv6_address = ipv6_address;
ip_end_point_local_var->transport = transport;
ip_end_point_local_var->is_port = is_port;
ip_end_point_local_var->port = port;
return ip_end_point_local_var;
@ -65,7 +67,7 @@ cJSON *OpenAPI_ip_end_point_convertToJSON(OpenAPI_ip_end_point_t *ip_end_point)
}
}
if (ip_end_point->port) {
if (ip_end_point->is_port) {
if (cJSON_AddNumberToObject(item, "port", ip_end_point->port) == NULL) {
ogs_error("OpenAPI_ip_end_point_convertToJSON() failed [port]");
goto end;
@ -81,7 +83,7 @@ OpenAPI_ip_end_point_t *OpenAPI_ip_end_point_parseFromJSON(cJSON *ip_end_pointJS
OpenAPI_ip_end_point_t *ip_end_point_local_var = NULL;
cJSON *ipv4_address = cJSON_GetObjectItemCaseSensitive(ip_end_pointJSON, "ipv4Address");
if (ipv4_address) {
if (ipv4_address) {
if (!cJSON_IsString(ipv4_address)) {
ogs_error("OpenAPI_ip_end_point_parseFromJSON() failed [ipv4_address]");
goto end;
@ -90,7 +92,7 @@ OpenAPI_ip_end_point_t *OpenAPI_ip_end_point_parseFromJSON(cJSON *ip_end_pointJS
cJSON *ipv6_address = cJSON_GetObjectItemCaseSensitive(ip_end_pointJSON, "ipv6Address");
if (ipv6_address) {
if (ipv6_address) {
if (!cJSON_IsString(ipv6_address)) {
ogs_error("OpenAPI_ip_end_point_parseFromJSON() failed [ipv6_address]");
goto end;
@ -100,7 +102,7 @@ OpenAPI_ip_end_point_t *OpenAPI_ip_end_point_parseFromJSON(cJSON *ip_end_pointJS
cJSON *transport = cJSON_GetObjectItemCaseSensitive(ip_end_pointJSON, "transport");
OpenAPI_transport_protocol_e transportVariable;
if (transport) {
if (transport) {
if (!cJSON_IsString(transport)) {
ogs_error("OpenAPI_ip_end_point_parseFromJSON() failed [transport]");
goto end;
@ -110,7 +112,7 @@ OpenAPI_ip_end_point_t *OpenAPI_ip_end_point_parseFromJSON(cJSON *ip_end_pointJS
cJSON *port = cJSON_GetObjectItemCaseSensitive(ip_end_pointJSON, "port");
if (port) {
if (port) {
if (!cJSON_IsNumber(port)) {
ogs_error("OpenAPI_ip_end_point_parseFromJSON() failed [port]");
goto end;
@ -121,6 +123,7 @@ OpenAPI_ip_end_point_t *OpenAPI_ip_end_point_parseFromJSON(cJSON *ip_end_pointJS
ipv4_address ? ogs_strdup_or_assert(ipv4_address->valuestring) : NULL,
ipv6_address ? ogs_strdup_or_assert(ipv6_address->valuestring) : NULL,
transport ? transportVariable : 0,
port ? true : false,
port ? port->valuedouble : 0
);