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

@ -29,7 +29,7 @@ OpenAPI_pcf_binding_t *OpenAPI_pcf_binding_create(
OpenAPI_binding_level_e bind_level,
OpenAPI_list_t *ipv4_frame_route_list,
OpenAPI_list_t *ipv6_frame_route_list
)
)
{
OpenAPI_pcf_binding_t *pcf_binding_local_var = OpenAPI_malloc(sizeof(OpenAPI_pcf_binding_t));
if (!pcf_binding_local_var) {
@ -124,77 +124,77 @@ cJSON *OpenAPI_pcf_binding_convertToJSON(OpenAPI_pcf_binding_t *pcf_binding)
item = cJSON_CreateObject();
if (pcf_binding->supi) {
if (cJSON_AddStringToObject(item, "supi", pcf_binding->supi) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [supi]");
goto end;
}
if (cJSON_AddStringToObject(item, "supi", pcf_binding->supi) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [supi]");
goto end;
}
}
if (pcf_binding->gpsi) {
if (cJSON_AddStringToObject(item, "gpsi", pcf_binding->gpsi) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [gpsi]");
goto end;
}
if (cJSON_AddStringToObject(item, "gpsi", pcf_binding->gpsi) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [gpsi]");
goto end;
}
}
if (pcf_binding->ipv4_addr) {
if (cJSON_AddStringToObject(item, "ipv4Addr", pcf_binding->ipv4_addr) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv4_addr]");
goto end;
}
if (cJSON_AddStringToObject(item, "ipv4Addr", pcf_binding->ipv4_addr) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv4_addr]");
goto end;
}
}
if (pcf_binding->ipv6_prefix) {
if (cJSON_AddStringToObject(item, "ipv6Prefix", pcf_binding->ipv6_prefix) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv6_prefix]");
goto end;
}
if (cJSON_AddStringToObject(item, "ipv6Prefix", pcf_binding->ipv6_prefix) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv6_prefix]");
goto end;
}
}
if (pcf_binding->add_ipv6_prefixes) {
cJSON *add_ipv6_prefixes = cJSON_AddArrayToObject(item, "addIpv6Prefixes");
if (add_ipv6_prefixes == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_ipv6_prefixes]");
goto end;
}
cJSON *add_ipv6_prefixes = cJSON_AddArrayToObject(item, "addIpv6Prefixes");
if (add_ipv6_prefixes == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_ipv6_prefixes]");
goto end;
}
OpenAPI_lnode_t *add_ipv6_prefixes_node;
OpenAPI_list_for_each(pcf_binding->add_ipv6_prefixes, add_ipv6_prefixes_node) {
if (cJSON_AddStringToObject(add_ipv6_prefixes, "", (char*)add_ipv6_prefixes_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_ipv6_prefixes]");
goto end;
}
}
OpenAPI_lnode_t *add_ipv6_prefixes_node;
OpenAPI_list_for_each(pcf_binding->add_ipv6_prefixes, add_ipv6_prefixes_node) {
if (cJSON_AddStringToObject(add_ipv6_prefixes, "", (char*)add_ipv6_prefixes_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_ipv6_prefixes]");
goto end;
}
}
}
if (pcf_binding->ip_domain) {
if (cJSON_AddStringToObject(item, "ipDomain", pcf_binding->ip_domain) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ip_domain]");
goto end;
}
if (cJSON_AddStringToObject(item, "ipDomain", pcf_binding->ip_domain) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ip_domain]");
goto end;
}
}
if (pcf_binding->mac_addr48) {
if (cJSON_AddStringToObject(item, "macAddr48", pcf_binding->mac_addr48) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [mac_addr48]");
goto end;
}
if (cJSON_AddStringToObject(item, "macAddr48", pcf_binding->mac_addr48) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [mac_addr48]");
goto end;
}
}
if (pcf_binding->add_mac_addrs) {
cJSON *add_mac_addrs = cJSON_AddArrayToObject(item, "addMacAddrs");
if (add_mac_addrs == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_mac_addrs]");
goto end;
}
cJSON *add_mac_addrs = cJSON_AddArrayToObject(item, "addMacAddrs");
if (add_mac_addrs == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_mac_addrs]");
goto end;
}
OpenAPI_lnode_t *add_mac_addrs_node;
OpenAPI_list_for_each(pcf_binding->add_mac_addrs, add_mac_addrs_node) {
if (cJSON_AddStringToObject(add_mac_addrs, "", (char*)add_mac_addrs_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_mac_addrs]");
goto end;
}
}
OpenAPI_lnode_t *add_mac_addrs_node;
OpenAPI_list_for_each(pcf_binding->add_mac_addrs, add_mac_addrs_node) {
if (cJSON_AddStringToObject(add_mac_addrs, "", (char*)add_mac_addrs_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [add_mac_addrs]");
goto end;
}
}
}
if (cJSON_AddStringToObject(item, "dnn", pcf_binding->dnn) == NULL) {
@ -203,72 +203,72 @@ cJSON *OpenAPI_pcf_binding_convertToJSON(OpenAPI_pcf_binding_t *pcf_binding)
}
if (pcf_binding->pcf_fqdn) {
if (cJSON_AddStringToObject(item, "pcfFqdn", pcf_binding->pcf_fqdn) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_fqdn]");
goto end;
}
if (cJSON_AddStringToObject(item, "pcfFqdn", pcf_binding->pcf_fqdn) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_fqdn]");
goto end;
}
}
if (pcf_binding->pcf_ip_end_points) {
cJSON *pcf_ip_end_pointsList = cJSON_AddArrayToObject(item, "pcfIpEndPoints");
if (pcf_ip_end_pointsList == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_ip_end_points]");
goto end;
}
cJSON *pcf_ip_end_pointsList = cJSON_AddArrayToObject(item, "pcfIpEndPoints");
if (pcf_ip_end_pointsList == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_ip_end_points]");
goto end;
}
OpenAPI_lnode_t *pcf_ip_end_points_node;
if (pcf_binding->pcf_ip_end_points) {
OpenAPI_list_for_each(pcf_binding->pcf_ip_end_points, pcf_ip_end_points_node) {
cJSON *itemLocal = OpenAPI_ip_end_point_convertToJSON(pcf_ip_end_points_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_ip_end_points]");
goto end;
}
cJSON_AddItemToArray(pcf_ip_end_pointsList, itemLocal);
OpenAPI_lnode_t *pcf_ip_end_points_node;
if (pcf_binding->pcf_ip_end_points) {
OpenAPI_list_for_each(pcf_binding->pcf_ip_end_points, pcf_ip_end_points_node) {
cJSON *itemLocal = OpenAPI_ip_end_point_convertToJSON(pcf_ip_end_points_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_ip_end_points]");
goto end;
}
cJSON_AddItemToArray(pcf_ip_end_pointsList, itemLocal);
}
}
}
if (pcf_binding->pcf_diam_host) {
if (cJSON_AddStringToObject(item, "pcfDiamHost", pcf_binding->pcf_diam_host) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_diam_host]");
goto end;
}
if (cJSON_AddStringToObject(item, "pcfDiamHost", pcf_binding->pcf_diam_host) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_diam_host]");
goto end;
}
}
if (pcf_binding->pcf_diam_realm) {
if (cJSON_AddStringToObject(item, "pcfDiamRealm", pcf_binding->pcf_diam_realm) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_diam_realm]");
goto end;
}
if (cJSON_AddStringToObject(item, "pcfDiamRealm", pcf_binding->pcf_diam_realm) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_diam_realm]");
goto end;
}
}
if (pcf_binding->pcf_sm_fqdn) {
if (cJSON_AddStringToObject(item, "pcfSmFqdn", pcf_binding->pcf_sm_fqdn) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_sm_fqdn]");
goto end;
}
if (cJSON_AddStringToObject(item, "pcfSmFqdn", pcf_binding->pcf_sm_fqdn) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_sm_fqdn]");
goto end;
}
}
if (pcf_binding->pcf_sm_ip_end_points) {
cJSON *pcf_sm_ip_end_pointsList = cJSON_AddArrayToObject(item, "pcfSmIpEndPoints");
if (pcf_sm_ip_end_pointsList == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_sm_ip_end_points]");
goto end;
}
cJSON *pcf_sm_ip_end_pointsList = cJSON_AddArrayToObject(item, "pcfSmIpEndPoints");
if (pcf_sm_ip_end_pointsList == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_sm_ip_end_points]");
goto end;
}
OpenAPI_lnode_t *pcf_sm_ip_end_points_node;
if (pcf_binding->pcf_sm_ip_end_points) {
OpenAPI_list_for_each(pcf_binding->pcf_sm_ip_end_points, pcf_sm_ip_end_points_node) {
cJSON *itemLocal = OpenAPI_ip_end_point_convertToJSON(pcf_sm_ip_end_points_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_sm_ip_end_points]");
goto end;
}
cJSON_AddItemToArray(pcf_sm_ip_end_pointsList, itemLocal);
OpenAPI_lnode_t *pcf_sm_ip_end_points_node;
if (pcf_binding->pcf_sm_ip_end_points) {
OpenAPI_list_for_each(pcf_binding->pcf_sm_ip_end_points, pcf_sm_ip_end_points_node) {
cJSON *itemLocal = OpenAPI_ip_end_point_convertToJSON(pcf_sm_ip_end_points_node->data);
if (itemLocal == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_sm_ip_end_points]");
goto end;
}
cJSON_AddItemToArray(pcf_sm_ip_end_pointsList, itemLocal);
}
}
}
cJSON *snssai_local_JSON = OpenAPI_snssai_convertToJSON(pcf_binding->snssai);
if (snssai_local_JSON == NULL) {
@ -282,83 +282,83 @@ cJSON *OpenAPI_pcf_binding_convertToJSON(OpenAPI_pcf_binding_t *pcf_binding)
}
if (pcf_binding->supp_feat) {
if (cJSON_AddStringToObject(item, "suppFeat", pcf_binding->supp_feat) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [supp_feat]");
goto end;
}
if (cJSON_AddStringToObject(item, "suppFeat", pcf_binding->supp_feat) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [supp_feat]");
goto end;
}
}
if (pcf_binding->pcf_id) {
if (cJSON_AddStringToObject(item, "pcfId", pcf_binding->pcf_id) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "pcfId", pcf_binding->pcf_id) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_id]");
goto end;
}
}
if (pcf_binding->pcf_set_id) {
if (cJSON_AddStringToObject(item, "pcfSetId", pcf_binding->pcf_set_id) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_set_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "pcfSetId", pcf_binding->pcf_set_id) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [pcf_set_id]");
goto end;
}
}
if (pcf_binding->recovery_time) {
if (cJSON_AddStringToObject(item, "recoveryTime", pcf_binding->recovery_time) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [recovery_time]");
goto end;
}
if (cJSON_AddStringToObject(item, "recoveryTime", pcf_binding->recovery_time) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [recovery_time]");
goto end;
}
}
if (pcf_binding->para_com) {
cJSON *para_com_local_JSON = OpenAPI_parameter_combination_convertToJSON(pcf_binding->para_com);
if (para_com_local_JSON == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [para_com]");
goto end;
}
cJSON_AddItemToObject(item, "paraCom", para_com_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [para_com]");
goto end;
}
cJSON *para_com_local_JSON = OpenAPI_parameter_combination_convertToJSON(pcf_binding->para_com);
if (para_com_local_JSON == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [para_com]");
goto end;
}
cJSON_AddItemToObject(item, "paraCom", para_com_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [para_com]");
goto end;
}
}
if (pcf_binding->bind_level) {
if (cJSON_AddStringToObject(item, "bindLevel", OpenAPI_binding_level_ToString(pcf_binding->bind_level)) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [bind_level]");
goto end;
}
if (cJSON_AddStringToObject(item, "bindLevel", OpenAPI_binding_level_ToString(pcf_binding->bind_level)) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [bind_level]");
goto end;
}
}
if (pcf_binding->ipv4_frame_route_list) {
cJSON *ipv4_frame_route_list = cJSON_AddArrayToObject(item, "ipv4FrameRouteList");
if (ipv4_frame_route_list == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv4_frame_route_list]");
goto end;
}
cJSON *ipv4_frame_route_list = cJSON_AddArrayToObject(item, "ipv4FrameRouteList");
if (ipv4_frame_route_list == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv4_frame_route_list]");
goto end;
}
OpenAPI_lnode_t *ipv4_frame_route_list_node;
OpenAPI_list_for_each(pcf_binding->ipv4_frame_route_list, ipv4_frame_route_list_node) {
if (cJSON_AddStringToObject(ipv4_frame_route_list, "", (char*)ipv4_frame_route_list_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv4_frame_route_list]");
goto end;
}
}
OpenAPI_lnode_t *ipv4_frame_route_list_node;
OpenAPI_list_for_each(pcf_binding->ipv4_frame_route_list, ipv4_frame_route_list_node) {
if (cJSON_AddStringToObject(ipv4_frame_route_list, "", (char*)ipv4_frame_route_list_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv4_frame_route_list]");
goto end;
}
}
}
if (pcf_binding->ipv6_frame_route_list) {
cJSON *ipv6_frame_route_list = cJSON_AddArrayToObject(item, "ipv6FrameRouteList");
if (ipv6_frame_route_list == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv6_frame_route_list]");
goto end;
}
cJSON *ipv6_frame_route_list = cJSON_AddArrayToObject(item, "ipv6FrameRouteList");
if (ipv6_frame_route_list == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv6_frame_route_list]");
goto end;
}
OpenAPI_lnode_t *ipv6_frame_route_list_node;
OpenAPI_list_for_each(pcf_binding->ipv6_frame_route_list, ipv6_frame_route_list_node) {
if (cJSON_AddStringToObject(ipv6_frame_route_list, "", (char*)ipv6_frame_route_list_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv6_frame_route_list]");
goto end;
}
}
OpenAPI_lnode_t *ipv6_frame_route_list_node;
OpenAPI_list_for_each(pcf_binding->ipv6_frame_route_list, ipv6_frame_route_list_node) {
if (cJSON_AddStringToObject(ipv6_frame_route_list, "", (char*)ipv6_frame_route_list_node->data) == NULL) {
ogs_error("OpenAPI_pcf_binding_convertToJSON() failed [ipv6_frame_route_list]");
goto end;
}
}
}
end:
@ -370,97 +370,97 @@ OpenAPI_pcf_binding_t *OpenAPI_pcf_binding_parseFromJSON(cJSON *pcf_bindingJSON)
OpenAPI_pcf_binding_t *pcf_binding_local_var = NULL;
cJSON *supi = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "supi");
if (supi) {
if (!cJSON_IsString(supi)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [supi]");
goto end;
}
if (supi) {
if (!cJSON_IsString(supi)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [supi]");
goto end;
}
}
cJSON *gpsi = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "gpsi");
if (gpsi) {
if (!cJSON_IsString(gpsi)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [gpsi]");
goto end;
}
if (gpsi) {
if (!cJSON_IsString(gpsi)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [gpsi]");
goto end;
}
}
cJSON *ipv4_addr = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "ipv4Addr");
if (ipv4_addr) {
if (!cJSON_IsString(ipv4_addr)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv4_addr]");
goto end;
}
if (ipv4_addr) {
if (!cJSON_IsString(ipv4_addr)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv4_addr]");
goto end;
}
}
cJSON *ipv6_prefix = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "ipv6Prefix");
if (ipv6_prefix) {
if (!cJSON_IsString(ipv6_prefix)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv6_prefix]");
goto end;
}
if (ipv6_prefix) {
if (!cJSON_IsString(ipv6_prefix)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv6_prefix]");
goto end;
}
}
cJSON *add_ipv6_prefixes = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "addIpv6Prefixes");
OpenAPI_list_t *add_ipv6_prefixesList;
if (add_ipv6_prefixes) {
cJSON *add_ipv6_prefixes_local;
if (!cJSON_IsArray(add_ipv6_prefixes)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_ipv6_prefixes]");
goto end;
}
add_ipv6_prefixesList = OpenAPI_list_create();
cJSON_ArrayForEach(add_ipv6_prefixes_local, add_ipv6_prefixes) {
if (!cJSON_IsString(add_ipv6_prefixes_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_ipv6_prefixes]");
goto end;
}
OpenAPI_list_add(add_ipv6_prefixesList, ogs_strdup_or_assert(add_ipv6_prefixes_local->valuestring));
}
if (add_ipv6_prefixes) {
cJSON *add_ipv6_prefixes_local;
if (!cJSON_IsArray(add_ipv6_prefixes)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_ipv6_prefixes]");
goto end;
}
add_ipv6_prefixesList = OpenAPI_list_create();
cJSON_ArrayForEach(add_ipv6_prefixes_local, add_ipv6_prefixes) {
if (!cJSON_IsString(add_ipv6_prefixes_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_ipv6_prefixes]");
goto end;
}
OpenAPI_list_add(add_ipv6_prefixesList , ogs_strdup_or_assert(add_ipv6_prefixes_local->valuestring));
}
}
cJSON *ip_domain = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "ipDomain");
if (ip_domain) {
if (!cJSON_IsString(ip_domain)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ip_domain]");
goto end;
}
if (ip_domain) {
if (!cJSON_IsString(ip_domain)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ip_domain]");
goto end;
}
}
cJSON *mac_addr48 = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "macAddr48");
if (mac_addr48) {
if (!cJSON_IsString(mac_addr48)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [mac_addr48]");
goto end;
}
if (mac_addr48) {
if (!cJSON_IsString(mac_addr48)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [mac_addr48]");
goto end;
}
}
cJSON *add_mac_addrs = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "addMacAddrs");
OpenAPI_list_t *add_mac_addrsList;
if (add_mac_addrs) {
cJSON *add_mac_addrs_local;
if (!cJSON_IsArray(add_mac_addrs)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_mac_addrs]");
goto end;
}
add_mac_addrsList = OpenAPI_list_create();
cJSON_ArrayForEach(add_mac_addrs_local, add_mac_addrs) {
if (!cJSON_IsString(add_mac_addrs_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_mac_addrs]");
goto end;
}
OpenAPI_list_add(add_mac_addrsList, ogs_strdup_or_assert(add_mac_addrs_local->valuestring));
}
if (add_mac_addrs) {
cJSON *add_mac_addrs_local;
if (!cJSON_IsArray(add_mac_addrs)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_mac_addrs]");
goto end;
}
add_mac_addrsList = OpenAPI_list_create();
cJSON_ArrayForEach(add_mac_addrs_local, add_mac_addrs) {
if (!cJSON_IsString(add_mac_addrs_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [add_mac_addrs]");
goto end;
}
OpenAPI_list_add(add_mac_addrsList , ogs_strdup_or_assert(add_mac_addrs_local->valuestring));
}
}
cJSON *dnn = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "dnn");
if (!dnn) {
@ -468,7 +468,7 @@ OpenAPI_pcf_binding_t *OpenAPI_pcf_binding_parseFromJSON(cJSON *pcf_bindingJSON)
goto end;
}
if (!cJSON_IsString(dnn)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [dnn]");
goto end;
@ -476,85 +476,85 @@ OpenAPI_pcf_binding_t *OpenAPI_pcf_binding_parseFromJSON(cJSON *pcf_bindingJSON)
cJSON *pcf_fqdn = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfFqdn");
if (pcf_fqdn) {
if (!cJSON_IsString(pcf_fqdn)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_fqdn]");
goto end;
}
if (pcf_fqdn) {
if (!cJSON_IsString(pcf_fqdn)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_fqdn]");
goto end;
}
}
cJSON *pcf_ip_end_points = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfIpEndPoints");
OpenAPI_list_t *pcf_ip_end_pointsList;
if (pcf_ip_end_points) {
cJSON *pcf_ip_end_points_local_nonprimitive;
if (!cJSON_IsArray(pcf_ip_end_points)) {
if (pcf_ip_end_points) {
cJSON *pcf_ip_end_points_local_nonprimitive;
if (!cJSON_IsArray(pcf_ip_end_points)){
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_ip_end_points]");
goto end;
}
pcf_ip_end_pointsList = OpenAPI_list_create();
cJSON_ArrayForEach(pcf_ip_end_points_local_nonprimitive, pcf_ip_end_points ) {
if (!cJSON_IsObject(pcf_ip_end_points_local_nonprimitive)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_ip_end_points]");
goto end;
}
OpenAPI_ip_end_point_t *pcf_ip_end_pointsItem = OpenAPI_ip_end_point_parseFromJSON(pcf_ip_end_points_local_nonprimitive);
pcf_ip_end_pointsList = OpenAPI_list_create();
cJSON_ArrayForEach(pcf_ip_end_points_local_nonprimitive, pcf_ip_end_points ) {
if (!cJSON_IsObject(pcf_ip_end_points_local_nonprimitive)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_ip_end_points]");
goto end;
}
OpenAPI_ip_end_point_t *pcf_ip_end_pointsItem = OpenAPI_ip_end_point_parseFromJSON(pcf_ip_end_points_local_nonprimitive);
OpenAPI_list_add(pcf_ip_end_pointsList, pcf_ip_end_pointsItem);
}
OpenAPI_list_add(pcf_ip_end_pointsList, pcf_ip_end_pointsItem);
}
}
cJSON *pcf_diam_host = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfDiamHost");
if (pcf_diam_host) {
if (!cJSON_IsString(pcf_diam_host)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_diam_host]");
goto end;
}
if (pcf_diam_host) {
if (!cJSON_IsString(pcf_diam_host)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_diam_host]");
goto end;
}
}
cJSON *pcf_diam_realm = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfDiamRealm");
if (pcf_diam_realm) {
if (!cJSON_IsString(pcf_diam_realm)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_diam_realm]");
goto end;
}
if (pcf_diam_realm) {
if (!cJSON_IsString(pcf_diam_realm)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_diam_realm]");
goto end;
}
}
cJSON *pcf_sm_fqdn = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfSmFqdn");
if (pcf_sm_fqdn) {
if (!cJSON_IsString(pcf_sm_fqdn)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_sm_fqdn]");
goto end;
}
if (pcf_sm_fqdn) {
if (!cJSON_IsString(pcf_sm_fqdn)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_sm_fqdn]");
goto end;
}
}
cJSON *pcf_sm_ip_end_points = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfSmIpEndPoints");
OpenAPI_list_t *pcf_sm_ip_end_pointsList;
if (pcf_sm_ip_end_points) {
cJSON *pcf_sm_ip_end_points_local_nonprimitive;
if (!cJSON_IsArray(pcf_sm_ip_end_points)) {
if (pcf_sm_ip_end_points) {
cJSON *pcf_sm_ip_end_points_local_nonprimitive;
if (!cJSON_IsArray(pcf_sm_ip_end_points)){
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_sm_ip_end_points]");
goto end;
}
pcf_sm_ip_end_pointsList = OpenAPI_list_create();
cJSON_ArrayForEach(pcf_sm_ip_end_points_local_nonprimitive, pcf_sm_ip_end_points ) {
if (!cJSON_IsObject(pcf_sm_ip_end_points_local_nonprimitive)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_sm_ip_end_points]");
goto end;
}
OpenAPI_ip_end_point_t *pcf_sm_ip_end_pointsItem = OpenAPI_ip_end_point_parseFromJSON(pcf_sm_ip_end_points_local_nonprimitive);
pcf_sm_ip_end_pointsList = OpenAPI_list_create();
cJSON_ArrayForEach(pcf_sm_ip_end_points_local_nonprimitive, pcf_sm_ip_end_points ) {
if (!cJSON_IsObject(pcf_sm_ip_end_points_local_nonprimitive)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_sm_ip_end_points]");
goto end;
}
OpenAPI_ip_end_point_t *pcf_sm_ip_end_pointsItem = OpenAPI_ip_end_point_parseFromJSON(pcf_sm_ip_end_points_local_nonprimitive);
OpenAPI_list_add(pcf_sm_ip_end_pointsList, pcf_sm_ip_end_pointsItem);
}
OpenAPI_list_add(pcf_sm_ip_end_pointsList, pcf_sm_ip_end_pointsItem);
}
}
cJSON *snssai = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "snssai");
if (!snssai) {
@ -563,102 +563,102 @@ OpenAPI_pcf_binding_t *OpenAPI_pcf_binding_parseFromJSON(cJSON *pcf_bindingJSON)
}
OpenAPI_snssai_t *snssai_local_nonprim = NULL;
snssai_local_nonprim = OpenAPI_snssai_parseFromJSON(snssai);
cJSON *supp_feat = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "suppFeat");
if (supp_feat) {
if (!cJSON_IsString(supp_feat)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [supp_feat]");
goto end;
}
if (supp_feat) {
if (!cJSON_IsString(supp_feat)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [supp_feat]");
goto end;
}
}
cJSON *pcf_id = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfId");
if (pcf_id) {
if (!cJSON_IsString(pcf_id)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_id]");
goto end;
}
if (pcf_id) {
if (!cJSON_IsString(pcf_id)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_id]");
goto end;
}
}
cJSON *pcf_set_id = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "pcfSetId");
if (pcf_set_id) {
if (!cJSON_IsString(pcf_set_id)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_set_id]");
goto end;
}
if (pcf_set_id) {
if (!cJSON_IsString(pcf_set_id)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [pcf_set_id]");
goto end;
}
}
cJSON *recovery_time = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "recoveryTime");
if (recovery_time) {
if (!cJSON_IsString(recovery_time)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [recovery_time]");
goto end;
}
if (recovery_time) {
if (!cJSON_IsString(recovery_time)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [recovery_time]");
goto end;
}
}
cJSON *para_com = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "paraCom");
OpenAPI_parameter_combination_t *para_com_local_nonprim = NULL;
if (para_com) {
para_com_local_nonprim = OpenAPI_parameter_combination_parseFromJSON(para_com);
}
if (para_com) {
para_com_local_nonprim = OpenAPI_parameter_combination_parseFromJSON(para_com);
}
cJSON *bind_level = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "bindLevel");
OpenAPI_binding_level_e bind_levelVariable;
if (bind_level) {
if (!cJSON_IsString(bind_level)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [bind_level]");
goto end;
}
bind_levelVariable = OpenAPI_binding_level_FromString(bind_level->valuestring);
if (bind_level) {
if (!cJSON_IsString(bind_level)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [bind_level]");
goto end;
}
bind_levelVariable = OpenAPI_binding_level_FromString(bind_level->valuestring);
}
cJSON *ipv4_frame_route_list = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "ipv4FrameRouteList");
OpenAPI_list_t *ipv4_frame_route_listList;
if (ipv4_frame_route_list) {
cJSON *ipv4_frame_route_list_local;
if (!cJSON_IsArray(ipv4_frame_route_list)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv4_frame_route_list]");
goto end;
}
ipv4_frame_route_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ipv4_frame_route_list_local, ipv4_frame_route_list) {
if (!cJSON_IsString(ipv4_frame_route_list_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv4_frame_route_list]");
goto end;
}
OpenAPI_list_add(ipv4_frame_route_listList, ogs_strdup_or_assert(ipv4_frame_route_list_local->valuestring));
}
if (ipv4_frame_route_list) {
cJSON *ipv4_frame_route_list_local;
if (!cJSON_IsArray(ipv4_frame_route_list)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv4_frame_route_list]");
goto end;
}
ipv4_frame_route_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ipv4_frame_route_list_local, ipv4_frame_route_list) {
if (!cJSON_IsString(ipv4_frame_route_list_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv4_frame_route_list]");
goto end;
}
OpenAPI_list_add(ipv4_frame_route_listList , ogs_strdup_or_assert(ipv4_frame_route_list_local->valuestring));
}
}
cJSON *ipv6_frame_route_list = cJSON_GetObjectItemCaseSensitive(pcf_bindingJSON, "ipv6FrameRouteList");
OpenAPI_list_t *ipv6_frame_route_listList;
if (ipv6_frame_route_list) {
cJSON *ipv6_frame_route_list_local;
if (!cJSON_IsArray(ipv6_frame_route_list)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv6_frame_route_list]");
goto end;
}
ipv6_frame_route_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ipv6_frame_route_list_local, ipv6_frame_route_list) {
if (!cJSON_IsString(ipv6_frame_route_list_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv6_frame_route_list]");
goto end;
}
OpenAPI_list_add(ipv6_frame_route_listList, ogs_strdup_or_assert(ipv6_frame_route_list_local->valuestring));
}
if (ipv6_frame_route_list) {
cJSON *ipv6_frame_route_list_local;
if (!cJSON_IsArray(ipv6_frame_route_list)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv6_frame_route_list]");
goto end;
}
ipv6_frame_route_listList = OpenAPI_list_create();
cJSON_ArrayForEach(ipv6_frame_route_list_local, ipv6_frame_route_list) {
if (!cJSON_IsString(ipv6_frame_route_list_local)) {
ogs_error("OpenAPI_pcf_binding_parseFromJSON() failed [ipv6_frame_route_list]");
goto end;
}
OpenAPI_list_add(ipv6_frame_route_listList , ogs_strdup_or_assert(ipv6_frame_route_list_local->valuestring));
}
}
pcf_binding_local_var = OpenAPI_pcf_binding_create (
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL,
@ -685,7 +685,7 @@ OpenAPI_pcf_binding_t *OpenAPI_pcf_binding_parseFromJSON(cJSON *pcf_bindingJSON)
bind_level ? bind_levelVariable : 0,
ipv4_frame_route_list ? ipv4_frame_route_listList : NULL,
ipv6_frame_route_list ? ipv6_frame_route_listList : NULL
);
);
return pcf_binding_local_var;
end: