forked from acouzens/open5gs
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
|
@ -514,11 +514,28 @@ ogs_sbi_nf_instance_t *ogs_sbi_nf_instance_add(char *id)
|
|||
ogs_app()->timer_mgr, NULL, nf_instance);
|
||||
ogs_assert(nf_instance->t_validity);
|
||||
|
||||
nf_instance->priority = OGS_SBI_DEFAULT_PRIORITY;
|
||||
nf_instance->capacity = OGS_SBI_DEFAULT_CAPACITY;
|
||||
nf_instance->load = OGS_SBI_DEFAULT_LOAD;
|
||||
|
||||
ogs_list_add(&ogs_sbi_self()->nf_instance_list, nf_instance);
|
||||
|
||||
return nf_instance;
|
||||
}
|
||||
|
||||
void ogs_sbi_nf_instance_add_allowed_nf_type(
|
||||
ogs_sbi_nf_instance_t *nf_instance, OpenAPI_nf_type_e allowed_nf_type)
|
||||
{
|
||||
ogs_assert(nf_instance);
|
||||
ogs_assert(allowed_nf_type);
|
||||
|
||||
if (nf_instance->num_of_allowed_nf_type < OGS_SBI_MAX_NUM_OF_NF_TYPE) {
|
||||
nf_instance->allowed_nf_types[nf_instance->num_of_allowed_nf_type] =
|
||||
allowed_nf_type;
|
||||
nf_instance->num_of_allowed_nf_type++;
|
||||
}
|
||||
}
|
||||
|
||||
void ogs_sbi_nf_instance_clear(ogs_sbi_nf_instance_t *nf_instance)
|
||||
{
|
||||
int i;
|
||||
|
@ -536,6 +553,8 @@ void ogs_sbi_nf_instance_clear(ogs_sbi_nf_instance_t *nf_instance)
|
|||
ogs_freeaddrinfo(nf_instance->ipv6[i]);
|
||||
}
|
||||
nf_instance->num_of_ipv6 = 0;
|
||||
|
||||
nf_instance->num_of_allowed_nf_type = 0;
|
||||
}
|
||||
|
||||
void ogs_sbi_nf_instance_remove(ogs_sbi_nf_instance_t *nf_instance)
|
||||
|
@ -620,6 +639,10 @@ ogs_sbi_nf_service_t *ogs_sbi_nf_service_add(ogs_sbi_nf_instance_t *nf_instance,
|
|||
|
||||
nf_service->status = OpenAPI_nf_service_status_REGISTERED;
|
||||
|
||||
nf_service->priority = OGS_SBI_DEFAULT_PRIORITY;
|
||||
nf_service->capacity = OGS_SBI_DEFAULT_CAPACITY;
|
||||
nf_service->load = OGS_SBI_DEFAULT_LOAD;
|
||||
|
||||
nf_service->nf_instance = nf_instance;
|
||||
|
||||
ogs_list_add(&nf_instance->nf_service_list, nf_service);
|
||||
|
@ -653,6 +676,19 @@ void ogs_sbi_nf_service_add_version(ogs_sbi_nf_service_t *nf_service,
|
|||
}
|
||||
}
|
||||
|
||||
void ogs_sbi_nf_service_add_allowed_nf_type(
|
||||
ogs_sbi_nf_service_t *nf_service, OpenAPI_nf_type_e allowed_nf_type)
|
||||
{
|
||||
ogs_assert(nf_service);
|
||||
ogs_assert(allowed_nf_type);
|
||||
|
||||
if (nf_service->num_of_allowed_nf_type < OGS_SBI_MAX_NUM_OF_NF_TYPE) {
|
||||
nf_service->allowed_nf_types[nf_service->num_of_allowed_nf_type] =
|
||||
allowed_nf_type;
|
||||
nf_service->num_of_allowed_nf_type++;
|
||||
}
|
||||
}
|
||||
|
||||
void ogs_sbi_nf_service_clear(ogs_sbi_nf_service_t *nf_service)
|
||||
{
|
||||
ogs_sbi_nf_instance_t *nf_instance = NULL;
|
||||
|
@ -679,6 +715,8 @@ void ogs_sbi_nf_service_clear(ogs_sbi_nf_service_t *nf_service)
|
|||
ogs_freeaddrinfo(nf_service->addr[i].ipv6);
|
||||
}
|
||||
nf_service->num_of_addr = 0;
|
||||
|
||||
nf_service->num_of_allowed_nf_type = 0;
|
||||
}
|
||||
|
||||
void ogs_sbi_nf_service_remove(ogs_sbi_nf_service_t *nf_service)
|
||||
|
|
|
@ -94,6 +94,17 @@ typedef struct ogs_sbi_nf_instance_s {
|
|||
int num_of_ipv6;
|
||||
ogs_sockaddr_t *ipv6[OGS_SBI_MAX_NUM_OF_IP_ADDRESS];
|
||||
|
||||
#define OGS_SBI_MAX_NUM_OF_NF_TYPE 16
|
||||
int num_of_allowed_nf_type;
|
||||
OpenAPI_nf_type_e allowed_nf_types[OGS_SBI_MAX_NUM_OF_NF_TYPE];
|
||||
|
||||
#define OGS_SBI_DEFAULT_PRIORITY 0
|
||||
#define OGS_SBI_DEFAULT_CAPACITY 100
|
||||
#define OGS_SBI_DEFAULT_LOAD 0
|
||||
int priority;
|
||||
int capacity;
|
||||
int load;
|
||||
|
||||
ogs_list_t nf_service_list;
|
||||
|
||||
void *client; /* only used in CLIENT */
|
||||
|
@ -170,6 +181,13 @@ typedef struct ogs_sbi_nf_service_s {
|
|||
int port;
|
||||
} addr[OGS_SBI_MAX_NUM_OF_IP_ADDRESS];
|
||||
|
||||
int num_of_allowed_nf_type;
|
||||
OpenAPI_nf_type_e allowed_nf_types[OGS_SBI_MAX_NUM_OF_NF_TYPE];
|
||||
|
||||
int priority;
|
||||
int capacity;
|
||||
int load;
|
||||
|
||||
/* Related Context */
|
||||
ogs_sbi_nf_instance_t *nf_instance;
|
||||
void *client;
|
||||
|
@ -238,6 +256,8 @@ ogs_sbi_context_t *ogs_sbi_self(void);
|
|||
int ogs_sbi_context_parse_config(const char *local, const char *remote);
|
||||
|
||||
ogs_sbi_nf_instance_t *ogs_sbi_nf_instance_add(char *id);
|
||||
void ogs_sbi_nf_instance_add_allowed_nf_type(
|
||||
ogs_sbi_nf_instance_t *nf_instance, OpenAPI_nf_type_e allowed_nf_type);
|
||||
void ogs_sbi_nf_instance_clear(ogs_sbi_nf_instance_t *nf_instance);
|
||||
void ogs_sbi_nf_instance_remove(ogs_sbi_nf_instance_t *nf_instance);
|
||||
void ogs_sbi_nf_instance_remove_all(void);
|
||||
|
@ -247,6 +267,8 @@ ogs_sbi_nf_service_t *ogs_sbi_nf_service_add(ogs_sbi_nf_instance_t *nf_instance,
|
|||
char *id, char *name, OpenAPI_uri_scheme_e scheme);
|
||||
void ogs_sbi_nf_service_add_version(ogs_sbi_nf_service_t *nf_service,
|
||||
char *in_uri, char *full, char *expiry);
|
||||
void ogs_sbi_nf_service_add_allowed_nf_type(
|
||||
ogs_sbi_nf_service_t *nf_service, OpenAPI_nf_type_e allowed_nf_type);
|
||||
void ogs_sbi_nf_service_clear(ogs_sbi_nf_service_t *nf_service);
|
||||
void ogs_sbi_nf_service_remove(ogs_sbi_nf_service_t *nf_service);
|
||||
void ogs_sbi_nf_service_remove_all(ogs_sbi_nf_instance_t *nf_instance);
|
||||
|
|
|
@ -28,6 +28,7 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
OpenAPI_nf_profile_t *NFProfile = NULL;
|
||||
OpenAPI_list_t *Ipv4AddrList = NULL;
|
||||
OpenAPI_list_t *Ipv6AddrList = NULL;
|
||||
OpenAPI_list_t *AllowedNfTypeList = NULL;
|
||||
OpenAPI_list_t *NFServiceList = NULL;
|
||||
|
||||
int i = 0;
|
||||
|
@ -52,7 +53,11 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
OpenAPI_nf_status_ToString(nf_instance->nf_status),
|
||||
nf_instance->num_of_ipv4, nf_instance->num_of_ipv6);
|
||||
|
||||
NFProfile->heart_beat_timer = nf_instance->time.heartbeat_interval;
|
||||
if (nf_instance->time.heartbeat_interval) {
|
||||
NFProfile->is_heart_beat_timer = true;
|
||||
NFProfile->heart_beat_timer = nf_instance->time.heartbeat_interval;
|
||||
}
|
||||
NFProfile->is_nf_profile_changes_support_ind = true;
|
||||
NFProfile->nf_profile_changes_support_ind = true;
|
||||
|
||||
if (strlen(nf_instance->fqdn)) {
|
||||
|
@ -65,6 +70,13 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
ogs_trace("FQDN[%s]", nf_instance->fqdn);
|
||||
}
|
||||
|
||||
NFProfile->is_priority = true;
|
||||
NFProfile->priority = nf_instance->priority;
|
||||
NFProfile->is_capacity = true;
|
||||
NFProfile->capacity = nf_instance->capacity;
|
||||
NFProfile->is_load = true;
|
||||
NFProfile->load = nf_instance->load;
|
||||
|
||||
Ipv4AddrList = OpenAPI_list_create();
|
||||
ogs_assert(Ipv4AddrList);
|
||||
Ipv6AddrList = OpenAPI_list_create();
|
||||
|
@ -103,6 +115,19 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
else
|
||||
OpenAPI_list_free(Ipv6AddrList);
|
||||
|
||||
AllowedNfTypeList = OpenAPI_list_create();
|
||||
ogs_assert(AllowedNfTypeList);
|
||||
|
||||
for (i = 0; i < nf_instance->num_of_allowed_nf_type; i++) {
|
||||
OpenAPI_list_add(AllowedNfTypeList,
|
||||
(void *)(uintptr_t)nf_instance->allowed_nf_types[i]);
|
||||
}
|
||||
|
||||
if (AllowedNfTypeList->count)
|
||||
NFProfile->allowed_nf_types = AllowedNfTypeList;
|
||||
else
|
||||
OpenAPI_list_free(AllowedNfTypeList);
|
||||
|
||||
NFServiceList = OpenAPI_list_create();
|
||||
ogs_assert(NFServiceList);
|
||||
|
||||
|
@ -110,6 +135,7 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
OpenAPI_nf_service_t *NFService = NULL;
|
||||
OpenAPI_list_t *VersionList = NULL;
|
||||
OpenAPI_list_t *IpEndPointList = NULL;
|
||||
OpenAPI_list_t *AllowedNfTypeList = NULL;
|
||||
|
||||
NFService = ogs_calloc(1, sizeof(*NFService));
|
||||
ogs_expect_or_return_val(NFService, NULL);
|
||||
|
@ -185,6 +211,7 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
IpEndPoint->ipv6_address = ogs_ipstrdup(ipv6);
|
||||
ogs_expect_or_return_val(IpEndPoint->ipv6_address, NULL);
|
||||
}
|
||||
IpEndPoint->is_port = true;
|
||||
IpEndPoint->port = nf_service->addr[i].port;
|
||||
OpenAPI_list_add(IpEndPointList, IpEndPoint);
|
||||
}
|
||||
|
@ -195,6 +222,26 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
|
|||
else
|
||||
OpenAPI_list_free(IpEndPointList);
|
||||
|
||||
AllowedNfTypeList = OpenAPI_list_create();
|
||||
ogs_assert(AllowedNfTypeList);
|
||||
|
||||
for (i = 0; i < nf_service->num_of_allowed_nf_type; i++) {
|
||||
OpenAPI_list_add(AllowedNfTypeList,
|
||||
(void *)(uintptr_t)nf_service->allowed_nf_types[i]);
|
||||
}
|
||||
|
||||
if (AllowedNfTypeList->count)
|
||||
NFService->allowed_nf_types = AllowedNfTypeList;
|
||||
else
|
||||
OpenAPI_list_free(AllowedNfTypeList);
|
||||
|
||||
NFService->is_priority = true;
|
||||
NFService->priority = nf_service->priority;
|
||||
NFService->is_capacity = true;
|
||||
NFService->capacity = nf_service->capacity;
|
||||
NFService->is_load = true;
|
||||
NFService->load = nf_service->load;
|
||||
|
||||
OpenAPI_list_add(NFServiceList, NFService);
|
||||
}
|
||||
|
||||
|
@ -219,6 +266,8 @@ void ogs_sbi_nnrf_free_nf_profile(OpenAPI_nf_profile_t *NFProfile)
|
|||
ogs_free(node->data);
|
||||
OpenAPI_list_free(NFProfile->ipv6_addresses);
|
||||
|
||||
OpenAPI_list_free(NFProfile->allowed_nf_types);
|
||||
|
||||
OpenAPI_list_for_each(NFProfile->nf_services, node) {
|
||||
OpenAPI_lnode_t *node2;
|
||||
OpenAPI_nf_service_t *NFService = node->data;
|
||||
|
@ -249,6 +298,8 @@ void ogs_sbi_nnrf_free_nf_profile(OpenAPI_nf_profile_t *NFProfile)
|
|||
}
|
||||
OpenAPI_list_free(NFService->ip_end_points);
|
||||
|
||||
OpenAPI_list_free(NFService->allowed_nf_types);
|
||||
|
||||
if (NFService->fqdn)
|
||||
ogs_free(NFService->fqdn);
|
||||
|
||||
|
|
|
@ -244,12 +244,20 @@ bool ogs_sbi_nnrf_handle_nf_profile(ogs_sbi_nf_instance_t *nf_instance,
|
|||
|
||||
nf_instance->nf_type = NFProfile->nf_type;
|
||||
nf_instance->nf_status = NFProfile->nf_status;
|
||||
nf_instance->time.heartbeat_interval = NFProfile->heart_beat_timer;
|
||||
if (NFProfile->is_heart_beat_timer == true)
|
||||
nf_instance->time.heartbeat_interval = NFProfile->heart_beat_timer;
|
||||
|
||||
if (NFProfile->fqdn)
|
||||
ogs_fqdn_parse(nf_instance->fqdn,
|
||||
NFProfile->fqdn, strlen(NFProfile->fqdn));
|
||||
|
||||
if (NFProfile->is_priority == true)
|
||||
nf_instance->priority = NFProfile->priority;
|
||||
if (NFProfile->is_capacity == true)
|
||||
nf_instance->capacity = NFProfile->capacity;
|
||||
if (NFProfile->is_load == true)
|
||||
nf_instance->load = NFProfile->load;
|
||||
|
||||
/* Only one time handles RegisterNFInstance operation */
|
||||
OpenAPI_list_for_each(NFProfile->ipv4_addresses, node) {
|
||||
ogs_sockaddr_t *addr = NULL;
|
||||
|
@ -286,6 +294,7 @@ bool ogs_sbi_nnrf_handle_nf_profile(ogs_sbi_nf_instance_t *nf_instance,
|
|||
OpenAPI_nf_service_t *NFService = node->data;
|
||||
OpenAPI_list_t *VersionList = NULL;
|
||||
OpenAPI_list_t *IpEndPointList = NULL;
|
||||
OpenAPI_list_t *AllowedNfTypeList = NULL;
|
||||
OpenAPI_lnode_t *node2 = NULL;
|
||||
|
||||
if (!NFService) continue;
|
||||
|
@ -294,6 +303,7 @@ bool ogs_sbi_nnrf_handle_nf_profile(ogs_sbi_nf_instance_t *nf_instance,
|
|||
|
||||
VersionList = NFService->versions;
|
||||
IpEndPointList = NFService->ip_end_points;
|
||||
AllowedNfTypeList = NFService->allowed_nf_types;
|
||||
|
||||
nf_service = ogs_sbi_nf_service_find_by_id(nf_instance,
|
||||
NFService->service_instance_id);
|
||||
|
@ -329,14 +339,15 @@ bool ogs_sbi_nnrf_handle_nf_profile(ogs_sbi_nf_instance_t *nf_instance,
|
|||
if (!IpEndPoint) continue;
|
||||
|
||||
if (nf_service->num_of_addr < OGS_SBI_MAX_NUM_OF_IP_ADDRESS) {
|
||||
port = IpEndPoint->port;
|
||||
if (!port) {
|
||||
if (!IpEndPoint->is_port) {
|
||||
if (nf_service->scheme == OpenAPI_uri_scheme_http)
|
||||
port = OGS_SBI_HTTP_PORT;
|
||||
else if (nf_service->scheme == OpenAPI_uri_scheme_https)
|
||||
port = OGS_SBI_HTTPS_PORT;
|
||||
else
|
||||
continue;
|
||||
} else {
|
||||
port = IpEndPoint->port;
|
||||
}
|
||||
|
||||
if (IpEndPoint->ipv4_address) {
|
||||
|
@ -361,6 +372,26 @@ bool ogs_sbi_nnrf_handle_nf_profile(ogs_sbi_nf_instance_t *nf_instance,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
OpenAPI_list_for_each(AllowedNfTypeList, node2) {
|
||||
OpenAPI_nf_type_e AllowedNfType = (OpenAPI_nf_type_e)node2->data;
|
||||
|
||||
if (!AllowedNfType) continue;
|
||||
|
||||
if (nf_service->num_of_allowed_nf_type <
|
||||
OGS_SBI_MAX_NUM_OF_NF_TYPE) {
|
||||
nf_service->allowed_nf_types[
|
||||
nf_service->num_of_allowed_nf_type] = AllowedNfType;
|
||||
nf_service->num_of_allowed_nf_type++;
|
||||
}
|
||||
}
|
||||
|
||||
if (NFService->is_priority == true)
|
||||
nf_service->priority = NFService->priority;
|
||||
if (NFService->is_capacity == true)
|
||||
nf_service->capacity = NFService->capacity;
|
||||
if (NFService->is_load == true)
|
||||
nf_service->load = NFService->load;
|
||||
}
|
||||
|
||||
ogs_sbi_nf_info_remove_all(&nf_instance->nf_info_list);
|
||||
|
|
|
@ -594,104 +594,3 @@ src/apiKey.c
|
|||
src/binary.c
|
||||
src/list.c
|
||||
uncrustify-rules.cfg
|
||||
unit-test/test_amf_event.c
|
||||
unit-test/test_amf_event_area.c
|
||||
unit-test/test_amf_event_mode.c
|
||||
unit-test/test_amf_event_subscription.c
|
||||
unit-test/test_amf_event_subscription_add_info.c
|
||||
unit-test/test_amf_event_trigger.c
|
||||
unit-test/test_amf_event_trigger_any_of.c
|
||||
unit-test/test_amf_event_type.c
|
||||
unit-test/test_amf_event_type_any_of.c
|
||||
unit-test/test_amf_status_change_notification.c
|
||||
unit-test/test_amf_status_change_subscription_data.c
|
||||
unit-test/test_amf_status_info.c
|
||||
unit-test/test_area_of_validity.c
|
||||
unit-test/test_assign_ebi_data.c
|
||||
unit-test/test_assign_ebi_error.c
|
||||
unit-test/test_assign_ebi_failed.c
|
||||
unit-test/test_assigned_ebi_data.c
|
||||
unit-test/test_auth_status.c
|
||||
unit-test/test_ce_mode_b_ind.c
|
||||
unit-test/test_ciphering_algorithm.c
|
||||
unit-test/test_eps_nas_ciphering_algorithm.c
|
||||
unit-test/test_eps_nas_integrity_algorithm.c
|
||||
unit-test/test_eps_nas_security_mode.c
|
||||
unit-test/test_expected_ue_behavior.c
|
||||
unit-test/test_ext_amf_event_subscription.c
|
||||
unit-test/test_immediate_mdt_conf.c
|
||||
unit-test/test_integrity_algorithm.c
|
||||
unit-test/test_key_amf.c
|
||||
unit-test/test_key_amf_type.c
|
||||
unit-test/test_ladn_info.c
|
||||
unit-test/test_location_filter.c
|
||||
unit-test/test_location_filter_any_of.c
|
||||
unit-test/test_lte_m_ind.c
|
||||
unit-test/test_mm_context.c
|
||||
unit-test/test_n1_message_container.c
|
||||
unit-test/test_n1_message_notification.c
|
||||
unit-test/test_n1_n2_message_transfer_cause.c
|
||||
unit-test/test_n1_n2_message_transfer_error.c
|
||||
unit-test/test_n1_n2_message_transfer_req_data.c
|
||||
unit-test/test_n1_n2_message_transfer_rsp_data.c
|
||||
unit-test/test_n1_n2_msg_txfr_err_detail.c
|
||||
unit-test/test_n1_n2_msg_txfr_failure_notification.c
|
||||
unit-test/test_n2_info_container.c
|
||||
unit-test/test_n2_info_content.c
|
||||
unit-test/test_n2_info_notification_rsp_data.c
|
||||
unit-test/test_n2_info_notify_reason.c
|
||||
unit-test/test_n2_information_notification.c
|
||||
unit-test/test_n2_information_transfer_error.c
|
||||
unit-test/test_n2_information_transfer_req_data.c
|
||||
unit-test/test_n2_information_transfer_result.c
|
||||
unit-test/test_n2_information_transfer_rsp_data.c
|
||||
unit-test/test_n2_ran_information.c
|
||||
unit-test/test_n2_sm_information.c
|
||||
unit-test/test_nas_security_mode.c
|
||||
unit-test/test_ng_ksi.c
|
||||
unit-test/test_ngap_ie_type.c
|
||||
unit-test/test_non_ue_n2_info_subscription_create_data.c
|
||||
unit-test/test_non_ue_n2_info_subscription_created_data.c
|
||||
unit-test/test_npn_access_info.c
|
||||
unit-test/test_nrppa_information.c
|
||||
unit-test/test_nssaa_status.c
|
||||
unit-test/test_nssai_mapping.c
|
||||
unit-test/test_pc5_flow_bit_rates.c
|
||||
unit-test/test_pc5_qo_s_para.c
|
||||
unit-test/test_pc5_qos_flow_item.c
|
||||
unit-test/test_pdu_session_context.c
|
||||
unit-test/test_periodic_communication_indicator.c
|
||||
unit-test/test_policy_req_trigger.c
|
||||
unit-test/test_pws_error_data.c
|
||||
unit-test/test_pws_information.c
|
||||
unit-test/test_pws_response_data.c
|
||||
unit-test/test_rat_selector.c
|
||||
unit-test/test_reachability_filter.c
|
||||
unit-test/test_reachability_filter_any_of.c
|
||||
unit-test/test_registration_context_container.c
|
||||
unit-test/test_sc_type.c
|
||||
unit-test/test_seaf_data.c
|
||||
unit-test/test_small_data_rate_status_info.c
|
||||
unit-test/test_smf_change_indication.c
|
||||
unit-test/test_smf_change_info.c
|
||||
unit-test/test_status_change.c
|
||||
unit-test/test_traffic_descriptor.c
|
||||
unit-test/test_transfer_reason.c
|
||||
unit-test/test_ue_context.c
|
||||
unit-test/test_ue_context_cancel_relocate_data.c
|
||||
unit-test/test_ue_context_create_data.c
|
||||
unit-test/test_ue_context_create_error.c
|
||||
unit-test/test_ue_context_created_data.c
|
||||
unit-test/test_ue_context_release.c
|
||||
unit-test/test_ue_context_relocate_data.c
|
||||
unit-test/test_ue_context_relocated_data.c
|
||||
unit-test/test_ue_context_transfer_req_data.c
|
||||
unit-test/test_ue_context_transfer_rsp_data.c
|
||||
unit-test/test_ue_context_transfer_status.c
|
||||
unit-test/test_ue_differentiation_info.c
|
||||
unit-test/test_ue_n1_n2_info_subscription_create_data.c
|
||||
unit-test/test_ue_n1_n2_info_subscription_created_data.c
|
||||
unit-test/test_ue_reg_status_update_req_data.c
|
||||
unit-test/test_ue_reg_status_update_rsp_data.c
|
||||
unit-test/test_v2x_context.c
|
||||
unit-test/test_v2x_information.c
|
||||
|
|
|
@ -1 +1 @@
|
|||
5.1.1
|
||||
5.2.0
|
|
@ -593,7 +593,6 @@ libsbi_openapi_sources = files('''
|
|||
model/priority_sharing_indicator.c
|
||||
model/privacy_check_related_action.c
|
||||
model/problem_details_1.c
|
||||
model/problem_details_2.c
|
||||
model/problem_details_add_info.c
|
||||
model/problem_details.c
|
||||
model/protection_result.c
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_acc_net_ch_id_t *OpenAPI_acc_net_ch_id_create(
|
||||
int acc_net_cha_id_value,
|
||||
OpenAPI_list_t *ref_pcc_rule_ids,
|
||||
bool is_session_ch_scope,
|
||||
int session_ch_scope
|
||||
)
|
||||
{
|
||||
|
@ -16,6 +17,7 @@ OpenAPI_acc_net_ch_id_t *OpenAPI_acc_net_ch_id_create(
|
|||
}
|
||||
acc_net_ch_id_local_var->acc_net_cha_id_value = acc_net_cha_id_value;
|
||||
acc_net_ch_id_local_var->ref_pcc_rule_ids = ref_pcc_rule_ids;
|
||||
acc_net_ch_id_local_var->is_session_ch_scope = is_session_ch_scope;
|
||||
acc_net_ch_id_local_var->session_ch_scope = session_ch_scope;
|
||||
|
||||
return acc_net_ch_id_local_var;
|
||||
|
@ -65,7 +67,7 @@ cJSON *OpenAPI_acc_net_ch_id_convertToJSON(OpenAPI_acc_net_ch_id_t *acc_net_ch_i
|
|||
}
|
||||
}
|
||||
|
||||
if (acc_net_ch_id->session_ch_scope) {
|
||||
if (acc_net_ch_id->is_session_ch_scope) {
|
||||
if (cJSON_AddBoolToObject(item, "sessionChScope", acc_net_ch_id->session_ch_scope) == NULL) {
|
||||
ogs_error("OpenAPI_acc_net_ch_id_convertToJSON() failed [session_ch_scope]");
|
||||
goto end;
|
||||
|
@ -85,7 +87,6 @@ OpenAPI_acc_net_ch_id_t *OpenAPI_acc_net_ch_id_parseFromJSON(cJSON *acc_net_ch_i
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(acc_net_cha_id_value)) {
|
||||
ogs_error("OpenAPI_acc_net_ch_id_parseFromJSON() failed [acc_net_cha_id_value]");
|
||||
goto end;
|
||||
|
@ -94,7 +95,7 @@ OpenAPI_acc_net_ch_id_t *OpenAPI_acc_net_ch_id_parseFromJSON(cJSON *acc_net_ch_i
|
|||
cJSON *ref_pcc_rule_ids = cJSON_GetObjectItemCaseSensitive(acc_net_ch_idJSON, "refPccRuleIds");
|
||||
|
||||
OpenAPI_list_t *ref_pcc_rule_idsList;
|
||||
if (ref_pcc_rule_ids) {
|
||||
if (ref_pcc_rule_ids) {
|
||||
cJSON *ref_pcc_rule_ids_local;
|
||||
if (!cJSON_IsArray(ref_pcc_rule_ids)) {
|
||||
ogs_error("OpenAPI_acc_net_ch_id_parseFromJSON() failed [ref_pcc_rule_ids]");
|
||||
|
@ -108,12 +109,12 @@ OpenAPI_acc_net_ch_id_t *OpenAPI_acc_net_ch_id_parseFromJSON(cJSON *acc_net_ch_i
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(ref_pcc_rule_idsList , ogs_strdup_or_assert(ref_pcc_rule_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *session_ch_scope = cJSON_GetObjectItemCaseSensitive(acc_net_ch_idJSON, "sessionChScope");
|
||||
|
||||
if (session_ch_scope) {
|
||||
if (session_ch_scope) {
|
||||
if (!cJSON_IsBool(session_ch_scope)) {
|
||||
ogs_error("OpenAPI_acc_net_ch_id_parseFromJSON() failed [session_ch_scope]");
|
||||
goto end;
|
||||
|
@ -121,8 +122,10 @@ OpenAPI_acc_net_ch_id_t *OpenAPI_acc_net_ch_id_parseFromJSON(cJSON *acc_net_ch_i
|
|||
}
|
||||
|
||||
acc_net_ch_id_local_var = OpenAPI_acc_net_ch_id_create (
|
||||
|
||||
acc_net_cha_id_value->valuedouble,
|
||||
ref_pcc_rule_ids ? ref_pcc_rule_idsList : NULL,
|
||||
session_ch_scope ? true : false,
|
||||
session_ch_scope ? session_ch_scope->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -21,12 +21,14 @@ typedef struct OpenAPI_acc_net_ch_id_s OpenAPI_acc_net_ch_id_t;
|
|||
typedef struct OpenAPI_acc_net_ch_id_s {
|
||||
int acc_net_cha_id_value;
|
||||
OpenAPI_list_t *ref_pcc_rule_ids;
|
||||
bool is_session_ch_scope;
|
||||
int session_ch_scope;
|
||||
} OpenAPI_acc_net_ch_id_t;
|
||||
|
||||
OpenAPI_acc_net_ch_id_t *OpenAPI_acc_net_ch_id_create(
|
||||
int acc_net_cha_id_value,
|
||||
OpenAPI_list_t *ref_pcc_rule_ids,
|
||||
bool is_session_ch_scope,
|
||||
int session_ch_scope
|
||||
);
|
||||
void OpenAPI_acc_net_ch_id_free(OpenAPI_acc_net_ch_id_t *acc_net_ch_id);
|
||||
|
|
|
@ -63,7 +63,7 @@ OpenAPI_acc_net_charging_address_t *OpenAPI_acc_net_charging_address_parseFromJS
|
|||
OpenAPI_acc_net_charging_address_t *acc_net_charging_address_local_var = NULL;
|
||||
cJSON *an_charg_ipv4_addr = cJSON_GetObjectItemCaseSensitive(acc_net_charging_addressJSON, "anChargIpv4Addr");
|
||||
|
||||
if (an_charg_ipv4_addr) {
|
||||
if (an_charg_ipv4_addr) {
|
||||
if (!cJSON_IsString(an_charg_ipv4_addr)) {
|
||||
ogs_error("OpenAPI_acc_net_charging_address_parseFromJSON() failed [an_charg_ipv4_addr]");
|
||||
goto end;
|
||||
|
@ -72,7 +72,7 @@ OpenAPI_acc_net_charging_address_t *OpenAPI_acc_net_charging_address_parseFromJS
|
|||
|
||||
cJSON *an_charg_ipv6_addr = cJSON_GetObjectItemCaseSensitive(acc_net_charging_addressJSON, "anChargIpv6Addr");
|
||||
|
||||
if (an_charg_ipv6_addr) {
|
||||
if (an_charg_ipv6_addr) {
|
||||
if (!cJSON_IsString(an_charg_ipv6_addr)) {
|
||||
ogs_error("OpenAPI_acc_net_charging_address_parseFromJSON() failed [an_charg_ipv6_addr]");
|
||||
goto end;
|
||||
|
|
|
@ -93,7 +93,7 @@ OpenAPI_acceptable_service_info_t *OpenAPI_acceptable_service_info_parseFromJSON
|
|||
cJSON *acc_bw_med_comps = cJSON_GetObjectItemCaseSensitive(acceptable_service_infoJSON, "accBwMedComps");
|
||||
|
||||
OpenAPI_list_t *acc_bw_med_compsList;
|
||||
if (acc_bw_med_comps) {
|
||||
if (acc_bw_med_comps) {
|
||||
cJSON *acc_bw_med_comps_local_map;
|
||||
if (!cJSON_IsObject(acc_bw_med_comps)) {
|
||||
ogs_error("OpenAPI_acceptable_service_info_parseFromJSON() failed [acc_bw_med_comps]");
|
||||
|
@ -115,7 +115,7 @@ OpenAPI_acceptable_service_info_t *OpenAPI_acceptable_service_info_parseFromJSON
|
|||
|
||||
cJSON *mar_bw_ul = cJSON_GetObjectItemCaseSensitive(acceptable_service_infoJSON, "marBwUl");
|
||||
|
||||
if (mar_bw_ul) {
|
||||
if (mar_bw_ul) {
|
||||
if (!cJSON_IsString(mar_bw_ul)) {
|
||||
ogs_error("OpenAPI_acceptable_service_info_parseFromJSON() failed [mar_bw_ul]");
|
||||
goto end;
|
||||
|
@ -124,7 +124,7 @@ OpenAPI_acceptable_service_info_t *OpenAPI_acceptable_service_info_parseFromJSON
|
|||
|
||||
cJSON *mar_bw_dl = cJSON_GetObjectItemCaseSensitive(acceptable_service_infoJSON, "marBwDl");
|
||||
|
||||
if (mar_bw_dl) {
|
||||
if (mar_bw_dl) {
|
||||
if (!cJSON_IsString(mar_bw_dl)) {
|
||||
ogs_error("OpenAPI_acceptable_service_info_parseFromJSON() failed [mar_bw_dl]");
|
||||
goto end;
|
||||
|
|
|
@ -18,6 +18,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_create(
|
|||
char *reachability_status_ts,
|
||||
OpenAPI_sms_support_e sms_over_nas_status,
|
||||
char *sms_over_nas_status_ts,
|
||||
bool is_roaming_status,
|
||||
int roaming_status,
|
||||
char *roaming_status_ts,
|
||||
OpenAPI_plmn_id_1_t *current_plmn,
|
||||
|
@ -44,6 +45,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_create(
|
|||
access_and_mobility_data_local_var->reachability_status_ts = reachability_status_ts;
|
||||
access_and_mobility_data_local_var->sms_over_nas_status = sms_over_nas_status;
|
||||
access_and_mobility_data_local_var->sms_over_nas_status_ts = sms_over_nas_status_ts;
|
||||
access_and_mobility_data_local_var->is_roaming_status = is_roaming_status;
|
||||
access_and_mobility_data_local_var->roaming_status = roaming_status;
|
||||
access_and_mobility_data_local_var->roaming_status_ts = roaming_status_ts;
|
||||
access_and_mobility_data_local_var->current_plmn = current_plmn;
|
||||
|
@ -226,7 +228,7 @@ cJSON *OpenAPI_access_and_mobility_data_convertToJSON(OpenAPI_access_and_mobilit
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_data->roaming_status) {
|
||||
if (access_and_mobility_data->is_roaming_status) {
|
||||
if (cJSON_AddBoolToObject(item, "roamingStatus", access_and_mobility_data->roaming_status) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_convertToJSON() failed [roaming_status]");
|
||||
goto end;
|
||||
|
@ -299,13 +301,13 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *location = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "location");
|
||||
|
||||
OpenAPI_user_location_t *location_local_nonprim = NULL;
|
||||
if (location) {
|
||||
if (location) {
|
||||
location_local_nonprim = OpenAPI_user_location_parseFromJSON(location);
|
||||
}
|
||||
|
||||
cJSON *location_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "locationTs");
|
||||
|
||||
if (location_ts) {
|
||||
if (location_ts) {
|
||||
if (!cJSON_IsString(location_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [location_ts]");
|
||||
goto end;
|
||||
|
@ -314,7 +316,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *time_zone = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "timeZone");
|
||||
|
||||
if (time_zone) {
|
||||
if (time_zone) {
|
||||
if (!cJSON_IsString(time_zone)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [time_zone]");
|
||||
goto end;
|
||||
|
@ -323,7 +325,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *time_zone_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "timeZoneTs");
|
||||
|
||||
if (time_zone_ts) {
|
||||
if (time_zone_ts) {
|
||||
if (!cJSON_IsString(time_zone_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [time_zone_ts]");
|
||||
goto end;
|
||||
|
@ -333,7 +335,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *access_type = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "accessType");
|
||||
|
||||
OpenAPI_access_type_e access_typeVariable;
|
||||
if (access_type) {
|
||||
if (access_type) {
|
||||
if (!cJSON_IsString(access_type)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [access_type]");
|
||||
goto end;
|
||||
|
@ -344,7 +346,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *reg_states = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "regStates");
|
||||
|
||||
OpenAPI_list_t *reg_statesList;
|
||||
if (reg_states) {
|
||||
if (reg_states) {
|
||||
cJSON *reg_states_local_nonprimitive;
|
||||
if (!cJSON_IsArray(reg_states)){
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [reg_states]");
|
||||
|
@ -366,7 +368,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *reg_states_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "regStatesTs");
|
||||
|
||||
if (reg_states_ts) {
|
||||
if (reg_states_ts) {
|
||||
if (!cJSON_IsString(reg_states_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [reg_states_ts]");
|
||||
goto end;
|
||||
|
@ -376,7 +378,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *conn_states = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "connStates");
|
||||
|
||||
OpenAPI_list_t *conn_statesList;
|
||||
if (conn_states) {
|
||||
if (conn_states) {
|
||||
cJSON *conn_states_local_nonprimitive;
|
||||
if (!cJSON_IsArray(conn_states)){
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [conn_states]");
|
||||
|
@ -398,7 +400,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *conn_states_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "connStatesTs");
|
||||
|
||||
if (conn_states_ts) {
|
||||
if (conn_states_ts) {
|
||||
if (!cJSON_IsString(conn_states_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [conn_states_ts]");
|
||||
goto end;
|
||||
|
@ -408,13 +410,13 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *reachability_status = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "reachabilityStatus");
|
||||
|
||||
OpenAPI_ue_reachability_t *reachability_status_local_nonprim = NULL;
|
||||
if (reachability_status) {
|
||||
if (reachability_status) {
|
||||
reachability_status_local_nonprim = OpenAPI_ue_reachability_parseFromJSON(reachability_status);
|
||||
}
|
||||
|
||||
cJSON *reachability_status_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "reachabilityStatusTs");
|
||||
|
||||
if (reachability_status_ts) {
|
||||
if (reachability_status_ts) {
|
||||
if (!cJSON_IsString(reachability_status_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [reachability_status_ts]");
|
||||
goto end;
|
||||
|
@ -424,7 +426,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *sms_over_nas_status = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "smsOverNasStatus");
|
||||
|
||||
OpenAPI_sms_support_e sms_over_nas_statusVariable;
|
||||
if (sms_over_nas_status) {
|
||||
if (sms_over_nas_status) {
|
||||
if (!cJSON_IsString(sms_over_nas_status)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [sms_over_nas_status]");
|
||||
goto end;
|
||||
|
@ -434,7 +436,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *sms_over_nas_status_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "smsOverNasStatusTs");
|
||||
|
||||
if (sms_over_nas_status_ts) {
|
||||
if (sms_over_nas_status_ts) {
|
||||
if (!cJSON_IsString(sms_over_nas_status_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [sms_over_nas_status_ts]");
|
||||
goto end;
|
||||
|
@ -443,7 +445,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *roaming_status = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "roamingStatus");
|
||||
|
||||
if (roaming_status) {
|
||||
if (roaming_status) {
|
||||
if (!cJSON_IsBool(roaming_status)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [roaming_status]");
|
||||
goto end;
|
||||
|
@ -452,7 +454,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *roaming_status_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "roamingStatusTs");
|
||||
|
||||
if (roaming_status_ts) {
|
||||
if (roaming_status_ts) {
|
||||
if (!cJSON_IsString(roaming_status_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [roaming_status_ts]");
|
||||
goto end;
|
||||
|
@ -462,13 +464,13 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *current_plmn = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "currentPlmn");
|
||||
|
||||
OpenAPI_plmn_id_1_t *current_plmn_local_nonprim = NULL;
|
||||
if (current_plmn) {
|
||||
if (current_plmn) {
|
||||
current_plmn_local_nonprim = OpenAPI_plmn_id_1_parseFromJSON(current_plmn);
|
||||
}
|
||||
|
||||
cJSON *current_plmn_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "currentPlmnTs");
|
||||
|
||||
if (current_plmn_ts) {
|
||||
if (current_plmn_ts) {
|
||||
if (!cJSON_IsString(current_plmn_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [current_plmn_ts]");
|
||||
goto end;
|
||||
|
@ -478,7 +480,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
cJSON *rat_type = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "ratType");
|
||||
|
||||
OpenAPI_list_t *rat_typeList;
|
||||
if (rat_type) {
|
||||
if (rat_type) {
|
||||
cJSON *rat_type_local_nonprimitive;
|
||||
if (!cJSON_IsArray(rat_type)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [rat_type]");
|
||||
|
@ -499,7 +501,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *rat_types_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "ratTypesTs");
|
||||
|
||||
if (rat_types_ts) {
|
||||
if (rat_types_ts) {
|
||||
if (!cJSON_IsString(rat_types_ts)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [rat_types_ts]");
|
||||
goto end;
|
||||
|
@ -508,7 +510,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
|
||||
cJSON *supp_feat = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "suppFeat");
|
||||
|
||||
if (supp_feat) {
|
||||
if (supp_feat) {
|
||||
if (!cJSON_IsString(supp_feat)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed [supp_feat]");
|
||||
goto end;
|
||||
|
@ -529,6 +531,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
|
|||
reachability_status_ts ? ogs_strdup_or_assert(reachability_status_ts->valuestring) : NULL,
|
||||
sms_over_nas_status ? sms_over_nas_statusVariable : 0,
|
||||
sms_over_nas_status_ts ? ogs_strdup_or_assert(sms_over_nas_status_ts->valuestring) : NULL,
|
||||
roaming_status ? true : false,
|
||||
roaming_status ? roaming_status->valueint : 0,
|
||||
roaming_status_ts ? ogs_strdup_or_assert(roaming_status_ts->valuestring) : NULL,
|
||||
current_plmn ? current_plmn_local_nonprim : NULL,
|
||||
|
|
|
@ -40,6 +40,7 @@ typedef struct OpenAPI_access_and_mobility_data_s {
|
|||
char *reachability_status_ts;
|
||||
OpenAPI_sms_support_e sms_over_nas_status;
|
||||
char *sms_over_nas_status_ts;
|
||||
bool is_roaming_status;
|
||||
int roaming_status;
|
||||
char *roaming_status_ts;
|
||||
struct OpenAPI_plmn_id_1_s *current_plmn;
|
||||
|
@ -63,6 +64,7 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_create(
|
|||
char *reachability_status_ts,
|
||||
OpenAPI_sms_support_e sms_over_nas_status,
|
||||
char *sms_over_nas_status_ts,
|
||||
bool is_roaming_status,
|
||||
int roaming_status,
|
||||
char *roaming_status_ts,
|
||||
OpenAPI_plmn_id_1_t *current_plmn,
|
||||
|
|
|
@ -15,21 +15,31 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
OpenAPI_list_t *forbidden_areas,
|
||||
OpenAPI_service_area_restriction_t *service_area_restriction,
|
||||
OpenAPI_list_t *core_network_type_restrictions,
|
||||
bool is_rfsp_index,
|
||||
int rfsp_index,
|
||||
bool is_subs_reg_timer,
|
||||
int subs_reg_timer,
|
||||
bool is_ue_usage_type,
|
||||
int ue_usage_type,
|
||||
bool is_mps_priority,
|
||||
int mps_priority,
|
||||
bool is_mcs_priority,
|
||||
int mcs_priority,
|
||||
bool is_active_time,
|
||||
int active_time,
|
||||
OpenAPI_sor_info_t *sor_info,
|
||||
bool is_sor_info_expect_ind,
|
||||
int sor_info_expect_ind,
|
||||
bool is_soraf_retrieval,
|
||||
int soraf_retrieval,
|
||||
OpenAPI_list_t *sor_update_indicator_list,
|
||||
OpenAPI_upu_info_t *upu_info,
|
||||
bool is_mico_allowed,
|
||||
int mico_allowed,
|
||||
OpenAPI_list_t *shared_am_data_ids,
|
||||
OpenAPI_odb_packet_services_e odb_packet_services,
|
||||
OpenAPI_list_t *subscribed_dnn_list,
|
||||
bool is_service_gap_time,
|
||||
int service_gap_time,
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent,
|
||||
OpenAPI_mdt_configuration_t *mdt_configuration,
|
||||
|
@ -37,16 +47,20 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
OpenAPI_cag_data_t *cag_data,
|
||||
char *stn_sr,
|
||||
char *c_msisdn,
|
||||
bool is_nb_io_tue_priority,
|
||||
int nb_io_tue_priority,
|
||||
bool is_nssai_inclusion_allowed,
|
||||
int nssai_inclusion_allowed,
|
||||
char *rg_wireline_characteristics,
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb,
|
||||
bool is_ec_restriction_data_nb,
|
||||
int ec_restriction_data_nb,
|
||||
OpenAPI_expected_ue_behaviour_data_t *expected_ue_behaviour_list,
|
||||
OpenAPI_list_t *primary_rat_restrictions,
|
||||
OpenAPI_list_t *secondary_rat_restrictions,
|
||||
OpenAPI_list_t *edrx_parameters_list,
|
||||
OpenAPI_list_t *ptw_parameters_list,
|
||||
bool is_iab_operation_allowed,
|
||||
int iab_operation_allowed,
|
||||
OpenAPI_list_t *wireline_forbidden_areas,
|
||||
OpenAPI_wireline_service_area_restriction_t *wireline_service_area_restriction
|
||||
|
@ -66,21 +80,31 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
access_and_mobility_subscription_data_local_var->forbidden_areas = forbidden_areas;
|
||||
access_and_mobility_subscription_data_local_var->service_area_restriction = service_area_restriction;
|
||||
access_and_mobility_subscription_data_local_var->core_network_type_restrictions = core_network_type_restrictions;
|
||||
access_and_mobility_subscription_data_local_var->is_rfsp_index = is_rfsp_index;
|
||||
access_and_mobility_subscription_data_local_var->rfsp_index = rfsp_index;
|
||||
access_and_mobility_subscription_data_local_var->is_subs_reg_timer = is_subs_reg_timer;
|
||||
access_and_mobility_subscription_data_local_var->subs_reg_timer = subs_reg_timer;
|
||||
access_and_mobility_subscription_data_local_var->is_ue_usage_type = is_ue_usage_type;
|
||||
access_and_mobility_subscription_data_local_var->ue_usage_type = ue_usage_type;
|
||||
access_and_mobility_subscription_data_local_var->is_mps_priority = is_mps_priority;
|
||||
access_and_mobility_subscription_data_local_var->mps_priority = mps_priority;
|
||||
access_and_mobility_subscription_data_local_var->is_mcs_priority = is_mcs_priority;
|
||||
access_and_mobility_subscription_data_local_var->mcs_priority = mcs_priority;
|
||||
access_and_mobility_subscription_data_local_var->is_active_time = is_active_time;
|
||||
access_and_mobility_subscription_data_local_var->active_time = active_time;
|
||||
access_and_mobility_subscription_data_local_var->sor_info = sor_info;
|
||||
access_and_mobility_subscription_data_local_var->is_sor_info_expect_ind = is_sor_info_expect_ind;
|
||||
access_and_mobility_subscription_data_local_var->sor_info_expect_ind = sor_info_expect_ind;
|
||||
access_and_mobility_subscription_data_local_var->is_soraf_retrieval = is_soraf_retrieval;
|
||||
access_and_mobility_subscription_data_local_var->soraf_retrieval = soraf_retrieval;
|
||||
access_and_mobility_subscription_data_local_var->sor_update_indicator_list = sor_update_indicator_list;
|
||||
access_and_mobility_subscription_data_local_var->upu_info = upu_info;
|
||||
access_and_mobility_subscription_data_local_var->is_mico_allowed = is_mico_allowed;
|
||||
access_and_mobility_subscription_data_local_var->mico_allowed = mico_allowed;
|
||||
access_and_mobility_subscription_data_local_var->shared_am_data_ids = shared_am_data_ids;
|
||||
access_and_mobility_subscription_data_local_var->odb_packet_services = odb_packet_services;
|
||||
access_and_mobility_subscription_data_local_var->subscribed_dnn_list = subscribed_dnn_list;
|
||||
access_and_mobility_subscription_data_local_var->is_service_gap_time = is_service_gap_time;
|
||||
access_and_mobility_subscription_data_local_var->service_gap_time = service_gap_time;
|
||||
access_and_mobility_subscription_data_local_var->mdt_user_consent = mdt_user_consent;
|
||||
access_and_mobility_subscription_data_local_var->mdt_configuration = mdt_configuration;
|
||||
|
@ -88,16 +112,20 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
access_and_mobility_subscription_data_local_var->cag_data = cag_data;
|
||||
access_and_mobility_subscription_data_local_var->stn_sr = stn_sr;
|
||||
access_and_mobility_subscription_data_local_var->c_msisdn = c_msisdn;
|
||||
access_and_mobility_subscription_data_local_var->is_nb_io_tue_priority = is_nb_io_tue_priority;
|
||||
access_and_mobility_subscription_data_local_var->nb_io_tue_priority = nb_io_tue_priority;
|
||||
access_and_mobility_subscription_data_local_var->is_nssai_inclusion_allowed = is_nssai_inclusion_allowed;
|
||||
access_and_mobility_subscription_data_local_var->nssai_inclusion_allowed = nssai_inclusion_allowed;
|
||||
access_and_mobility_subscription_data_local_var->rg_wireline_characteristics = rg_wireline_characteristics;
|
||||
access_and_mobility_subscription_data_local_var->ec_restriction_data_wb = ec_restriction_data_wb;
|
||||
access_and_mobility_subscription_data_local_var->is_ec_restriction_data_nb = is_ec_restriction_data_nb;
|
||||
access_and_mobility_subscription_data_local_var->ec_restriction_data_nb = ec_restriction_data_nb;
|
||||
access_and_mobility_subscription_data_local_var->expected_ue_behaviour_list = expected_ue_behaviour_list;
|
||||
access_and_mobility_subscription_data_local_var->primary_rat_restrictions = primary_rat_restrictions;
|
||||
access_and_mobility_subscription_data_local_var->secondary_rat_restrictions = secondary_rat_restrictions;
|
||||
access_and_mobility_subscription_data_local_var->edrx_parameters_list = edrx_parameters_list;
|
||||
access_and_mobility_subscription_data_local_var->ptw_parameters_list = ptw_parameters_list;
|
||||
access_and_mobility_subscription_data_local_var->is_iab_operation_allowed = is_iab_operation_allowed;
|
||||
access_and_mobility_subscription_data_local_var->iab_operation_allowed = iab_operation_allowed;
|
||||
access_and_mobility_subscription_data_local_var->wireline_forbidden_areas = wireline_forbidden_areas;
|
||||
access_and_mobility_subscription_data_local_var->wireline_service_area_restriction = wireline_service_area_restriction;
|
||||
|
@ -325,42 +353,42 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_convertToJSON(OpenAPI_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->rfsp_index) {
|
||||
if (access_and_mobility_subscription_data->is_rfsp_index) {
|
||||
if (cJSON_AddNumberToObject(item, "rfspIndex", access_and_mobility_subscription_data->rfsp_index) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [rfsp_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->subs_reg_timer) {
|
||||
if (access_and_mobility_subscription_data->is_subs_reg_timer) {
|
||||
if (cJSON_AddNumberToObject(item, "subsRegTimer", access_and_mobility_subscription_data->subs_reg_timer) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [subs_reg_timer]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->ue_usage_type) {
|
||||
if (access_and_mobility_subscription_data->is_ue_usage_type) {
|
||||
if (cJSON_AddNumberToObject(item, "ueUsageType", access_and_mobility_subscription_data->ue_usage_type) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [ue_usage_type]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->mps_priority) {
|
||||
if (access_and_mobility_subscription_data->is_mps_priority) {
|
||||
if (cJSON_AddBoolToObject(item, "mpsPriority", access_and_mobility_subscription_data->mps_priority) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [mps_priority]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->mcs_priority) {
|
||||
if (access_and_mobility_subscription_data->is_mcs_priority) {
|
||||
if (cJSON_AddBoolToObject(item, "mcsPriority", access_and_mobility_subscription_data->mcs_priority) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [mcs_priority]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->active_time) {
|
||||
if (access_and_mobility_subscription_data->is_active_time) {
|
||||
if (cJSON_AddNumberToObject(item, "activeTime", access_and_mobility_subscription_data->active_time) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [active_time]");
|
||||
goto end;
|
||||
|
@ -380,14 +408,14 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_convertToJSON(OpenAPI_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->sor_info_expect_ind) {
|
||||
if (access_and_mobility_subscription_data->is_sor_info_expect_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "sorInfoExpectInd", access_and_mobility_subscription_data->sor_info_expect_ind) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [sor_info_expect_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->soraf_retrieval) {
|
||||
if (access_and_mobility_subscription_data->is_soraf_retrieval) {
|
||||
if (cJSON_AddBoolToObject(item, "sorafRetrieval", access_and_mobility_subscription_data->soraf_retrieval) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [soraf_retrieval]");
|
||||
goto end;
|
||||
|
@ -422,7 +450,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_convertToJSON(OpenAPI_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->mico_allowed) {
|
||||
if (access_and_mobility_subscription_data->is_mico_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "micoAllowed", access_and_mobility_subscription_data->mico_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [mico_allowed]");
|
||||
goto end;
|
||||
|
@ -468,7 +496,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_convertToJSON(OpenAPI_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->service_gap_time) {
|
||||
if (access_and_mobility_subscription_data->is_service_gap_time) {
|
||||
if (cJSON_AddNumberToObject(item, "serviceGapTime", access_and_mobility_subscription_data->service_gap_time) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [service_gap_time]");
|
||||
goto end;
|
||||
|
@ -535,14 +563,14 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_convertToJSON(OpenAPI_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->nb_io_tue_priority) {
|
||||
if (access_and_mobility_subscription_data->is_nb_io_tue_priority) {
|
||||
if (cJSON_AddNumberToObject(item, "nbIoTUePriority", access_and_mobility_subscription_data->nb_io_tue_priority) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [nb_io_tue_priority]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->nssai_inclusion_allowed) {
|
||||
if (access_and_mobility_subscription_data->is_nssai_inclusion_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "nssaiInclusionAllowed", access_and_mobility_subscription_data->nssai_inclusion_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [nssai_inclusion_allowed]");
|
||||
goto end;
|
||||
|
@ -569,7 +597,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_convertToJSON(OpenAPI_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->ec_restriction_data_nb) {
|
||||
if (access_and_mobility_subscription_data->is_ec_restriction_data_nb) {
|
||||
if (cJSON_AddBoolToObject(item, "ecRestrictionDataNb", access_and_mobility_subscription_data->ec_restriction_data_nb) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
|
@ -659,7 +687,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_convertToJSON(OpenAPI_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data->iab_operation_allowed) {
|
||||
if (access_and_mobility_subscription_data->is_iab_operation_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "iabOperationAllowed", access_and_mobility_subscription_data->iab_operation_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed [iab_operation_allowed]");
|
||||
goto end;
|
||||
|
@ -708,7 +736,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
OpenAPI_access_and_mobility_subscription_data_t *access_and_mobility_subscription_data_local_var = NULL;
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
@ -718,7 +746,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *gpsis = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "gpsis");
|
||||
|
||||
OpenAPI_list_t *gpsisList;
|
||||
if (gpsis) {
|
||||
if (gpsis) {
|
||||
cJSON *gpsis_local;
|
||||
if (!cJSON_IsArray(gpsis)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [gpsis]");
|
||||
|
@ -732,13 +760,13 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(gpsisList , ogs_strdup_or_assert(gpsis_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *internal_group_ids = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "internalGroupIds");
|
||||
|
||||
OpenAPI_list_t *internal_group_idsList;
|
||||
if (internal_group_ids) {
|
||||
if (internal_group_ids) {
|
||||
cJSON *internal_group_ids_local;
|
||||
if (!cJSON_IsArray(internal_group_ids)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [internal_group_ids]");
|
||||
|
@ -752,13 +780,13 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(internal_group_idsList , ogs_strdup_or_assert(internal_group_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *shared_vn_group_data_ids = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "sharedVnGroupDataIds");
|
||||
|
||||
OpenAPI_list_t *shared_vn_group_data_idsList;
|
||||
if (shared_vn_group_data_ids) {
|
||||
if (shared_vn_group_data_ids) {
|
||||
cJSON *shared_vn_group_data_ids_local_map;
|
||||
if (!cJSON_IsObject(shared_vn_group_data_ids)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [shared_vn_group_data_ids]");
|
||||
|
@ -775,21 +803,21 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *subscribed_ue_ambr = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "subscribedUeAmbr");
|
||||
|
||||
OpenAPI_ambr_rm_t *subscribed_ue_ambr_local_nonprim = NULL;
|
||||
if (subscribed_ue_ambr) {
|
||||
if (subscribed_ue_ambr) {
|
||||
subscribed_ue_ambr_local_nonprim = OpenAPI_ambr_rm_parseFromJSON(subscribed_ue_ambr);
|
||||
}
|
||||
|
||||
cJSON *nssai = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "nssai");
|
||||
|
||||
OpenAPI_nssai_t *nssai_local_nonprim = NULL;
|
||||
if (nssai) {
|
||||
if (nssai) {
|
||||
nssai_local_nonprim = OpenAPI_nssai_parseFromJSON(nssai);
|
||||
}
|
||||
|
||||
cJSON *rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "ratRestrictions");
|
||||
|
||||
OpenAPI_list_t *rat_restrictionsList;
|
||||
if (rat_restrictions) {
|
||||
if (rat_restrictions) {
|
||||
cJSON *rat_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(rat_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [rat_restrictions]");
|
||||
|
@ -811,7 +839,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *forbidden_areas = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "forbiddenAreas");
|
||||
|
||||
OpenAPI_list_t *forbidden_areasList;
|
||||
if (forbidden_areas) {
|
||||
if (forbidden_areas) {
|
||||
cJSON *forbidden_areas_local_nonprimitive;
|
||||
if (!cJSON_IsArray(forbidden_areas)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [forbidden_areas]");
|
||||
|
@ -834,14 +862,14 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *service_area_restriction = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "serviceAreaRestriction");
|
||||
|
||||
OpenAPI_service_area_restriction_t *service_area_restriction_local_nonprim = NULL;
|
||||
if (service_area_restriction) {
|
||||
if (service_area_restriction) {
|
||||
service_area_restriction_local_nonprim = OpenAPI_service_area_restriction_parseFromJSON(service_area_restriction);
|
||||
}
|
||||
|
||||
cJSON *core_network_type_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "coreNetworkTypeRestrictions");
|
||||
|
||||
OpenAPI_list_t *core_network_type_restrictionsList;
|
||||
if (core_network_type_restrictions) {
|
||||
if (core_network_type_restrictions) {
|
||||
cJSON *core_network_type_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(core_network_type_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [core_network_type_restrictions]");
|
||||
|
@ -862,7 +890,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *rfsp_index = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "rfspIndex");
|
||||
|
||||
if (rfsp_index) {
|
||||
if (rfsp_index) {
|
||||
if (!cJSON_IsNumber(rfsp_index)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [rfsp_index]");
|
||||
goto end;
|
||||
|
@ -871,7 +899,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *subs_reg_timer = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "subsRegTimer");
|
||||
|
||||
if (subs_reg_timer) {
|
||||
if (subs_reg_timer) {
|
||||
if (!cJSON_IsNumber(subs_reg_timer)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [subs_reg_timer]");
|
||||
goto end;
|
||||
|
@ -880,7 +908,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *ue_usage_type = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "ueUsageType");
|
||||
|
||||
if (ue_usage_type) {
|
||||
if (ue_usage_type) {
|
||||
if (!cJSON_IsNumber(ue_usage_type)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [ue_usage_type]");
|
||||
goto end;
|
||||
|
@ -889,7 +917,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *mps_priority = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "mpsPriority");
|
||||
|
||||
if (mps_priority) {
|
||||
if (mps_priority) {
|
||||
if (!cJSON_IsBool(mps_priority)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [mps_priority]");
|
||||
goto end;
|
||||
|
@ -898,7 +926,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *mcs_priority = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "mcsPriority");
|
||||
|
||||
if (mcs_priority) {
|
||||
if (mcs_priority) {
|
||||
if (!cJSON_IsBool(mcs_priority)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [mcs_priority]");
|
||||
goto end;
|
||||
|
@ -907,7 +935,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *active_time = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "activeTime");
|
||||
|
||||
if (active_time) {
|
||||
if (active_time) {
|
||||
if (!cJSON_IsNumber(active_time)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [active_time]");
|
||||
goto end;
|
||||
|
@ -917,13 +945,13 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *sor_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "sorInfo");
|
||||
|
||||
OpenAPI_sor_info_t *sor_info_local_nonprim = NULL;
|
||||
if (sor_info) {
|
||||
if (sor_info) {
|
||||
sor_info_local_nonprim = OpenAPI_sor_info_parseFromJSON(sor_info);
|
||||
}
|
||||
|
||||
cJSON *sor_info_expect_ind = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "sorInfoExpectInd");
|
||||
|
||||
if (sor_info_expect_ind) {
|
||||
if (sor_info_expect_ind) {
|
||||
if (!cJSON_IsBool(sor_info_expect_ind)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [sor_info_expect_ind]");
|
||||
goto end;
|
||||
|
@ -932,7 +960,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *soraf_retrieval = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "sorafRetrieval");
|
||||
|
||||
if (soraf_retrieval) {
|
||||
if (soraf_retrieval) {
|
||||
if (!cJSON_IsBool(soraf_retrieval)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [soraf_retrieval]");
|
||||
goto end;
|
||||
|
@ -942,7 +970,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *sor_update_indicator_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "sorUpdateIndicatorList");
|
||||
|
||||
OpenAPI_list_t *sor_update_indicator_listList;
|
||||
if (sor_update_indicator_list) {
|
||||
if (sor_update_indicator_list) {
|
||||
cJSON *sor_update_indicator_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(sor_update_indicator_list)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [sor_update_indicator_list]");
|
||||
|
@ -964,13 +992,13 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *upu_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "upuInfo");
|
||||
|
||||
OpenAPI_upu_info_t *upu_info_local_nonprim = NULL;
|
||||
if (upu_info) {
|
||||
if (upu_info) {
|
||||
upu_info_local_nonprim = OpenAPI_upu_info_parseFromJSON(upu_info);
|
||||
}
|
||||
|
||||
cJSON *mico_allowed = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "micoAllowed");
|
||||
|
||||
if (mico_allowed) {
|
||||
if (mico_allowed) {
|
||||
if (!cJSON_IsBool(mico_allowed)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [mico_allowed]");
|
||||
goto end;
|
||||
|
@ -980,7 +1008,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *shared_am_data_ids = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "sharedAmDataIds");
|
||||
|
||||
OpenAPI_list_t *shared_am_data_idsList;
|
||||
if (shared_am_data_ids) {
|
||||
if (shared_am_data_ids) {
|
||||
cJSON *shared_am_data_ids_local;
|
||||
if (!cJSON_IsArray(shared_am_data_ids)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [shared_am_data_ids]");
|
||||
|
@ -994,13 +1022,13 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(shared_am_data_idsList , ogs_strdup_or_assert(shared_am_data_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *odb_packet_services = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "odbPacketServices");
|
||||
|
||||
OpenAPI_odb_packet_services_e odb_packet_servicesVariable;
|
||||
if (odb_packet_services) {
|
||||
if (odb_packet_services) {
|
||||
if (!cJSON_IsString(odb_packet_services)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [odb_packet_services]");
|
||||
goto end;
|
||||
|
@ -1011,7 +1039,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *subscribed_dnn_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "subscribedDnnList");
|
||||
|
||||
OpenAPI_list_t *subscribed_dnn_listList;
|
||||
if (subscribed_dnn_list) {
|
||||
if (subscribed_dnn_list) {
|
||||
cJSON *subscribed_dnn_list_local;
|
||||
if (!cJSON_IsArray(subscribed_dnn_list)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [subscribed_dnn_list]");
|
||||
|
@ -1025,12 +1053,12 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(subscribed_dnn_listList , ogs_strdup_or_assert(subscribed_dnn_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *service_gap_time = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "serviceGapTime");
|
||||
|
||||
if (service_gap_time) {
|
||||
if (service_gap_time) {
|
||||
if (!cJSON_IsNumber(service_gap_time)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [service_gap_time]");
|
||||
goto end;
|
||||
|
@ -1040,7 +1068,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *mdt_user_consent = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "mdtUserConsent");
|
||||
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consentVariable;
|
||||
if (mdt_user_consent) {
|
||||
if (mdt_user_consent) {
|
||||
if (!cJSON_IsString(mdt_user_consent)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [mdt_user_consent]");
|
||||
goto end;
|
||||
|
@ -1051,27 +1079,27 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *mdt_configuration = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "mdtConfiguration");
|
||||
|
||||
OpenAPI_mdt_configuration_t *mdt_configuration_local_nonprim = NULL;
|
||||
if (mdt_configuration) {
|
||||
if (mdt_configuration) {
|
||||
mdt_configuration_local_nonprim = OpenAPI_mdt_configuration_parseFromJSON(mdt_configuration);
|
||||
}
|
||||
|
||||
cJSON *trace_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "traceData");
|
||||
|
||||
OpenAPI_trace_data_1_t *trace_data_local_nonprim = NULL;
|
||||
if (trace_data) {
|
||||
if (trace_data) {
|
||||
trace_data_local_nonprim = OpenAPI_trace_data_1_parseFromJSON(trace_data);
|
||||
}
|
||||
|
||||
cJSON *cag_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "cagData");
|
||||
|
||||
OpenAPI_cag_data_t *cag_data_local_nonprim = NULL;
|
||||
if (cag_data) {
|
||||
if (cag_data) {
|
||||
cag_data_local_nonprim = OpenAPI_cag_data_parseFromJSON(cag_data);
|
||||
}
|
||||
|
||||
cJSON *stn_sr = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "stnSr");
|
||||
|
||||
if (stn_sr) {
|
||||
if (stn_sr) {
|
||||
if (!cJSON_IsString(stn_sr)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [stn_sr]");
|
||||
goto end;
|
||||
|
@ -1080,7 +1108,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *c_msisdn = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "cMsisdn");
|
||||
|
||||
if (c_msisdn) {
|
||||
if (c_msisdn) {
|
||||
if (!cJSON_IsString(c_msisdn)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [c_msisdn]");
|
||||
goto end;
|
||||
|
@ -1089,7 +1117,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *nb_io_tue_priority = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "nbIoTUePriority");
|
||||
|
||||
if (nb_io_tue_priority) {
|
||||
if (nb_io_tue_priority) {
|
||||
if (!cJSON_IsNumber(nb_io_tue_priority)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [nb_io_tue_priority]");
|
||||
goto end;
|
||||
|
@ -1098,7 +1126,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *nssai_inclusion_allowed = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "nssaiInclusionAllowed");
|
||||
|
||||
if (nssai_inclusion_allowed) {
|
||||
if (nssai_inclusion_allowed) {
|
||||
if (!cJSON_IsBool(nssai_inclusion_allowed)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [nssai_inclusion_allowed]");
|
||||
goto end;
|
||||
|
@ -1107,7 +1135,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *rg_wireline_characteristics = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "rgWirelineCharacteristics");
|
||||
|
||||
if (rg_wireline_characteristics) {
|
||||
if (rg_wireline_characteristics) {
|
||||
if (!cJSON_IsString(rg_wireline_characteristics)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [rg_wireline_characteristics]");
|
||||
goto end;
|
||||
|
@ -1117,13 +1145,13 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *ec_restriction_data_wb = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "ecRestrictionDataWb");
|
||||
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb_local_nonprim = NULL;
|
||||
if (ec_restriction_data_wb) {
|
||||
if (ec_restriction_data_wb) {
|
||||
ec_restriction_data_wb_local_nonprim = OpenAPI_ec_restriction_data_wb_parseFromJSON(ec_restriction_data_wb);
|
||||
}
|
||||
|
||||
cJSON *ec_restriction_data_nb = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "ecRestrictionDataNb");
|
||||
|
||||
if (ec_restriction_data_nb) {
|
||||
if (ec_restriction_data_nb) {
|
||||
if (!cJSON_IsBool(ec_restriction_data_nb)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
|
@ -1133,14 +1161,14 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *expected_ue_behaviour_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "expectedUeBehaviourList");
|
||||
|
||||
OpenAPI_expected_ue_behaviour_data_t *expected_ue_behaviour_list_local_nonprim = NULL;
|
||||
if (expected_ue_behaviour_list) {
|
||||
if (expected_ue_behaviour_list) {
|
||||
expected_ue_behaviour_list_local_nonprim = OpenAPI_expected_ue_behaviour_data_parseFromJSON(expected_ue_behaviour_list);
|
||||
}
|
||||
|
||||
cJSON *primary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "primaryRatRestrictions");
|
||||
|
||||
OpenAPI_list_t *primary_rat_restrictionsList;
|
||||
if (primary_rat_restrictions) {
|
||||
if (primary_rat_restrictions) {
|
||||
cJSON *primary_rat_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(primary_rat_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [primary_rat_restrictions]");
|
||||
|
@ -1162,7 +1190,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *secondary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "secondaryRatRestrictions");
|
||||
|
||||
OpenAPI_list_t *secondary_rat_restrictionsList;
|
||||
if (secondary_rat_restrictions) {
|
||||
if (secondary_rat_restrictions) {
|
||||
cJSON *secondary_rat_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(secondary_rat_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [secondary_rat_restrictions]");
|
||||
|
@ -1184,7 +1212,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *edrx_parameters_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "edrxParametersList");
|
||||
|
||||
OpenAPI_list_t *edrx_parameters_listList;
|
||||
if (edrx_parameters_list) {
|
||||
if (edrx_parameters_list) {
|
||||
cJSON *edrx_parameters_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(edrx_parameters_list)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [edrx_parameters_list]");
|
||||
|
@ -1207,7 +1235,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *ptw_parameters_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "ptwParametersList");
|
||||
|
||||
OpenAPI_list_t *ptw_parameters_listList;
|
||||
if (ptw_parameters_list) {
|
||||
if (ptw_parameters_list) {
|
||||
cJSON *ptw_parameters_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ptw_parameters_list)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [ptw_parameters_list]");
|
||||
|
@ -1229,7 +1257,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
|
||||
cJSON *iab_operation_allowed = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "iabOperationAllowed");
|
||||
|
||||
if (iab_operation_allowed) {
|
||||
if (iab_operation_allowed) {
|
||||
if (!cJSON_IsBool(iab_operation_allowed)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [iab_operation_allowed]");
|
||||
goto end;
|
||||
|
@ -1239,7 +1267,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *wireline_forbidden_areas = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "wirelineForbiddenAreas");
|
||||
|
||||
OpenAPI_list_t *wireline_forbidden_areasList;
|
||||
if (wireline_forbidden_areas) {
|
||||
if (wireline_forbidden_areas) {
|
||||
cJSON *wireline_forbidden_areas_local_nonprimitive;
|
||||
if (!cJSON_IsArray(wireline_forbidden_areas)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed [wireline_forbidden_areas]");
|
||||
|
@ -1262,7 +1290,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cJSON *wireline_service_area_restriction = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "wirelineServiceAreaRestriction");
|
||||
|
||||
OpenAPI_wireline_service_area_restriction_t *wireline_service_area_restriction_local_nonprim = NULL;
|
||||
if (wireline_service_area_restriction) {
|
||||
if (wireline_service_area_restriction) {
|
||||
wireline_service_area_restriction_local_nonprim = OpenAPI_wireline_service_area_restriction_parseFromJSON(wireline_service_area_restriction);
|
||||
}
|
||||
|
||||
|
@ -1277,21 +1305,31 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
forbidden_areas ? forbidden_areasList : NULL,
|
||||
service_area_restriction ? service_area_restriction_local_nonprim : NULL,
|
||||
core_network_type_restrictions ? core_network_type_restrictionsList : NULL,
|
||||
rfsp_index ? true : false,
|
||||
rfsp_index ? rfsp_index->valuedouble : 0,
|
||||
subs_reg_timer ? true : false,
|
||||
subs_reg_timer ? subs_reg_timer->valuedouble : 0,
|
||||
ue_usage_type ? true : false,
|
||||
ue_usage_type ? ue_usage_type->valuedouble : 0,
|
||||
mps_priority ? true : false,
|
||||
mps_priority ? mps_priority->valueint : 0,
|
||||
mcs_priority ? true : false,
|
||||
mcs_priority ? mcs_priority->valueint : 0,
|
||||
active_time ? true : false,
|
||||
active_time ? active_time->valuedouble : 0,
|
||||
sor_info ? sor_info_local_nonprim : NULL,
|
||||
sor_info_expect_ind ? true : false,
|
||||
sor_info_expect_ind ? sor_info_expect_ind->valueint : 0,
|
||||
soraf_retrieval ? true : false,
|
||||
soraf_retrieval ? soraf_retrieval->valueint : 0,
|
||||
sor_update_indicator_list ? sor_update_indicator_listList : NULL,
|
||||
upu_info ? upu_info_local_nonprim : NULL,
|
||||
mico_allowed ? true : false,
|
||||
mico_allowed ? mico_allowed->valueint : 0,
|
||||
shared_am_data_ids ? shared_am_data_idsList : NULL,
|
||||
odb_packet_services ? odb_packet_servicesVariable : 0,
|
||||
subscribed_dnn_list ? subscribed_dnn_listList : NULL,
|
||||
service_gap_time ? true : false,
|
||||
service_gap_time ? service_gap_time->valuedouble : 0,
|
||||
mdt_user_consent ? mdt_user_consentVariable : 0,
|
||||
mdt_configuration ? mdt_configuration_local_nonprim : NULL,
|
||||
|
@ -1299,16 +1337,20 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
cag_data ? cag_data_local_nonprim : NULL,
|
||||
stn_sr ? ogs_strdup_or_assert(stn_sr->valuestring) : NULL,
|
||||
c_msisdn ? ogs_strdup_or_assert(c_msisdn->valuestring) : NULL,
|
||||
nb_io_tue_priority ? true : false,
|
||||
nb_io_tue_priority ? nb_io_tue_priority->valuedouble : 0,
|
||||
nssai_inclusion_allowed ? true : false,
|
||||
nssai_inclusion_allowed ? nssai_inclusion_allowed->valueint : 0,
|
||||
rg_wireline_characteristics ? ogs_strdup_or_assert(rg_wireline_characteristics->valuestring) : NULL,
|
||||
ec_restriction_data_wb ? ec_restriction_data_wb_local_nonprim : NULL,
|
||||
ec_restriction_data_nb ? true : false,
|
||||
ec_restriction_data_nb ? ec_restriction_data_nb->valueint : 0,
|
||||
expected_ue_behaviour_list ? expected_ue_behaviour_list_local_nonprim : NULL,
|
||||
primary_rat_restrictions ? primary_rat_restrictionsList : NULL,
|
||||
secondary_rat_restrictions ? secondary_rat_restrictionsList : NULL,
|
||||
edrx_parameters_list ? edrx_parameters_listList : NULL,
|
||||
ptw_parameters_list ? ptw_parameters_listList : NULL,
|
||||
iab_operation_allowed ? true : false,
|
||||
iab_operation_allowed ? iab_operation_allowed->valueint : 0,
|
||||
wireline_forbidden_areas ? wireline_forbidden_areasList : NULL,
|
||||
wireline_service_area_restriction ? wireline_service_area_restriction_local_nonprim : NULL
|
||||
|
|
|
@ -49,21 +49,31 @@ typedef struct OpenAPI_access_and_mobility_subscription_data_s {
|
|||
OpenAPI_list_t *forbidden_areas;
|
||||
struct OpenAPI_service_area_restriction_s *service_area_restriction;
|
||||
OpenAPI_list_t *core_network_type_restrictions;
|
||||
bool is_rfsp_index;
|
||||
int rfsp_index;
|
||||
bool is_subs_reg_timer;
|
||||
int subs_reg_timer;
|
||||
bool is_ue_usage_type;
|
||||
int ue_usage_type;
|
||||
bool is_mps_priority;
|
||||
int mps_priority;
|
||||
bool is_mcs_priority;
|
||||
int mcs_priority;
|
||||
bool is_active_time;
|
||||
int active_time;
|
||||
struct OpenAPI_sor_info_s *sor_info;
|
||||
bool is_sor_info_expect_ind;
|
||||
int sor_info_expect_ind;
|
||||
bool is_soraf_retrieval;
|
||||
int soraf_retrieval;
|
||||
OpenAPI_list_t *sor_update_indicator_list;
|
||||
struct OpenAPI_upu_info_s *upu_info;
|
||||
bool is_mico_allowed;
|
||||
int mico_allowed;
|
||||
OpenAPI_list_t *shared_am_data_ids;
|
||||
OpenAPI_odb_packet_services_e odb_packet_services;
|
||||
OpenAPI_list_t *subscribed_dnn_list;
|
||||
bool is_service_gap_time;
|
||||
int service_gap_time;
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent;
|
||||
struct OpenAPI_mdt_configuration_s *mdt_configuration;
|
||||
|
@ -71,16 +81,20 @@ typedef struct OpenAPI_access_and_mobility_subscription_data_s {
|
|||
struct OpenAPI_cag_data_s *cag_data;
|
||||
char *stn_sr;
|
||||
char *c_msisdn;
|
||||
bool is_nb_io_tue_priority;
|
||||
int nb_io_tue_priority;
|
||||
bool is_nssai_inclusion_allowed;
|
||||
int nssai_inclusion_allowed;
|
||||
char *rg_wireline_characteristics;
|
||||
struct OpenAPI_ec_restriction_data_wb_s *ec_restriction_data_wb;
|
||||
bool is_ec_restriction_data_nb;
|
||||
int ec_restriction_data_nb;
|
||||
struct OpenAPI_expected_ue_behaviour_data_s *expected_ue_behaviour_list;
|
||||
OpenAPI_list_t *primary_rat_restrictions;
|
||||
OpenAPI_list_t *secondary_rat_restrictions;
|
||||
OpenAPI_list_t *edrx_parameters_list;
|
||||
OpenAPI_list_t *ptw_parameters_list;
|
||||
bool is_iab_operation_allowed;
|
||||
int iab_operation_allowed;
|
||||
OpenAPI_list_t *wireline_forbidden_areas;
|
||||
struct OpenAPI_wireline_service_area_restriction_s *wireline_service_area_restriction;
|
||||
|
@ -97,21 +111,31 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
OpenAPI_list_t *forbidden_areas,
|
||||
OpenAPI_service_area_restriction_t *service_area_restriction,
|
||||
OpenAPI_list_t *core_network_type_restrictions,
|
||||
bool is_rfsp_index,
|
||||
int rfsp_index,
|
||||
bool is_subs_reg_timer,
|
||||
int subs_reg_timer,
|
||||
bool is_ue_usage_type,
|
||||
int ue_usage_type,
|
||||
bool is_mps_priority,
|
||||
int mps_priority,
|
||||
bool is_mcs_priority,
|
||||
int mcs_priority,
|
||||
bool is_active_time,
|
||||
int active_time,
|
||||
OpenAPI_sor_info_t *sor_info,
|
||||
bool is_sor_info_expect_ind,
|
||||
int sor_info_expect_ind,
|
||||
bool is_soraf_retrieval,
|
||||
int soraf_retrieval,
|
||||
OpenAPI_list_t *sor_update_indicator_list,
|
||||
OpenAPI_upu_info_t *upu_info,
|
||||
bool is_mico_allowed,
|
||||
int mico_allowed,
|
||||
OpenAPI_list_t *shared_am_data_ids,
|
||||
OpenAPI_odb_packet_services_e odb_packet_services,
|
||||
OpenAPI_list_t *subscribed_dnn_list,
|
||||
bool is_service_gap_time,
|
||||
int service_gap_time,
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent,
|
||||
OpenAPI_mdt_configuration_t *mdt_configuration,
|
||||
|
@ -119,16 +143,20 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
OpenAPI_cag_data_t *cag_data,
|
||||
char *stn_sr,
|
||||
char *c_msisdn,
|
||||
bool is_nb_io_tue_priority,
|
||||
int nb_io_tue_priority,
|
||||
bool is_nssai_inclusion_allowed,
|
||||
int nssai_inclusion_allowed,
|
||||
char *rg_wireline_characteristics,
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb,
|
||||
bool is_ec_restriction_data_nb,
|
||||
int ec_restriction_data_nb,
|
||||
OpenAPI_expected_ue_behaviour_data_t *expected_ue_behaviour_list,
|
||||
OpenAPI_list_t *primary_rat_restrictions,
|
||||
OpenAPI_list_t *secondary_rat_restrictions,
|
||||
OpenAPI_list_t *edrx_parameters_list,
|
||||
OpenAPI_list_t *ptw_parameters_list,
|
||||
bool is_iab_operation_allowed,
|
||||
int iab_operation_allowed,
|
||||
OpenAPI_list_t *wireline_forbidden_areas,
|
||||
OpenAPI_wireline_service_area_restriction_t *wireline_service_area_restriction
|
||||
|
|
|
@ -15,21 +15,31 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
OpenAPI_list_t *forbidden_areas,
|
||||
OpenAPI_service_area_restriction_1_t *service_area_restriction,
|
||||
OpenAPI_list_t *core_network_type_restrictions,
|
||||
bool is_rfsp_index,
|
||||
int rfsp_index,
|
||||
bool is_subs_reg_timer,
|
||||
int subs_reg_timer,
|
||||
bool is_ue_usage_type,
|
||||
int ue_usage_type,
|
||||
bool is_mps_priority,
|
||||
int mps_priority,
|
||||
bool is_mcs_priority,
|
||||
int mcs_priority,
|
||||
bool is_active_time,
|
||||
int active_time,
|
||||
OpenAPI_sor_info_1_t *sor_info,
|
||||
bool is_sor_info_expect_ind,
|
||||
int sor_info_expect_ind,
|
||||
bool is_soraf_retrieval,
|
||||
int soraf_retrieval,
|
||||
OpenAPI_list_t *sor_update_indicator_list,
|
||||
OpenAPI_upu_info_1_t *upu_info,
|
||||
bool is_mico_allowed,
|
||||
int mico_allowed,
|
||||
OpenAPI_list_t *shared_am_data_ids,
|
||||
OpenAPI_odb_packet_services_e odb_packet_services,
|
||||
OpenAPI_list_t *subscribed_dnn_list,
|
||||
bool is_service_gap_time,
|
||||
int service_gap_time,
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent,
|
||||
OpenAPI_mdt_configuration_1_t *mdt_configuration,
|
||||
|
@ -37,16 +47,20 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
OpenAPI_cag_data_1_t *cag_data,
|
||||
char *stn_sr,
|
||||
char *c_msisdn,
|
||||
bool is_nb_io_tue_priority,
|
||||
int nb_io_tue_priority,
|
||||
bool is_nssai_inclusion_allowed,
|
||||
int nssai_inclusion_allowed,
|
||||
char *rg_wireline_characteristics,
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb,
|
||||
bool is_ec_restriction_data_nb,
|
||||
int ec_restriction_data_nb,
|
||||
OpenAPI_expected_ue_behaviour_data_1_t *expected_ue_behaviour_list,
|
||||
OpenAPI_list_t *primary_rat_restrictions,
|
||||
OpenAPI_list_t *secondary_rat_restrictions,
|
||||
OpenAPI_list_t *edrx_parameters_list,
|
||||
OpenAPI_list_t *ptw_parameters_list,
|
||||
bool is_iab_operation_allowed,
|
||||
int iab_operation_allowed,
|
||||
OpenAPI_list_t *wireline_forbidden_areas,
|
||||
OpenAPI_wireline_service_area_restriction_1_t *wireline_service_area_restriction
|
||||
|
@ -66,21 +80,31 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
access_and_mobility_subscription_data_1_local_var->forbidden_areas = forbidden_areas;
|
||||
access_and_mobility_subscription_data_1_local_var->service_area_restriction = service_area_restriction;
|
||||
access_and_mobility_subscription_data_1_local_var->core_network_type_restrictions = core_network_type_restrictions;
|
||||
access_and_mobility_subscription_data_1_local_var->is_rfsp_index = is_rfsp_index;
|
||||
access_and_mobility_subscription_data_1_local_var->rfsp_index = rfsp_index;
|
||||
access_and_mobility_subscription_data_1_local_var->is_subs_reg_timer = is_subs_reg_timer;
|
||||
access_and_mobility_subscription_data_1_local_var->subs_reg_timer = subs_reg_timer;
|
||||
access_and_mobility_subscription_data_1_local_var->is_ue_usage_type = is_ue_usage_type;
|
||||
access_and_mobility_subscription_data_1_local_var->ue_usage_type = ue_usage_type;
|
||||
access_and_mobility_subscription_data_1_local_var->is_mps_priority = is_mps_priority;
|
||||
access_and_mobility_subscription_data_1_local_var->mps_priority = mps_priority;
|
||||
access_and_mobility_subscription_data_1_local_var->is_mcs_priority = is_mcs_priority;
|
||||
access_and_mobility_subscription_data_1_local_var->mcs_priority = mcs_priority;
|
||||
access_and_mobility_subscription_data_1_local_var->is_active_time = is_active_time;
|
||||
access_and_mobility_subscription_data_1_local_var->active_time = active_time;
|
||||
access_and_mobility_subscription_data_1_local_var->sor_info = sor_info;
|
||||
access_and_mobility_subscription_data_1_local_var->is_sor_info_expect_ind = is_sor_info_expect_ind;
|
||||
access_and_mobility_subscription_data_1_local_var->sor_info_expect_ind = sor_info_expect_ind;
|
||||
access_and_mobility_subscription_data_1_local_var->is_soraf_retrieval = is_soraf_retrieval;
|
||||
access_and_mobility_subscription_data_1_local_var->soraf_retrieval = soraf_retrieval;
|
||||
access_and_mobility_subscription_data_1_local_var->sor_update_indicator_list = sor_update_indicator_list;
|
||||
access_and_mobility_subscription_data_1_local_var->upu_info = upu_info;
|
||||
access_and_mobility_subscription_data_1_local_var->is_mico_allowed = is_mico_allowed;
|
||||
access_and_mobility_subscription_data_1_local_var->mico_allowed = mico_allowed;
|
||||
access_and_mobility_subscription_data_1_local_var->shared_am_data_ids = shared_am_data_ids;
|
||||
access_and_mobility_subscription_data_1_local_var->odb_packet_services = odb_packet_services;
|
||||
access_and_mobility_subscription_data_1_local_var->subscribed_dnn_list = subscribed_dnn_list;
|
||||
access_and_mobility_subscription_data_1_local_var->is_service_gap_time = is_service_gap_time;
|
||||
access_and_mobility_subscription_data_1_local_var->service_gap_time = service_gap_time;
|
||||
access_and_mobility_subscription_data_1_local_var->mdt_user_consent = mdt_user_consent;
|
||||
access_and_mobility_subscription_data_1_local_var->mdt_configuration = mdt_configuration;
|
||||
|
@ -88,16 +112,20 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
access_and_mobility_subscription_data_1_local_var->cag_data = cag_data;
|
||||
access_and_mobility_subscription_data_1_local_var->stn_sr = stn_sr;
|
||||
access_and_mobility_subscription_data_1_local_var->c_msisdn = c_msisdn;
|
||||
access_and_mobility_subscription_data_1_local_var->is_nb_io_tue_priority = is_nb_io_tue_priority;
|
||||
access_and_mobility_subscription_data_1_local_var->nb_io_tue_priority = nb_io_tue_priority;
|
||||
access_and_mobility_subscription_data_1_local_var->is_nssai_inclusion_allowed = is_nssai_inclusion_allowed;
|
||||
access_and_mobility_subscription_data_1_local_var->nssai_inclusion_allowed = nssai_inclusion_allowed;
|
||||
access_and_mobility_subscription_data_1_local_var->rg_wireline_characteristics = rg_wireline_characteristics;
|
||||
access_and_mobility_subscription_data_1_local_var->ec_restriction_data_wb = ec_restriction_data_wb;
|
||||
access_and_mobility_subscription_data_1_local_var->is_ec_restriction_data_nb = is_ec_restriction_data_nb;
|
||||
access_and_mobility_subscription_data_1_local_var->ec_restriction_data_nb = ec_restriction_data_nb;
|
||||
access_and_mobility_subscription_data_1_local_var->expected_ue_behaviour_list = expected_ue_behaviour_list;
|
||||
access_and_mobility_subscription_data_1_local_var->primary_rat_restrictions = primary_rat_restrictions;
|
||||
access_and_mobility_subscription_data_1_local_var->secondary_rat_restrictions = secondary_rat_restrictions;
|
||||
access_and_mobility_subscription_data_1_local_var->edrx_parameters_list = edrx_parameters_list;
|
||||
access_and_mobility_subscription_data_1_local_var->ptw_parameters_list = ptw_parameters_list;
|
||||
access_and_mobility_subscription_data_1_local_var->is_iab_operation_allowed = is_iab_operation_allowed;
|
||||
access_and_mobility_subscription_data_1_local_var->iab_operation_allowed = iab_operation_allowed;
|
||||
access_and_mobility_subscription_data_1_local_var->wireline_forbidden_areas = wireline_forbidden_areas;
|
||||
access_and_mobility_subscription_data_1_local_var->wireline_service_area_restriction = wireline_service_area_restriction;
|
||||
|
@ -325,42 +353,42 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_1_convertToJSON(OpenAPI_acc
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->rfsp_index) {
|
||||
if (access_and_mobility_subscription_data_1->is_rfsp_index) {
|
||||
if (cJSON_AddNumberToObject(item, "rfspIndex", access_and_mobility_subscription_data_1->rfsp_index) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [rfsp_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->subs_reg_timer) {
|
||||
if (access_and_mobility_subscription_data_1->is_subs_reg_timer) {
|
||||
if (cJSON_AddNumberToObject(item, "subsRegTimer", access_and_mobility_subscription_data_1->subs_reg_timer) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [subs_reg_timer]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->ue_usage_type) {
|
||||
if (access_and_mobility_subscription_data_1->is_ue_usage_type) {
|
||||
if (cJSON_AddNumberToObject(item, "ueUsageType", access_and_mobility_subscription_data_1->ue_usage_type) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [ue_usage_type]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->mps_priority) {
|
||||
if (access_and_mobility_subscription_data_1->is_mps_priority) {
|
||||
if (cJSON_AddBoolToObject(item, "mpsPriority", access_and_mobility_subscription_data_1->mps_priority) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [mps_priority]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->mcs_priority) {
|
||||
if (access_and_mobility_subscription_data_1->is_mcs_priority) {
|
||||
if (cJSON_AddBoolToObject(item, "mcsPriority", access_and_mobility_subscription_data_1->mcs_priority) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [mcs_priority]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->active_time) {
|
||||
if (access_and_mobility_subscription_data_1->is_active_time) {
|
||||
if (cJSON_AddNumberToObject(item, "activeTime", access_and_mobility_subscription_data_1->active_time) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [active_time]");
|
||||
goto end;
|
||||
|
@ -380,14 +408,14 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_1_convertToJSON(OpenAPI_acc
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->sor_info_expect_ind) {
|
||||
if (access_and_mobility_subscription_data_1->is_sor_info_expect_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "sorInfoExpectInd", access_and_mobility_subscription_data_1->sor_info_expect_ind) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [sor_info_expect_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->soraf_retrieval) {
|
||||
if (access_and_mobility_subscription_data_1->is_soraf_retrieval) {
|
||||
if (cJSON_AddBoolToObject(item, "sorafRetrieval", access_and_mobility_subscription_data_1->soraf_retrieval) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [soraf_retrieval]");
|
||||
goto end;
|
||||
|
@ -422,7 +450,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_1_convertToJSON(OpenAPI_acc
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->mico_allowed) {
|
||||
if (access_and_mobility_subscription_data_1->is_mico_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "micoAllowed", access_and_mobility_subscription_data_1->mico_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [mico_allowed]");
|
||||
goto end;
|
||||
|
@ -468,7 +496,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_1_convertToJSON(OpenAPI_acc
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->service_gap_time) {
|
||||
if (access_and_mobility_subscription_data_1->is_service_gap_time) {
|
||||
if (cJSON_AddNumberToObject(item, "serviceGapTime", access_and_mobility_subscription_data_1->service_gap_time) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [service_gap_time]");
|
||||
goto end;
|
||||
|
@ -535,14 +563,14 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_1_convertToJSON(OpenAPI_acc
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->nb_io_tue_priority) {
|
||||
if (access_and_mobility_subscription_data_1->is_nb_io_tue_priority) {
|
||||
if (cJSON_AddNumberToObject(item, "nbIoTUePriority", access_and_mobility_subscription_data_1->nb_io_tue_priority) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [nb_io_tue_priority]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->nssai_inclusion_allowed) {
|
||||
if (access_and_mobility_subscription_data_1->is_nssai_inclusion_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "nssaiInclusionAllowed", access_and_mobility_subscription_data_1->nssai_inclusion_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [nssai_inclusion_allowed]");
|
||||
goto end;
|
||||
|
@ -569,7 +597,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_1_convertToJSON(OpenAPI_acc
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->ec_restriction_data_nb) {
|
||||
if (access_and_mobility_subscription_data_1->is_ec_restriction_data_nb) {
|
||||
if (cJSON_AddBoolToObject(item, "ecRestrictionDataNb", access_and_mobility_subscription_data_1->ec_restriction_data_nb) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
|
@ -659,7 +687,7 @@ cJSON *OpenAPI_access_and_mobility_subscription_data_1_convertToJSON(OpenAPI_acc
|
|||
}
|
||||
}
|
||||
|
||||
if (access_and_mobility_subscription_data_1->iab_operation_allowed) {
|
||||
if (access_and_mobility_subscription_data_1->is_iab_operation_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "iabOperationAllowed", access_and_mobility_subscription_data_1->iab_operation_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed [iab_operation_allowed]");
|
||||
goto end;
|
||||
|
@ -708,7 +736,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
OpenAPI_access_and_mobility_subscription_data_1_t *access_and_mobility_subscription_data_1_local_var = NULL;
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
@ -718,7 +746,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *gpsis = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "gpsis");
|
||||
|
||||
OpenAPI_list_t *gpsisList;
|
||||
if (gpsis) {
|
||||
if (gpsis) {
|
||||
cJSON *gpsis_local;
|
||||
if (!cJSON_IsArray(gpsis)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [gpsis]");
|
||||
|
@ -732,13 +760,13 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(gpsisList , ogs_strdup_or_assert(gpsis_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *internal_group_ids = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "internalGroupIds");
|
||||
|
||||
OpenAPI_list_t *internal_group_idsList;
|
||||
if (internal_group_ids) {
|
||||
if (internal_group_ids) {
|
||||
cJSON *internal_group_ids_local;
|
||||
if (!cJSON_IsArray(internal_group_ids)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [internal_group_ids]");
|
||||
|
@ -752,13 +780,13 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(internal_group_idsList , ogs_strdup_or_assert(internal_group_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *shared_vn_group_data_ids = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "sharedVnGroupDataIds");
|
||||
|
||||
OpenAPI_list_t *shared_vn_group_data_idsList;
|
||||
if (shared_vn_group_data_ids) {
|
||||
if (shared_vn_group_data_ids) {
|
||||
cJSON *shared_vn_group_data_ids_local_map;
|
||||
if (!cJSON_IsObject(shared_vn_group_data_ids)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [shared_vn_group_data_ids]");
|
||||
|
@ -775,21 +803,21 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *subscribed_ue_ambr = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "subscribedUeAmbr");
|
||||
|
||||
OpenAPI_ambr_rm_t *subscribed_ue_ambr_local_nonprim = NULL;
|
||||
if (subscribed_ue_ambr) {
|
||||
if (subscribed_ue_ambr) {
|
||||
subscribed_ue_ambr_local_nonprim = OpenAPI_ambr_rm_parseFromJSON(subscribed_ue_ambr);
|
||||
}
|
||||
|
||||
cJSON *nssai = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "nssai");
|
||||
|
||||
OpenAPI_nssai_1_t *nssai_local_nonprim = NULL;
|
||||
if (nssai) {
|
||||
if (nssai) {
|
||||
nssai_local_nonprim = OpenAPI_nssai_1_parseFromJSON(nssai);
|
||||
}
|
||||
|
||||
cJSON *rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "ratRestrictions");
|
||||
|
||||
OpenAPI_list_t *rat_restrictionsList;
|
||||
if (rat_restrictions) {
|
||||
if (rat_restrictions) {
|
||||
cJSON *rat_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(rat_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [rat_restrictions]");
|
||||
|
@ -811,7 +839,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *forbidden_areas = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "forbiddenAreas");
|
||||
|
||||
OpenAPI_list_t *forbidden_areasList;
|
||||
if (forbidden_areas) {
|
||||
if (forbidden_areas) {
|
||||
cJSON *forbidden_areas_local_nonprimitive;
|
||||
if (!cJSON_IsArray(forbidden_areas)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [forbidden_areas]");
|
||||
|
@ -834,14 +862,14 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *service_area_restriction = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "serviceAreaRestriction");
|
||||
|
||||
OpenAPI_service_area_restriction_1_t *service_area_restriction_local_nonprim = NULL;
|
||||
if (service_area_restriction) {
|
||||
if (service_area_restriction) {
|
||||
service_area_restriction_local_nonprim = OpenAPI_service_area_restriction_1_parseFromJSON(service_area_restriction);
|
||||
}
|
||||
|
||||
cJSON *core_network_type_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "coreNetworkTypeRestrictions");
|
||||
|
||||
OpenAPI_list_t *core_network_type_restrictionsList;
|
||||
if (core_network_type_restrictions) {
|
||||
if (core_network_type_restrictions) {
|
||||
cJSON *core_network_type_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(core_network_type_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [core_network_type_restrictions]");
|
||||
|
@ -862,7 +890,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *rfsp_index = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "rfspIndex");
|
||||
|
||||
if (rfsp_index) {
|
||||
if (rfsp_index) {
|
||||
if (!cJSON_IsNumber(rfsp_index)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [rfsp_index]");
|
||||
goto end;
|
||||
|
@ -871,7 +899,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *subs_reg_timer = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "subsRegTimer");
|
||||
|
||||
if (subs_reg_timer) {
|
||||
if (subs_reg_timer) {
|
||||
if (!cJSON_IsNumber(subs_reg_timer)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [subs_reg_timer]");
|
||||
goto end;
|
||||
|
@ -880,7 +908,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *ue_usage_type = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "ueUsageType");
|
||||
|
||||
if (ue_usage_type) {
|
||||
if (ue_usage_type) {
|
||||
if (!cJSON_IsNumber(ue_usage_type)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [ue_usage_type]");
|
||||
goto end;
|
||||
|
@ -889,7 +917,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *mps_priority = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "mpsPriority");
|
||||
|
||||
if (mps_priority) {
|
||||
if (mps_priority) {
|
||||
if (!cJSON_IsBool(mps_priority)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [mps_priority]");
|
||||
goto end;
|
||||
|
@ -898,7 +926,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *mcs_priority = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "mcsPriority");
|
||||
|
||||
if (mcs_priority) {
|
||||
if (mcs_priority) {
|
||||
if (!cJSON_IsBool(mcs_priority)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [mcs_priority]");
|
||||
goto end;
|
||||
|
@ -907,7 +935,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *active_time = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "activeTime");
|
||||
|
||||
if (active_time) {
|
||||
if (active_time) {
|
||||
if (!cJSON_IsNumber(active_time)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [active_time]");
|
||||
goto end;
|
||||
|
@ -917,13 +945,13 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *sor_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "sorInfo");
|
||||
|
||||
OpenAPI_sor_info_1_t *sor_info_local_nonprim = NULL;
|
||||
if (sor_info) {
|
||||
if (sor_info) {
|
||||
sor_info_local_nonprim = OpenAPI_sor_info_1_parseFromJSON(sor_info);
|
||||
}
|
||||
|
||||
cJSON *sor_info_expect_ind = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "sorInfoExpectInd");
|
||||
|
||||
if (sor_info_expect_ind) {
|
||||
if (sor_info_expect_ind) {
|
||||
if (!cJSON_IsBool(sor_info_expect_ind)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [sor_info_expect_ind]");
|
||||
goto end;
|
||||
|
@ -932,7 +960,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *soraf_retrieval = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "sorafRetrieval");
|
||||
|
||||
if (soraf_retrieval) {
|
||||
if (soraf_retrieval) {
|
||||
if (!cJSON_IsBool(soraf_retrieval)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [soraf_retrieval]");
|
||||
goto end;
|
||||
|
@ -942,7 +970,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *sor_update_indicator_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "sorUpdateIndicatorList");
|
||||
|
||||
OpenAPI_list_t *sor_update_indicator_listList;
|
||||
if (sor_update_indicator_list) {
|
||||
if (sor_update_indicator_list) {
|
||||
cJSON *sor_update_indicator_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(sor_update_indicator_list)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [sor_update_indicator_list]");
|
||||
|
@ -964,13 +992,13 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *upu_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "upuInfo");
|
||||
|
||||
OpenAPI_upu_info_1_t *upu_info_local_nonprim = NULL;
|
||||
if (upu_info) {
|
||||
if (upu_info) {
|
||||
upu_info_local_nonprim = OpenAPI_upu_info_1_parseFromJSON(upu_info);
|
||||
}
|
||||
|
||||
cJSON *mico_allowed = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "micoAllowed");
|
||||
|
||||
if (mico_allowed) {
|
||||
if (mico_allowed) {
|
||||
if (!cJSON_IsBool(mico_allowed)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [mico_allowed]");
|
||||
goto end;
|
||||
|
@ -980,7 +1008,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *shared_am_data_ids = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "sharedAmDataIds");
|
||||
|
||||
OpenAPI_list_t *shared_am_data_idsList;
|
||||
if (shared_am_data_ids) {
|
||||
if (shared_am_data_ids) {
|
||||
cJSON *shared_am_data_ids_local;
|
||||
if (!cJSON_IsArray(shared_am_data_ids)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [shared_am_data_ids]");
|
||||
|
@ -994,13 +1022,13 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(shared_am_data_idsList , ogs_strdup_or_assert(shared_am_data_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *odb_packet_services = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "odbPacketServices");
|
||||
|
||||
OpenAPI_odb_packet_services_e odb_packet_servicesVariable;
|
||||
if (odb_packet_services) {
|
||||
if (odb_packet_services) {
|
||||
if (!cJSON_IsString(odb_packet_services)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [odb_packet_services]");
|
||||
goto end;
|
||||
|
@ -1011,7 +1039,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *subscribed_dnn_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "subscribedDnnList");
|
||||
|
||||
OpenAPI_list_t *subscribed_dnn_listList;
|
||||
if (subscribed_dnn_list) {
|
||||
if (subscribed_dnn_list) {
|
||||
cJSON *subscribed_dnn_list_local;
|
||||
if (!cJSON_IsArray(subscribed_dnn_list)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [subscribed_dnn_list]");
|
||||
|
@ -1025,12 +1053,12 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(subscribed_dnn_listList , ogs_strdup_or_assert(subscribed_dnn_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *service_gap_time = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "serviceGapTime");
|
||||
|
||||
if (service_gap_time) {
|
||||
if (service_gap_time) {
|
||||
if (!cJSON_IsNumber(service_gap_time)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [service_gap_time]");
|
||||
goto end;
|
||||
|
@ -1040,7 +1068,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *mdt_user_consent = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "mdtUserConsent");
|
||||
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consentVariable;
|
||||
if (mdt_user_consent) {
|
||||
if (mdt_user_consent) {
|
||||
if (!cJSON_IsString(mdt_user_consent)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [mdt_user_consent]");
|
||||
goto end;
|
||||
|
@ -1051,27 +1079,27 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *mdt_configuration = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "mdtConfiguration");
|
||||
|
||||
OpenAPI_mdt_configuration_1_t *mdt_configuration_local_nonprim = NULL;
|
||||
if (mdt_configuration) {
|
||||
if (mdt_configuration) {
|
||||
mdt_configuration_local_nonprim = OpenAPI_mdt_configuration_1_parseFromJSON(mdt_configuration);
|
||||
}
|
||||
|
||||
cJSON *trace_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "traceData");
|
||||
|
||||
OpenAPI_trace_data_t *trace_data_local_nonprim = NULL;
|
||||
if (trace_data) {
|
||||
if (trace_data) {
|
||||
trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
|
||||
}
|
||||
|
||||
cJSON *cag_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "cagData");
|
||||
|
||||
OpenAPI_cag_data_1_t *cag_data_local_nonprim = NULL;
|
||||
if (cag_data) {
|
||||
if (cag_data) {
|
||||
cag_data_local_nonprim = OpenAPI_cag_data_1_parseFromJSON(cag_data);
|
||||
}
|
||||
|
||||
cJSON *stn_sr = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "stnSr");
|
||||
|
||||
if (stn_sr) {
|
||||
if (stn_sr) {
|
||||
if (!cJSON_IsString(stn_sr)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [stn_sr]");
|
||||
goto end;
|
||||
|
@ -1080,7 +1108,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *c_msisdn = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "cMsisdn");
|
||||
|
||||
if (c_msisdn) {
|
||||
if (c_msisdn) {
|
||||
if (!cJSON_IsString(c_msisdn)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [c_msisdn]");
|
||||
goto end;
|
||||
|
@ -1089,7 +1117,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *nb_io_tue_priority = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "nbIoTUePriority");
|
||||
|
||||
if (nb_io_tue_priority) {
|
||||
if (nb_io_tue_priority) {
|
||||
if (!cJSON_IsNumber(nb_io_tue_priority)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [nb_io_tue_priority]");
|
||||
goto end;
|
||||
|
@ -1098,7 +1126,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *nssai_inclusion_allowed = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "nssaiInclusionAllowed");
|
||||
|
||||
if (nssai_inclusion_allowed) {
|
||||
if (nssai_inclusion_allowed) {
|
||||
if (!cJSON_IsBool(nssai_inclusion_allowed)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [nssai_inclusion_allowed]");
|
||||
goto end;
|
||||
|
@ -1107,7 +1135,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *rg_wireline_characteristics = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "rgWirelineCharacteristics");
|
||||
|
||||
if (rg_wireline_characteristics) {
|
||||
if (rg_wireline_characteristics) {
|
||||
if (!cJSON_IsString(rg_wireline_characteristics)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [rg_wireline_characteristics]");
|
||||
goto end;
|
||||
|
@ -1117,13 +1145,13 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *ec_restriction_data_wb = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "ecRestrictionDataWb");
|
||||
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb_local_nonprim = NULL;
|
||||
if (ec_restriction_data_wb) {
|
||||
if (ec_restriction_data_wb) {
|
||||
ec_restriction_data_wb_local_nonprim = OpenAPI_ec_restriction_data_wb_parseFromJSON(ec_restriction_data_wb);
|
||||
}
|
||||
|
||||
cJSON *ec_restriction_data_nb = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "ecRestrictionDataNb");
|
||||
|
||||
if (ec_restriction_data_nb) {
|
||||
if (ec_restriction_data_nb) {
|
||||
if (!cJSON_IsBool(ec_restriction_data_nb)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [ec_restriction_data_nb]");
|
||||
goto end;
|
||||
|
@ -1133,14 +1161,14 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *expected_ue_behaviour_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "expectedUeBehaviourList");
|
||||
|
||||
OpenAPI_expected_ue_behaviour_data_1_t *expected_ue_behaviour_list_local_nonprim = NULL;
|
||||
if (expected_ue_behaviour_list) {
|
||||
if (expected_ue_behaviour_list) {
|
||||
expected_ue_behaviour_list_local_nonprim = OpenAPI_expected_ue_behaviour_data_1_parseFromJSON(expected_ue_behaviour_list);
|
||||
}
|
||||
|
||||
cJSON *primary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "primaryRatRestrictions");
|
||||
|
||||
OpenAPI_list_t *primary_rat_restrictionsList;
|
||||
if (primary_rat_restrictions) {
|
||||
if (primary_rat_restrictions) {
|
||||
cJSON *primary_rat_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(primary_rat_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [primary_rat_restrictions]");
|
||||
|
@ -1162,7 +1190,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *secondary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "secondaryRatRestrictions");
|
||||
|
||||
OpenAPI_list_t *secondary_rat_restrictionsList;
|
||||
if (secondary_rat_restrictions) {
|
||||
if (secondary_rat_restrictions) {
|
||||
cJSON *secondary_rat_restrictions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(secondary_rat_restrictions)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [secondary_rat_restrictions]");
|
||||
|
@ -1184,7 +1212,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *edrx_parameters_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "edrxParametersList");
|
||||
|
||||
OpenAPI_list_t *edrx_parameters_listList;
|
||||
if (edrx_parameters_list) {
|
||||
if (edrx_parameters_list) {
|
||||
cJSON *edrx_parameters_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(edrx_parameters_list)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [edrx_parameters_list]");
|
||||
|
@ -1207,7 +1235,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *ptw_parameters_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "ptwParametersList");
|
||||
|
||||
OpenAPI_list_t *ptw_parameters_listList;
|
||||
if (ptw_parameters_list) {
|
||||
if (ptw_parameters_list) {
|
||||
cJSON *ptw_parameters_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ptw_parameters_list)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [ptw_parameters_list]");
|
||||
|
@ -1229,7 +1257,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
|
||||
cJSON *iab_operation_allowed = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "iabOperationAllowed");
|
||||
|
||||
if (iab_operation_allowed) {
|
||||
if (iab_operation_allowed) {
|
||||
if (!cJSON_IsBool(iab_operation_allowed)) {
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [iab_operation_allowed]");
|
||||
goto end;
|
||||
|
@ -1239,7 +1267,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *wireline_forbidden_areas = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "wirelineForbiddenAreas");
|
||||
|
||||
OpenAPI_list_t *wireline_forbidden_areasList;
|
||||
if (wireline_forbidden_areas) {
|
||||
if (wireline_forbidden_areas) {
|
||||
cJSON *wireline_forbidden_areas_local_nonprimitive;
|
||||
if (!cJSON_IsArray(wireline_forbidden_areas)){
|
||||
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed [wireline_forbidden_areas]");
|
||||
|
@ -1262,7 +1290,7 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cJSON *wireline_service_area_restriction = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "wirelineServiceAreaRestriction");
|
||||
|
||||
OpenAPI_wireline_service_area_restriction_1_t *wireline_service_area_restriction_local_nonprim = NULL;
|
||||
if (wireline_service_area_restriction) {
|
||||
if (wireline_service_area_restriction) {
|
||||
wireline_service_area_restriction_local_nonprim = OpenAPI_wireline_service_area_restriction_1_parseFromJSON(wireline_service_area_restriction);
|
||||
}
|
||||
|
||||
|
@ -1277,21 +1305,31 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
forbidden_areas ? forbidden_areasList : NULL,
|
||||
service_area_restriction ? service_area_restriction_local_nonprim : NULL,
|
||||
core_network_type_restrictions ? core_network_type_restrictionsList : NULL,
|
||||
rfsp_index ? true : false,
|
||||
rfsp_index ? rfsp_index->valuedouble : 0,
|
||||
subs_reg_timer ? true : false,
|
||||
subs_reg_timer ? subs_reg_timer->valuedouble : 0,
|
||||
ue_usage_type ? true : false,
|
||||
ue_usage_type ? ue_usage_type->valuedouble : 0,
|
||||
mps_priority ? true : false,
|
||||
mps_priority ? mps_priority->valueint : 0,
|
||||
mcs_priority ? true : false,
|
||||
mcs_priority ? mcs_priority->valueint : 0,
|
||||
active_time ? true : false,
|
||||
active_time ? active_time->valuedouble : 0,
|
||||
sor_info ? sor_info_local_nonprim : NULL,
|
||||
sor_info_expect_ind ? true : false,
|
||||
sor_info_expect_ind ? sor_info_expect_ind->valueint : 0,
|
||||
soraf_retrieval ? true : false,
|
||||
soraf_retrieval ? soraf_retrieval->valueint : 0,
|
||||
sor_update_indicator_list ? sor_update_indicator_listList : NULL,
|
||||
upu_info ? upu_info_local_nonprim : NULL,
|
||||
mico_allowed ? true : false,
|
||||
mico_allowed ? mico_allowed->valueint : 0,
|
||||
shared_am_data_ids ? shared_am_data_idsList : NULL,
|
||||
odb_packet_services ? odb_packet_servicesVariable : 0,
|
||||
subscribed_dnn_list ? subscribed_dnn_listList : NULL,
|
||||
service_gap_time ? true : false,
|
||||
service_gap_time ? service_gap_time->valuedouble : 0,
|
||||
mdt_user_consent ? mdt_user_consentVariable : 0,
|
||||
mdt_configuration ? mdt_configuration_local_nonprim : NULL,
|
||||
|
@ -1299,16 +1337,20 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
cag_data ? cag_data_local_nonprim : NULL,
|
||||
stn_sr ? ogs_strdup_or_assert(stn_sr->valuestring) : NULL,
|
||||
c_msisdn ? ogs_strdup_or_assert(c_msisdn->valuestring) : NULL,
|
||||
nb_io_tue_priority ? true : false,
|
||||
nb_io_tue_priority ? nb_io_tue_priority->valuedouble : 0,
|
||||
nssai_inclusion_allowed ? true : false,
|
||||
nssai_inclusion_allowed ? nssai_inclusion_allowed->valueint : 0,
|
||||
rg_wireline_characteristics ? ogs_strdup_or_assert(rg_wireline_characteristics->valuestring) : NULL,
|
||||
ec_restriction_data_wb ? ec_restriction_data_wb_local_nonprim : NULL,
|
||||
ec_restriction_data_nb ? true : false,
|
||||
ec_restriction_data_nb ? ec_restriction_data_nb->valueint : 0,
|
||||
expected_ue_behaviour_list ? expected_ue_behaviour_list_local_nonprim : NULL,
|
||||
primary_rat_restrictions ? primary_rat_restrictionsList : NULL,
|
||||
secondary_rat_restrictions ? secondary_rat_restrictionsList : NULL,
|
||||
edrx_parameters_list ? edrx_parameters_listList : NULL,
|
||||
ptw_parameters_list ? ptw_parameters_listList : NULL,
|
||||
iab_operation_allowed ? true : false,
|
||||
iab_operation_allowed ? iab_operation_allowed->valueint : 0,
|
||||
wireline_forbidden_areas ? wireline_forbidden_areasList : NULL,
|
||||
wireline_service_area_restriction ? wireline_service_area_restriction_local_nonprim : NULL
|
||||
|
|
|
@ -49,21 +49,31 @@ typedef struct OpenAPI_access_and_mobility_subscription_data_1_s {
|
|||
OpenAPI_list_t *forbidden_areas;
|
||||
struct OpenAPI_service_area_restriction_1_s *service_area_restriction;
|
||||
OpenAPI_list_t *core_network_type_restrictions;
|
||||
bool is_rfsp_index;
|
||||
int rfsp_index;
|
||||
bool is_subs_reg_timer;
|
||||
int subs_reg_timer;
|
||||
bool is_ue_usage_type;
|
||||
int ue_usage_type;
|
||||
bool is_mps_priority;
|
||||
int mps_priority;
|
||||
bool is_mcs_priority;
|
||||
int mcs_priority;
|
||||
bool is_active_time;
|
||||
int active_time;
|
||||
struct OpenAPI_sor_info_1_s *sor_info;
|
||||
bool is_sor_info_expect_ind;
|
||||
int sor_info_expect_ind;
|
||||
bool is_soraf_retrieval;
|
||||
int soraf_retrieval;
|
||||
OpenAPI_list_t *sor_update_indicator_list;
|
||||
struct OpenAPI_upu_info_1_s *upu_info;
|
||||
bool is_mico_allowed;
|
||||
int mico_allowed;
|
||||
OpenAPI_list_t *shared_am_data_ids;
|
||||
OpenAPI_odb_packet_services_e odb_packet_services;
|
||||
OpenAPI_list_t *subscribed_dnn_list;
|
||||
bool is_service_gap_time;
|
||||
int service_gap_time;
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent;
|
||||
struct OpenAPI_mdt_configuration_1_s *mdt_configuration;
|
||||
|
@ -71,16 +81,20 @@ typedef struct OpenAPI_access_and_mobility_subscription_data_1_s {
|
|||
struct OpenAPI_cag_data_1_s *cag_data;
|
||||
char *stn_sr;
|
||||
char *c_msisdn;
|
||||
bool is_nb_io_tue_priority;
|
||||
int nb_io_tue_priority;
|
||||
bool is_nssai_inclusion_allowed;
|
||||
int nssai_inclusion_allowed;
|
||||
char *rg_wireline_characteristics;
|
||||
struct OpenAPI_ec_restriction_data_wb_s *ec_restriction_data_wb;
|
||||
bool is_ec_restriction_data_nb;
|
||||
int ec_restriction_data_nb;
|
||||
struct OpenAPI_expected_ue_behaviour_data_1_s *expected_ue_behaviour_list;
|
||||
OpenAPI_list_t *primary_rat_restrictions;
|
||||
OpenAPI_list_t *secondary_rat_restrictions;
|
||||
OpenAPI_list_t *edrx_parameters_list;
|
||||
OpenAPI_list_t *ptw_parameters_list;
|
||||
bool is_iab_operation_allowed;
|
||||
int iab_operation_allowed;
|
||||
OpenAPI_list_t *wireline_forbidden_areas;
|
||||
struct OpenAPI_wireline_service_area_restriction_1_s *wireline_service_area_restriction;
|
||||
|
@ -97,21 +111,31 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
OpenAPI_list_t *forbidden_areas,
|
||||
OpenAPI_service_area_restriction_1_t *service_area_restriction,
|
||||
OpenAPI_list_t *core_network_type_restrictions,
|
||||
bool is_rfsp_index,
|
||||
int rfsp_index,
|
||||
bool is_subs_reg_timer,
|
||||
int subs_reg_timer,
|
||||
bool is_ue_usage_type,
|
||||
int ue_usage_type,
|
||||
bool is_mps_priority,
|
||||
int mps_priority,
|
||||
bool is_mcs_priority,
|
||||
int mcs_priority,
|
||||
bool is_active_time,
|
||||
int active_time,
|
||||
OpenAPI_sor_info_1_t *sor_info,
|
||||
bool is_sor_info_expect_ind,
|
||||
int sor_info_expect_ind,
|
||||
bool is_soraf_retrieval,
|
||||
int soraf_retrieval,
|
||||
OpenAPI_list_t *sor_update_indicator_list,
|
||||
OpenAPI_upu_info_1_t *upu_info,
|
||||
bool is_mico_allowed,
|
||||
int mico_allowed,
|
||||
OpenAPI_list_t *shared_am_data_ids,
|
||||
OpenAPI_odb_packet_services_e odb_packet_services,
|
||||
OpenAPI_list_t *subscribed_dnn_list,
|
||||
bool is_service_gap_time,
|
||||
int service_gap_time,
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent,
|
||||
OpenAPI_mdt_configuration_1_t *mdt_configuration,
|
||||
|
@ -119,16 +143,20 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
|
|||
OpenAPI_cag_data_1_t *cag_data,
|
||||
char *stn_sr,
|
||||
char *c_msisdn,
|
||||
bool is_nb_io_tue_priority,
|
||||
int nb_io_tue_priority,
|
||||
bool is_nssai_inclusion_allowed,
|
||||
int nssai_inclusion_allowed,
|
||||
char *rg_wireline_characteristics,
|
||||
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb,
|
||||
bool is_ec_restriction_data_nb,
|
||||
int ec_restriction_data_nb,
|
||||
OpenAPI_expected_ue_behaviour_data_1_t *expected_ue_behaviour_list,
|
||||
OpenAPI_list_t *primary_rat_restrictions,
|
||||
OpenAPI_list_t *secondary_rat_restrictions,
|
||||
OpenAPI_list_t *edrx_parameters_list,
|
||||
OpenAPI_list_t *ptw_parameters_list,
|
||||
bool is_iab_operation_allowed,
|
||||
int iab_operation_allowed,
|
||||
OpenAPI_list_t *wireline_forbidden_areas,
|
||||
OpenAPI_wireline_service_area_restriction_1_t *wireline_service_area_restriction
|
||||
|
|
|
@ -80,7 +80,6 @@ OpenAPI_access_net_charging_identifier_t *OpenAPI_access_net_charging_identifier
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(acc_net_cha_id_value)) {
|
||||
ogs_error("OpenAPI_access_net_charging_identifier_parseFromJSON() failed [acc_net_cha_id_value]");
|
||||
goto end;
|
||||
|
@ -89,7 +88,7 @@ OpenAPI_access_net_charging_identifier_t *OpenAPI_access_net_charging_identifier
|
|||
cJSON *flows = cJSON_GetObjectItemCaseSensitive(access_net_charging_identifierJSON, "flows");
|
||||
|
||||
OpenAPI_list_t *flowsList;
|
||||
if (flows) {
|
||||
if (flows) {
|
||||
cJSON *flows_local_nonprimitive;
|
||||
if (!cJSON_IsArray(flows)){
|
||||
ogs_error("OpenAPI_access_net_charging_identifier_parseFromJSON() failed [flows]");
|
||||
|
@ -110,6 +109,7 @@ OpenAPI_access_net_charging_identifier_t *OpenAPI_access_net_charging_identifier
|
|||
}
|
||||
|
||||
access_net_charging_identifier_local_var = OpenAPI_access_net_charging_identifier_create (
|
||||
|
||||
acc_net_cha_id_value->valuedouble,
|
||||
flows ? flowsList : NULL
|
||||
);
|
||||
|
|
|
@ -98,7 +98,6 @@ OpenAPI_access_token_err_t *OpenAPI_access_token_err_parseFromJSON(cJSON *access
|
|||
}
|
||||
|
||||
OpenAPI_access_token_err_error_e errorVariable;
|
||||
|
||||
if (!cJSON_IsString(error)) {
|
||||
ogs_error("OpenAPI_access_token_err_parseFromJSON() failed [error]");
|
||||
goto end;
|
||||
|
@ -107,7 +106,7 @@ OpenAPI_access_token_err_t *OpenAPI_access_token_err_parseFromJSON(cJSON *access
|
|||
|
||||
cJSON *error_description = cJSON_GetObjectItemCaseSensitive(access_token_errJSON, "error_description");
|
||||
|
||||
if (error_description) {
|
||||
if (error_description) {
|
||||
if (!cJSON_IsString(error_description)) {
|
||||
ogs_error("OpenAPI_access_token_err_parseFromJSON() failed [error_description]");
|
||||
goto end;
|
||||
|
@ -116,7 +115,7 @@ OpenAPI_access_token_err_t *OpenAPI_access_token_err_parseFromJSON(cJSON *access
|
|||
|
||||
cJSON *error_uri = cJSON_GetObjectItemCaseSensitive(access_token_errJSON, "error_uri");
|
||||
|
||||
if (error_uri) {
|
||||
if (error_uri) {
|
||||
if (!cJSON_IsString(error_uri)) {
|
||||
ogs_error("OpenAPI_access_token_err_parseFromJSON() failed [error_uri]");
|
||||
goto end;
|
||||
|
|
|
@ -310,7 +310,6 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
}
|
||||
|
||||
OpenAPI_access_token_req_grant_type_e grant_typeVariable;
|
||||
|
||||
if (!cJSON_IsString(grant_type)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [grant_type]");
|
||||
goto end;
|
||||
|
@ -323,7 +322,6 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(nf_instance_id)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [nf_instance_id]");
|
||||
goto end;
|
||||
|
@ -332,7 +330,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
cJSON *nf_type = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "nfType");
|
||||
|
||||
OpenAPI_nf_type_e nf_typeVariable;
|
||||
if (nf_type) {
|
||||
if (nf_type) {
|
||||
if (!cJSON_IsString(nf_type)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [nf_type]");
|
||||
goto end;
|
||||
|
@ -343,7 +341,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
cJSON *target_nf_type = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "targetNfType");
|
||||
|
||||
OpenAPI_nf_type_e target_nf_typeVariable;
|
||||
if (target_nf_type) {
|
||||
if (target_nf_type) {
|
||||
if (!cJSON_IsString(target_nf_type)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [target_nf_type]");
|
||||
goto end;
|
||||
|
@ -357,7 +355,6 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(scope)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [scope]");
|
||||
goto end;
|
||||
|
@ -365,7 +362,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
|
||||
cJSON *target_nf_instance_id = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "targetNfInstanceId");
|
||||
|
||||
if (target_nf_instance_id) {
|
||||
if (target_nf_instance_id) {
|
||||
if (!cJSON_IsString(target_nf_instance_id)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [target_nf_instance_id]");
|
||||
goto end;
|
||||
|
@ -375,14 +372,14 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
cJSON *requester_plmn = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "requesterPlmn");
|
||||
|
||||
OpenAPI_plmn_id_t *requester_plmn_local_nonprim = NULL;
|
||||
if (requester_plmn) {
|
||||
if (requester_plmn) {
|
||||
requester_plmn_local_nonprim = OpenAPI_plmn_id_parseFromJSON(requester_plmn);
|
||||
}
|
||||
|
||||
cJSON *requester_plmn_list = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "requesterPlmnList");
|
||||
|
||||
OpenAPI_list_t *requester_plmn_listList;
|
||||
if (requester_plmn_list) {
|
||||
if (requester_plmn_list) {
|
||||
cJSON *requester_plmn_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(requester_plmn_list)){
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [requester_plmn_list]");
|
||||
|
@ -405,7 +402,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
cJSON *requester_snssai_list = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "requesterSnssaiList");
|
||||
|
||||
OpenAPI_list_t *requester_snssai_listList;
|
||||
if (requester_snssai_list) {
|
||||
if (requester_snssai_list) {
|
||||
cJSON *requester_snssai_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(requester_snssai_list)){
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [requester_snssai_list]");
|
||||
|
@ -427,7 +424,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
|
||||
cJSON *requester_fqdn = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "requesterFqdn");
|
||||
|
||||
if (requester_fqdn) {
|
||||
if (requester_fqdn) {
|
||||
if (!cJSON_IsString(requester_fqdn)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [requester_fqdn]");
|
||||
goto end;
|
||||
|
@ -437,7 +434,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
cJSON *requester_snpn_list = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "requesterSnpnList");
|
||||
|
||||
OpenAPI_list_t *requester_snpn_listList;
|
||||
if (requester_snpn_list) {
|
||||
if (requester_snpn_list) {
|
||||
cJSON *requester_snpn_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(requester_snpn_list)){
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [requester_snpn_list]");
|
||||
|
@ -460,14 +457,14 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
cJSON *target_plmn = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "targetPlmn");
|
||||
|
||||
OpenAPI_plmn_id_t *target_plmn_local_nonprim = NULL;
|
||||
if (target_plmn) {
|
||||
if (target_plmn) {
|
||||
target_plmn_local_nonprim = OpenAPI_plmn_id_parseFromJSON(target_plmn);
|
||||
}
|
||||
|
||||
cJSON *target_snssai_list = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "targetSnssaiList");
|
||||
|
||||
OpenAPI_list_t *target_snssai_listList;
|
||||
if (target_snssai_list) {
|
||||
if (target_snssai_list) {
|
||||
cJSON *target_snssai_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(target_snssai_list)){
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [target_snssai_list]");
|
||||
|
@ -490,7 +487,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
cJSON *target_nsi_list = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "targetNsiList");
|
||||
|
||||
OpenAPI_list_t *target_nsi_listList;
|
||||
if (target_nsi_list) {
|
||||
if (target_nsi_list) {
|
||||
cJSON *target_nsi_list_local;
|
||||
if (!cJSON_IsArray(target_nsi_list)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [target_nsi_list]");
|
||||
|
@ -504,12 +501,12 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(target_nsi_listList , ogs_strdup_or_assert(target_nsi_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *target_nf_set_id = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "targetNfSetId");
|
||||
|
||||
if (target_nf_set_id) {
|
||||
if (target_nf_set_id) {
|
||||
if (!cJSON_IsString(target_nf_set_id)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [target_nf_set_id]");
|
||||
goto end;
|
||||
|
@ -518,7 +515,7 @@ OpenAPI_access_token_req_t *OpenAPI_access_token_req_parseFromJSON(cJSON *access
|
|||
|
||||
cJSON *target_nf_service_set_id = cJSON_GetObjectItemCaseSensitive(access_token_reqJSON, "targetNfServiceSetId");
|
||||
|
||||
if (target_nf_service_set_id) {
|
||||
if (target_nf_service_set_id) {
|
||||
if (!cJSON_IsString(target_nf_service_set_id)) {
|
||||
ogs_error("OpenAPI_access_token_req_parseFromJSON() failed [target_nf_service_set_id]");
|
||||
goto end;
|
||||
|
|
|
@ -6,13 +6,21 @@
|
|||
|
||||
OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_create(
|
||||
char *ref_um_ids,
|
||||
bool is_vol_usage,
|
||||
long vol_usage,
|
||||
bool is_vol_usage_uplink,
|
||||
long vol_usage_uplink,
|
||||
bool is_vol_usage_downlink,
|
||||
long vol_usage_downlink,
|
||||
bool is_time_usage,
|
||||
int time_usage,
|
||||
bool is_next_vol_usage,
|
||||
long next_vol_usage,
|
||||
bool is_next_vol_usage_uplink,
|
||||
long next_vol_usage_uplink,
|
||||
bool is_next_vol_usage_downlink,
|
||||
long next_vol_usage_downlink,
|
||||
bool is_next_time_usage,
|
||||
int next_time_usage
|
||||
)
|
||||
{
|
||||
|
@ -21,13 +29,21 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_create(
|
|||
return NULL;
|
||||
}
|
||||
accu_usage_report_local_var->ref_um_ids = ref_um_ids;
|
||||
accu_usage_report_local_var->is_vol_usage = is_vol_usage;
|
||||
accu_usage_report_local_var->vol_usage = vol_usage;
|
||||
accu_usage_report_local_var->is_vol_usage_uplink = is_vol_usage_uplink;
|
||||
accu_usage_report_local_var->vol_usage_uplink = vol_usage_uplink;
|
||||
accu_usage_report_local_var->is_vol_usage_downlink = is_vol_usage_downlink;
|
||||
accu_usage_report_local_var->vol_usage_downlink = vol_usage_downlink;
|
||||
accu_usage_report_local_var->is_time_usage = is_time_usage;
|
||||
accu_usage_report_local_var->time_usage = time_usage;
|
||||
accu_usage_report_local_var->is_next_vol_usage = is_next_vol_usage;
|
||||
accu_usage_report_local_var->next_vol_usage = next_vol_usage;
|
||||
accu_usage_report_local_var->is_next_vol_usage_uplink = is_next_vol_usage_uplink;
|
||||
accu_usage_report_local_var->next_vol_usage_uplink = next_vol_usage_uplink;
|
||||
accu_usage_report_local_var->is_next_vol_usage_downlink = is_next_vol_usage_downlink;
|
||||
accu_usage_report_local_var->next_vol_usage_downlink = next_vol_usage_downlink;
|
||||
accu_usage_report_local_var->is_next_time_usage = is_next_time_usage;
|
||||
accu_usage_report_local_var->next_time_usage = next_time_usage;
|
||||
|
||||
return accu_usage_report_local_var;
|
||||
|
@ -58,56 +74,56 @@ cJSON *OpenAPI_accu_usage_report_convertToJSON(OpenAPI_accu_usage_report_t *accu
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (accu_usage_report->vol_usage) {
|
||||
if (accu_usage_report->is_vol_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "volUsage", accu_usage_report->vol_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [vol_usage]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->vol_usage_uplink) {
|
||||
if (accu_usage_report->is_vol_usage_uplink) {
|
||||
if (cJSON_AddNumberToObject(item, "volUsageUplink", accu_usage_report->vol_usage_uplink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [vol_usage_uplink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->vol_usage_downlink) {
|
||||
if (accu_usage_report->is_vol_usage_downlink) {
|
||||
if (cJSON_AddNumberToObject(item, "volUsageDownlink", accu_usage_report->vol_usage_downlink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [vol_usage_downlink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->time_usage) {
|
||||
if (accu_usage_report->is_time_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "timeUsage", accu_usage_report->time_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [time_usage]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_vol_usage) {
|
||||
if (accu_usage_report->is_next_vol_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "nextVolUsage", accu_usage_report->next_vol_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_vol_usage]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_vol_usage_uplink) {
|
||||
if (accu_usage_report->is_next_vol_usage_uplink) {
|
||||
if (cJSON_AddNumberToObject(item, "nextVolUsageUplink", accu_usage_report->next_vol_usage_uplink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_vol_usage_uplink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_vol_usage_downlink) {
|
||||
if (accu_usage_report->is_next_vol_usage_downlink) {
|
||||
if (cJSON_AddNumberToObject(item, "nextVolUsageDownlink", accu_usage_report->next_vol_usage_downlink) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_vol_usage_downlink]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accu_usage_report->next_time_usage) {
|
||||
if (accu_usage_report->is_next_time_usage) {
|
||||
if (cJSON_AddNumberToObject(item, "nextTimeUsage", accu_usage_report->next_time_usage) == NULL) {
|
||||
ogs_error("OpenAPI_accu_usage_report_convertToJSON() failed [next_time_usage]");
|
||||
goto end;
|
||||
|
@ -127,7 +143,6 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(ref_um_ids)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [ref_um_ids]");
|
||||
goto end;
|
||||
|
@ -135,7 +150,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *vol_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "volUsage");
|
||||
|
||||
if (vol_usage) {
|
||||
if (vol_usage) {
|
||||
if (!cJSON_IsNumber(vol_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [vol_usage]");
|
||||
goto end;
|
||||
|
@ -144,7 +159,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *vol_usage_uplink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "volUsageUplink");
|
||||
|
||||
if (vol_usage_uplink) {
|
||||
if (vol_usage_uplink) {
|
||||
if (!cJSON_IsNumber(vol_usage_uplink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [vol_usage_uplink]");
|
||||
goto end;
|
||||
|
@ -153,7 +168,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *vol_usage_downlink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "volUsageDownlink");
|
||||
|
||||
if (vol_usage_downlink) {
|
||||
if (vol_usage_downlink) {
|
||||
if (!cJSON_IsNumber(vol_usage_downlink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [vol_usage_downlink]");
|
||||
goto end;
|
||||
|
@ -162,7 +177,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *time_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "timeUsage");
|
||||
|
||||
if (time_usage) {
|
||||
if (time_usage) {
|
||||
if (!cJSON_IsNumber(time_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [time_usage]");
|
||||
goto end;
|
||||
|
@ -171,7 +186,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_vol_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextVolUsage");
|
||||
|
||||
if (next_vol_usage) {
|
||||
if (next_vol_usage) {
|
||||
if (!cJSON_IsNumber(next_vol_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_vol_usage]");
|
||||
goto end;
|
||||
|
@ -180,7 +195,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_vol_usage_uplink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextVolUsageUplink");
|
||||
|
||||
if (next_vol_usage_uplink) {
|
||||
if (next_vol_usage_uplink) {
|
||||
if (!cJSON_IsNumber(next_vol_usage_uplink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_vol_usage_uplink]");
|
||||
goto end;
|
||||
|
@ -189,7 +204,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_vol_usage_downlink = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextVolUsageDownlink");
|
||||
|
||||
if (next_vol_usage_downlink) {
|
||||
if (next_vol_usage_downlink) {
|
||||
if (!cJSON_IsNumber(next_vol_usage_downlink)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_vol_usage_downlink]");
|
||||
goto end;
|
||||
|
@ -198,7 +213,7 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *next_time_usage = cJSON_GetObjectItemCaseSensitive(accu_usage_reportJSON, "nextTimeUsage");
|
||||
|
||||
if (next_time_usage) {
|
||||
if (next_time_usage) {
|
||||
if (!cJSON_IsNumber(next_time_usage)) {
|
||||
ogs_error("OpenAPI_accu_usage_report_parseFromJSON() failed [next_time_usage]");
|
||||
goto end;
|
||||
|
@ -207,13 +222,21 @@ OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_parseFromJSON(cJSON *accu
|
|||
|
||||
accu_usage_report_local_var = OpenAPI_accu_usage_report_create (
|
||||
ogs_strdup_or_assert(ref_um_ids->valuestring),
|
||||
vol_usage ? true : false,
|
||||
vol_usage ? vol_usage->valuedouble : 0,
|
||||
vol_usage_uplink ? true : false,
|
||||
vol_usage_uplink ? vol_usage_uplink->valuedouble : 0,
|
||||
vol_usage_downlink ? true : false,
|
||||
vol_usage_downlink ? vol_usage_downlink->valuedouble : 0,
|
||||
time_usage ? true : false,
|
||||
time_usage ? time_usage->valuedouble : 0,
|
||||
next_vol_usage ? true : false,
|
||||
next_vol_usage ? next_vol_usage->valuedouble : 0,
|
||||
next_vol_usage_uplink ? true : false,
|
||||
next_vol_usage_uplink ? next_vol_usage_uplink->valuedouble : 0,
|
||||
next_vol_usage_downlink ? true : false,
|
||||
next_vol_usage_downlink ? next_vol_usage_downlink->valuedouble : 0,
|
||||
next_time_usage ? true : false,
|
||||
next_time_usage ? next_time_usage->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -20,25 +20,41 @@ extern "C" {
|
|||
typedef struct OpenAPI_accu_usage_report_s OpenAPI_accu_usage_report_t;
|
||||
typedef struct OpenAPI_accu_usage_report_s {
|
||||
char *ref_um_ids;
|
||||
bool is_vol_usage;
|
||||
long vol_usage;
|
||||
bool is_vol_usage_uplink;
|
||||
long vol_usage_uplink;
|
||||
bool is_vol_usage_downlink;
|
||||
long vol_usage_downlink;
|
||||
bool is_time_usage;
|
||||
int time_usage;
|
||||
bool is_next_vol_usage;
|
||||
long next_vol_usage;
|
||||
bool is_next_vol_usage_uplink;
|
||||
long next_vol_usage_uplink;
|
||||
bool is_next_vol_usage_downlink;
|
||||
long next_vol_usage_downlink;
|
||||
bool is_next_time_usage;
|
||||
int next_time_usage;
|
||||
} OpenAPI_accu_usage_report_t;
|
||||
|
||||
OpenAPI_accu_usage_report_t *OpenAPI_accu_usage_report_create(
|
||||
char *ref_um_ids,
|
||||
bool is_vol_usage,
|
||||
long vol_usage,
|
||||
bool is_vol_usage_uplink,
|
||||
long vol_usage_uplink,
|
||||
bool is_vol_usage_downlink,
|
||||
long vol_usage_downlink,
|
||||
bool is_time_usage,
|
||||
int time_usage,
|
||||
bool is_next_vol_usage,
|
||||
long next_vol_usage,
|
||||
bool is_next_vol_usage_uplink,
|
||||
long next_vol_usage_uplink,
|
||||
bool is_next_vol_usage_downlink,
|
||||
long next_vol_usage_downlink,
|
||||
bool is_next_time_usage,
|
||||
int next_time_usage
|
||||
);
|
||||
void OpenAPI_accu_usage_report_free(OpenAPI_accu_usage_report_t *accu_usage_report);
|
||||
|
|
|
@ -5,9 +5,13 @@
|
|||
#include "accumulated_usage.h"
|
||||
|
||||
OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_create(
|
||||
bool is_duration,
|
||||
int duration,
|
||||
bool is_total_volume,
|
||||
long total_volume,
|
||||
bool is_downlink_volume,
|
||||
long downlink_volume,
|
||||
bool is_uplink_volume,
|
||||
long uplink_volume
|
||||
)
|
||||
{
|
||||
|
@ -15,9 +19,13 @@ OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_create(
|
|||
if (!accumulated_usage_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
accumulated_usage_local_var->is_duration = is_duration;
|
||||
accumulated_usage_local_var->duration = duration;
|
||||
accumulated_usage_local_var->is_total_volume = is_total_volume;
|
||||
accumulated_usage_local_var->total_volume = total_volume;
|
||||
accumulated_usage_local_var->is_downlink_volume = is_downlink_volume;
|
||||
accumulated_usage_local_var->downlink_volume = downlink_volume;
|
||||
accumulated_usage_local_var->is_uplink_volume = is_uplink_volume;
|
||||
accumulated_usage_local_var->uplink_volume = uplink_volume;
|
||||
|
||||
return accumulated_usage_local_var;
|
||||
|
@ -42,28 +50,28 @@ cJSON *OpenAPI_accumulated_usage_convertToJSON(OpenAPI_accumulated_usage_t *accu
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (accumulated_usage->duration) {
|
||||
if (accumulated_usage->is_duration) {
|
||||
if (cJSON_AddNumberToObject(item, "duration", accumulated_usage->duration) == NULL) {
|
||||
ogs_error("OpenAPI_accumulated_usage_convertToJSON() failed [duration]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accumulated_usage->total_volume) {
|
||||
if (accumulated_usage->is_total_volume) {
|
||||
if (cJSON_AddNumberToObject(item, "totalVolume", accumulated_usage->total_volume) == NULL) {
|
||||
ogs_error("OpenAPI_accumulated_usage_convertToJSON() failed [total_volume]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accumulated_usage->downlink_volume) {
|
||||
if (accumulated_usage->is_downlink_volume) {
|
||||
if (cJSON_AddNumberToObject(item, "downlinkVolume", accumulated_usage->downlink_volume) == NULL) {
|
||||
ogs_error("OpenAPI_accumulated_usage_convertToJSON() failed [downlink_volume]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (accumulated_usage->uplink_volume) {
|
||||
if (accumulated_usage->is_uplink_volume) {
|
||||
if (cJSON_AddNumberToObject(item, "uplinkVolume", accumulated_usage->uplink_volume) == NULL) {
|
||||
ogs_error("OpenAPI_accumulated_usage_convertToJSON() failed [uplink_volume]");
|
||||
goto end;
|
||||
|
@ -79,7 +87,7 @@ OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_parseFromJSON(cJSON *accu
|
|||
OpenAPI_accumulated_usage_t *accumulated_usage_local_var = NULL;
|
||||
cJSON *duration = cJSON_GetObjectItemCaseSensitive(accumulated_usageJSON, "duration");
|
||||
|
||||
if (duration) {
|
||||
if (duration) {
|
||||
if (!cJSON_IsNumber(duration)) {
|
||||
ogs_error("OpenAPI_accumulated_usage_parseFromJSON() failed [duration]");
|
||||
goto end;
|
||||
|
@ -88,7 +96,7 @@ OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *total_volume = cJSON_GetObjectItemCaseSensitive(accumulated_usageJSON, "totalVolume");
|
||||
|
||||
if (total_volume) {
|
||||
if (total_volume) {
|
||||
if (!cJSON_IsNumber(total_volume)) {
|
||||
ogs_error("OpenAPI_accumulated_usage_parseFromJSON() failed [total_volume]");
|
||||
goto end;
|
||||
|
@ -97,7 +105,7 @@ OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *downlink_volume = cJSON_GetObjectItemCaseSensitive(accumulated_usageJSON, "downlinkVolume");
|
||||
|
||||
if (downlink_volume) {
|
||||
if (downlink_volume) {
|
||||
if (!cJSON_IsNumber(downlink_volume)) {
|
||||
ogs_error("OpenAPI_accumulated_usage_parseFromJSON() failed [downlink_volume]");
|
||||
goto end;
|
||||
|
@ -106,7 +114,7 @@ OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_parseFromJSON(cJSON *accu
|
|||
|
||||
cJSON *uplink_volume = cJSON_GetObjectItemCaseSensitive(accumulated_usageJSON, "uplinkVolume");
|
||||
|
||||
if (uplink_volume) {
|
||||
if (uplink_volume) {
|
||||
if (!cJSON_IsNumber(uplink_volume)) {
|
||||
ogs_error("OpenAPI_accumulated_usage_parseFromJSON() failed [uplink_volume]");
|
||||
goto end;
|
||||
|
@ -114,9 +122,13 @@ OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_parseFromJSON(cJSON *accu
|
|||
}
|
||||
|
||||
accumulated_usage_local_var = OpenAPI_accumulated_usage_create (
|
||||
duration ? true : false,
|
||||
duration ? duration->valuedouble : 0,
|
||||
total_volume ? true : false,
|
||||
total_volume ? total_volume->valuedouble : 0,
|
||||
downlink_volume ? true : false,
|
||||
downlink_volume ? downlink_volume->valuedouble : 0,
|
||||
uplink_volume ? true : false,
|
||||
uplink_volume ? uplink_volume->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -19,16 +19,24 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_accumulated_usage_s OpenAPI_accumulated_usage_t;
|
||||
typedef struct OpenAPI_accumulated_usage_s {
|
||||
bool is_duration;
|
||||
int duration;
|
||||
bool is_total_volume;
|
||||
long total_volume;
|
||||
bool is_downlink_volume;
|
||||
long downlink_volume;
|
||||
bool is_uplink_volume;
|
||||
long uplink_volume;
|
||||
} OpenAPI_accumulated_usage_t;
|
||||
|
||||
OpenAPI_accumulated_usage_t *OpenAPI_accumulated_usage_create(
|
||||
bool is_duration,
|
||||
int duration,
|
||||
bool is_total_volume,
|
||||
long total_volume,
|
||||
bool is_downlink_volume,
|
||||
long downlink_volume,
|
||||
bool is_uplink_volume,
|
||||
long uplink_volume
|
||||
);
|
||||
void OpenAPI_accumulated_usage_free(OpenAPI_accumulated_usage_t *accumulated_usage);
|
||||
|
|
|
@ -9,6 +9,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_create(
|
|||
char *upu_mac_iue,
|
||||
char *secured_packet,
|
||||
char *provisioning_time,
|
||||
bool is_ue_not_reachable,
|
||||
int ue_not_reachable
|
||||
)
|
||||
{
|
||||
|
@ -20,6 +21,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_create(
|
|||
acknowledge_info_local_var->upu_mac_iue = upu_mac_iue;
|
||||
acknowledge_info_local_var->secured_packet = secured_packet;
|
||||
acknowledge_info_local_var->provisioning_time = provisioning_time;
|
||||
acknowledge_info_local_var->is_ue_not_reachable = is_ue_not_reachable;
|
||||
acknowledge_info_local_var->ue_not_reachable = ue_not_reachable;
|
||||
|
||||
return acknowledge_info_local_var;
|
||||
|
@ -74,7 +76,7 @@ cJSON *OpenAPI_acknowledge_info_convertToJSON(OpenAPI_acknowledge_info_t *acknow
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (acknowledge_info->ue_not_reachable) {
|
||||
if (acknowledge_info->is_ue_not_reachable) {
|
||||
if (cJSON_AddBoolToObject(item, "ueNotReachable", acknowledge_info->ue_not_reachable) == NULL) {
|
||||
ogs_error("OpenAPI_acknowledge_info_convertToJSON() failed [ue_not_reachable]");
|
||||
goto end;
|
||||
|
@ -90,7 +92,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_parseFromJSON(cJSON *acknow
|
|||
OpenAPI_acknowledge_info_t *acknowledge_info_local_var = NULL;
|
||||
cJSON *sor_mac_iue = cJSON_GetObjectItemCaseSensitive(acknowledge_infoJSON, "sorMacIue");
|
||||
|
||||
if (sor_mac_iue) {
|
||||
if (sor_mac_iue) {
|
||||
if (!cJSON_IsString(sor_mac_iue)) {
|
||||
ogs_error("OpenAPI_acknowledge_info_parseFromJSON() failed [sor_mac_iue]");
|
||||
goto end;
|
||||
|
@ -99,7 +101,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_parseFromJSON(cJSON *acknow
|
|||
|
||||
cJSON *upu_mac_iue = cJSON_GetObjectItemCaseSensitive(acknowledge_infoJSON, "upuMacIue");
|
||||
|
||||
if (upu_mac_iue) {
|
||||
if (upu_mac_iue) {
|
||||
if (!cJSON_IsString(upu_mac_iue)) {
|
||||
ogs_error("OpenAPI_acknowledge_info_parseFromJSON() failed [upu_mac_iue]");
|
||||
goto end;
|
||||
|
@ -108,7 +110,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_parseFromJSON(cJSON *acknow
|
|||
|
||||
cJSON *secured_packet = cJSON_GetObjectItemCaseSensitive(acknowledge_infoJSON, "securedPacket");
|
||||
|
||||
if (secured_packet) {
|
||||
if (secured_packet) {
|
||||
if (!cJSON_IsString(secured_packet)) {
|
||||
ogs_error("OpenAPI_acknowledge_info_parseFromJSON() failed [secured_packet]");
|
||||
goto end;
|
||||
|
@ -121,7 +123,6 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_parseFromJSON(cJSON *acknow
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(provisioning_time)) {
|
||||
ogs_error("OpenAPI_acknowledge_info_parseFromJSON() failed [provisioning_time]");
|
||||
goto end;
|
||||
|
@ -129,7 +130,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_parseFromJSON(cJSON *acknow
|
|||
|
||||
cJSON *ue_not_reachable = cJSON_GetObjectItemCaseSensitive(acknowledge_infoJSON, "ueNotReachable");
|
||||
|
||||
if (ue_not_reachable) {
|
||||
if (ue_not_reachable) {
|
||||
if (!cJSON_IsBool(ue_not_reachable)) {
|
||||
ogs_error("OpenAPI_acknowledge_info_parseFromJSON() failed [ue_not_reachable]");
|
||||
goto end;
|
||||
|
@ -141,6 +142,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_parseFromJSON(cJSON *acknow
|
|||
upu_mac_iue ? ogs_strdup_or_assert(upu_mac_iue->valuestring) : NULL,
|
||||
secured_packet ? ogs_strdup_or_assert(secured_packet->valuestring) : NULL,
|
||||
ogs_strdup_or_assert(provisioning_time->valuestring),
|
||||
ue_not_reachable ? true : false,
|
||||
ue_not_reachable ? ue_not_reachable->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ typedef struct OpenAPI_acknowledge_info_s {
|
|||
char *upu_mac_iue;
|
||||
char *secured_packet;
|
||||
char *provisioning_time;
|
||||
bool is_ue_not_reachable;
|
||||
int ue_not_reachable;
|
||||
} OpenAPI_acknowledge_info_t;
|
||||
|
||||
|
@ -31,6 +32,7 @@ OpenAPI_acknowledge_info_t *OpenAPI_acknowledge_info_create(
|
|||
char *upu_mac_iue,
|
||||
char *secured_packet,
|
||||
char *provisioning_time,
|
||||
bool is_ue_not_reachable,
|
||||
int ue_not_reachable
|
||||
);
|
||||
void OpenAPI_acknowledge_info_free(OpenAPI_acknowledge_info_t *acknowledge_info);
|
||||
|
|
|
@ -73,7 +73,7 @@ OpenAPI_acs_info_t *OpenAPI_acs_info_parseFromJSON(cJSON *acs_infoJSON)
|
|||
OpenAPI_acs_info_t *acs_info_local_var = NULL;
|
||||
cJSON *acs_url = cJSON_GetObjectItemCaseSensitive(acs_infoJSON, "acsUrl");
|
||||
|
||||
if (acs_url) {
|
||||
if (acs_url) {
|
||||
if (!cJSON_IsString(acs_url)) {
|
||||
ogs_error("OpenAPI_acs_info_parseFromJSON() failed [acs_url]");
|
||||
goto end;
|
||||
|
@ -82,7 +82,7 @@ OpenAPI_acs_info_t *OpenAPI_acs_info_parseFromJSON(cJSON *acs_infoJSON)
|
|||
|
||||
cJSON *acs_ipv4_addr = cJSON_GetObjectItemCaseSensitive(acs_infoJSON, "acsIpv4Addr");
|
||||
|
||||
if (acs_ipv4_addr) {
|
||||
if (acs_ipv4_addr) {
|
||||
if (!cJSON_IsString(acs_ipv4_addr)) {
|
||||
ogs_error("OpenAPI_acs_info_parseFromJSON() failed [acs_ipv4_addr]");
|
||||
goto end;
|
||||
|
@ -91,7 +91,7 @@ OpenAPI_acs_info_t *OpenAPI_acs_info_parseFromJSON(cJSON *acs_infoJSON)
|
|||
|
||||
cJSON *acs_ipv6_addr = cJSON_GetObjectItemCaseSensitive(acs_infoJSON, "acsIpv6Addr");
|
||||
|
||||
if (acs_ipv6_addr) {
|
||||
if (acs_ipv6_addr) {
|
||||
if (!cJSON_IsString(acs_ipv6_addr)) {
|
||||
ogs_error("OpenAPI_acs_info_parseFromJSON() failed [acs_ipv6_addr]");
|
||||
goto end;
|
||||
|
|
|
@ -73,7 +73,7 @@ OpenAPI_acs_info_1_t *OpenAPI_acs_info_1_parseFromJSON(cJSON *acs_info_1JSON)
|
|||
OpenAPI_acs_info_1_t *acs_info_1_local_var = NULL;
|
||||
cJSON *acs_url = cJSON_GetObjectItemCaseSensitive(acs_info_1JSON, "acsUrl");
|
||||
|
||||
if (acs_url) {
|
||||
if (acs_url) {
|
||||
if (!cJSON_IsString(acs_url)) {
|
||||
ogs_error("OpenAPI_acs_info_1_parseFromJSON() failed [acs_url]");
|
||||
goto end;
|
||||
|
@ -82,7 +82,7 @@ OpenAPI_acs_info_1_t *OpenAPI_acs_info_1_parseFromJSON(cJSON *acs_info_1JSON)
|
|||
|
||||
cJSON *acs_ipv4_addr = cJSON_GetObjectItemCaseSensitive(acs_info_1JSON, "acsIpv4Addr");
|
||||
|
||||
if (acs_ipv4_addr) {
|
||||
if (acs_ipv4_addr) {
|
||||
if (!cJSON_IsString(acs_ipv4_addr)) {
|
||||
ogs_error("OpenAPI_acs_info_1_parseFromJSON() failed [acs_ipv4_addr]");
|
||||
goto end;
|
||||
|
@ -91,7 +91,7 @@ OpenAPI_acs_info_1_t *OpenAPI_acs_info_1_parseFromJSON(cJSON *acs_info_1JSON)
|
|||
|
||||
cJSON *acs_ipv6_addr = cJSON_GetObjectItemCaseSensitive(acs_info_1JSON, "acsIpv6Addr");
|
||||
|
||||
if (acs_ipv6_addr) {
|
||||
if (acs_ipv6_addr) {
|
||||
if (!cJSON_IsString(acs_ipv6_addr)) {
|
||||
ogs_error("OpenAPI_acs_info_1_parseFromJSON() failed [acs_ipv6_addr]");
|
||||
goto end;
|
||||
|
|
|
@ -73,7 +73,7 @@ OpenAPI_acs_info_rm_t *OpenAPI_acs_info_rm_parseFromJSON(cJSON *acs_info_rmJSON)
|
|||
OpenAPI_acs_info_rm_t *acs_info_rm_local_var = NULL;
|
||||
cJSON *acs_url = cJSON_GetObjectItemCaseSensitive(acs_info_rmJSON, "acsUrl");
|
||||
|
||||
if (acs_url) {
|
||||
if (acs_url) {
|
||||
if (!cJSON_IsString(acs_url)) {
|
||||
ogs_error("OpenAPI_acs_info_rm_parseFromJSON() failed [acs_url]");
|
||||
goto end;
|
||||
|
@ -82,7 +82,7 @@ OpenAPI_acs_info_rm_t *OpenAPI_acs_info_rm_parseFromJSON(cJSON *acs_info_rmJSON)
|
|||
|
||||
cJSON *acs_ipv4_addr = cJSON_GetObjectItemCaseSensitive(acs_info_rmJSON, "acsIpv4Addr");
|
||||
|
||||
if (acs_ipv4_addr) {
|
||||
if (acs_ipv4_addr) {
|
||||
if (!cJSON_IsString(acs_ipv4_addr)) {
|
||||
ogs_error("OpenAPI_acs_info_rm_parseFromJSON() failed [acs_ipv4_addr]");
|
||||
goto end;
|
||||
|
@ -91,7 +91,7 @@ OpenAPI_acs_info_rm_t *OpenAPI_acs_info_rm_parseFromJSON(cJSON *acs_info_rmJSON)
|
|||
|
||||
cJSON *acs_ipv6_addr = cJSON_GetObjectItemCaseSensitive(acs_info_rmJSON, "acsIpv6Addr");
|
||||
|
||||
if (acs_ipv6_addr) {
|
||||
if (acs_ipv6_addr) {
|
||||
if (!cJSON_IsString(acs_ipv6_addr)) {
|
||||
ogs_error("OpenAPI_acs_info_rm_parseFromJSON() failed [acs_ipv6_addr]");
|
||||
goto end;
|
||||
|
|
|
@ -64,7 +64,6 @@ OpenAPI_additional_access_info_t *OpenAPI_additional_access_info_parseFromJSON(c
|
|||
}
|
||||
|
||||
OpenAPI_access_type_e access_typeVariable;
|
||||
|
||||
if (!cJSON_IsString(access_type)) {
|
||||
ogs_error("OpenAPI_additional_access_info_parseFromJSON() failed [access_type]");
|
||||
goto end;
|
||||
|
@ -74,7 +73,7 @@ OpenAPI_additional_access_info_t *OpenAPI_additional_access_info_parseFromJSON(c
|
|||
cJSON *rat_type = cJSON_GetObjectItemCaseSensitive(additional_access_infoJSON, "ratType");
|
||||
|
||||
OpenAPI_rat_type_e rat_typeVariable;
|
||||
if (rat_type) {
|
||||
if (rat_type) {
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_additional_access_info_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "additional_snssai_data.h"
|
||||
|
||||
OpenAPI_additional_snssai_data_t *OpenAPI_additional_snssai_data_create(
|
||||
bool is_required_authn_authz,
|
||||
int required_authn_authz
|
||||
)
|
||||
{
|
||||
|
@ -12,6 +13,7 @@ OpenAPI_additional_snssai_data_t *OpenAPI_additional_snssai_data_create(
|
|||
if (!additional_snssai_data_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
additional_snssai_data_local_var->is_required_authn_authz = is_required_authn_authz;
|
||||
additional_snssai_data_local_var->required_authn_authz = required_authn_authz;
|
||||
|
||||
return additional_snssai_data_local_var;
|
||||
|
@ -36,7 +38,7 @@ cJSON *OpenAPI_additional_snssai_data_convertToJSON(OpenAPI_additional_snssai_da
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (additional_snssai_data->required_authn_authz) {
|
||||
if (additional_snssai_data->is_required_authn_authz) {
|
||||
if (cJSON_AddBoolToObject(item, "requiredAuthnAuthz", additional_snssai_data->required_authn_authz) == NULL) {
|
||||
ogs_error("OpenAPI_additional_snssai_data_convertToJSON() failed [required_authn_authz]");
|
||||
goto end;
|
||||
|
@ -52,7 +54,7 @@ OpenAPI_additional_snssai_data_t *OpenAPI_additional_snssai_data_parseFromJSON(c
|
|||
OpenAPI_additional_snssai_data_t *additional_snssai_data_local_var = NULL;
|
||||
cJSON *required_authn_authz = cJSON_GetObjectItemCaseSensitive(additional_snssai_dataJSON, "requiredAuthnAuthz");
|
||||
|
||||
if (required_authn_authz) {
|
||||
if (required_authn_authz) {
|
||||
if (!cJSON_IsBool(required_authn_authz)) {
|
||||
ogs_error("OpenAPI_additional_snssai_data_parseFromJSON() failed [required_authn_authz]");
|
||||
goto end;
|
||||
|
@ -60,6 +62,7 @@ OpenAPI_additional_snssai_data_t *OpenAPI_additional_snssai_data_parseFromJSON(c
|
|||
}
|
||||
|
||||
additional_snssai_data_local_var = OpenAPI_additional_snssai_data_create (
|
||||
required_authn_authz ? true : false,
|
||||
required_authn_authz ? required_authn_authz->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -19,10 +19,12 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_additional_snssai_data_s OpenAPI_additional_snssai_data_t;
|
||||
typedef struct OpenAPI_additional_snssai_data_s {
|
||||
bool is_required_authn_authz;
|
||||
int required_authn_authz;
|
||||
} OpenAPI_additional_snssai_data_t;
|
||||
|
||||
OpenAPI_additional_snssai_data_t *OpenAPI_additional_snssai_data_create(
|
||||
bool is_required_authn_authz,
|
||||
int required_authn_authz
|
||||
);
|
||||
void OpenAPI_additional_snssai_data_free(OpenAPI_additional_snssai_data_t *additional_snssai_data);
|
||||
|
|
|
@ -108,7 +108,6 @@ OpenAPI_af_event_exposure_data_t *OpenAPI_af_event_exposure_data_parseFromJSON(c
|
|||
}
|
||||
|
||||
OpenAPI_list_t *af_eventsList;
|
||||
|
||||
cJSON *af_events_local_nonprimitive;
|
||||
if (!cJSON_IsArray(af_events)) {
|
||||
ogs_error("OpenAPI_af_event_exposure_data_parseFromJSON() failed [af_events]");
|
||||
|
@ -129,7 +128,7 @@ OpenAPI_af_event_exposure_data_t *OpenAPI_af_event_exposure_data_parseFromJSON(c
|
|||
cJSON *af_ids = cJSON_GetObjectItemCaseSensitive(af_event_exposure_dataJSON, "afIds");
|
||||
|
||||
OpenAPI_list_t *af_idsList;
|
||||
if (af_ids) {
|
||||
if (af_ids) {
|
||||
cJSON *af_ids_local;
|
||||
if (!cJSON_IsArray(af_ids)) {
|
||||
ogs_error("OpenAPI_af_event_exposure_data_parseFromJSON() failed [af_ids]");
|
||||
|
@ -143,13 +142,13 @@ OpenAPI_af_event_exposure_data_t *OpenAPI_af_event_exposure_data_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(af_idsList , ogs_strdup_or_assert(af_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *app_ids = cJSON_GetObjectItemCaseSensitive(af_event_exposure_dataJSON, "appIds");
|
||||
|
||||
OpenAPI_list_t *app_idsList;
|
||||
if (app_ids) {
|
||||
if (app_ids) {
|
||||
cJSON *app_ids_local;
|
||||
if (!cJSON_IsArray(app_ids)) {
|
||||
ogs_error("OpenAPI_af_event_exposure_data_parseFromJSON() failed [app_ids]");
|
||||
|
@ -163,7 +162,7 @@ OpenAPI_af_event_exposure_data_t *OpenAPI_af_event_exposure_data_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(app_idsList , ogs_strdup_or_assert(app_ids_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
af_event_exposure_data_local_var = OpenAPI_af_event_exposure_data_create (
|
||||
|
|
|
@ -81,7 +81,6 @@ OpenAPI_af_event_notification_t *OpenAPI_af_event_notification_parseFromJSON(cJS
|
|||
}
|
||||
|
||||
OpenAPI_af_event_e eventVariable;
|
||||
|
||||
if (!cJSON_IsString(event)) {
|
||||
ogs_error("OpenAPI_af_event_notification_parseFromJSON() failed [event]");
|
||||
goto end;
|
||||
|
@ -91,7 +90,7 @@ OpenAPI_af_event_notification_t *OpenAPI_af_event_notification_parseFromJSON(cJS
|
|||
cJSON *flows = cJSON_GetObjectItemCaseSensitive(af_event_notificationJSON, "flows");
|
||||
|
||||
OpenAPI_list_t *flowsList;
|
||||
if (flows) {
|
||||
if (flows) {
|
||||
cJSON *flows_local_nonprimitive;
|
||||
if (!cJSON_IsArray(flows)){
|
||||
ogs_error("OpenAPI_af_event_notification_parseFromJSON() failed [flows]");
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_create(
|
||||
OpenAPI_af_event_e event,
|
||||
OpenAPI_af_notif_method_e notif_method,
|
||||
bool is_rep_period,
|
||||
int rep_period,
|
||||
bool is_wait_time,
|
||||
int wait_time
|
||||
)
|
||||
{
|
||||
|
@ -17,7 +19,9 @@ OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_create(
|
|||
}
|
||||
af_event_subscription_local_var->event = event;
|
||||
af_event_subscription_local_var->notif_method = notif_method;
|
||||
af_event_subscription_local_var->is_rep_period = is_rep_period;
|
||||
af_event_subscription_local_var->rep_period = rep_period;
|
||||
af_event_subscription_local_var->is_wait_time = is_wait_time;
|
||||
af_event_subscription_local_var->wait_time = wait_time;
|
||||
|
||||
return af_event_subscription_local_var;
|
||||
|
@ -54,14 +58,14 @@ cJSON *OpenAPI_af_event_subscription_convertToJSON(OpenAPI_af_event_subscription
|
|||
}
|
||||
}
|
||||
|
||||
if (af_event_subscription->rep_period) {
|
||||
if (af_event_subscription->is_rep_period) {
|
||||
if (cJSON_AddNumberToObject(item, "repPeriod", af_event_subscription->rep_period) == NULL) {
|
||||
ogs_error("OpenAPI_af_event_subscription_convertToJSON() failed [rep_period]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (af_event_subscription->wait_time) {
|
||||
if (af_event_subscription->is_wait_time) {
|
||||
if (cJSON_AddNumberToObject(item, "waitTime", af_event_subscription->wait_time) == NULL) {
|
||||
ogs_error("OpenAPI_af_event_subscription_convertToJSON() failed [wait_time]");
|
||||
goto end;
|
||||
|
@ -82,7 +86,6 @@ OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_parseFromJSON(cJS
|
|||
}
|
||||
|
||||
OpenAPI_af_event_e eventVariable;
|
||||
|
||||
if (!cJSON_IsString(event)) {
|
||||
ogs_error("OpenAPI_af_event_subscription_parseFromJSON() failed [event]");
|
||||
goto end;
|
||||
|
@ -92,7 +95,7 @@ OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_parseFromJSON(cJS
|
|||
cJSON *notif_method = cJSON_GetObjectItemCaseSensitive(af_event_subscriptionJSON, "notifMethod");
|
||||
|
||||
OpenAPI_af_notif_method_e notif_methodVariable;
|
||||
if (notif_method) {
|
||||
if (notif_method) {
|
||||
if (!cJSON_IsString(notif_method)) {
|
||||
ogs_error("OpenAPI_af_event_subscription_parseFromJSON() failed [notif_method]");
|
||||
goto end;
|
||||
|
@ -102,7 +105,7 @@ OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_parseFromJSON(cJS
|
|||
|
||||
cJSON *rep_period = cJSON_GetObjectItemCaseSensitive(af_event_subscriptionJSON, "repPeriod");
|
||||
|
||||
if (rep_period) {
|
||||
if (rep_period) {
|
||||
if (!cJSON_IsNumber(rep_period)) {
|
||||
ogs_error("OpenAPI_af_event_subscription_parseFromJSON() failed [rep_period]");
|
||||
goto end;
|
||||
|
@ -111,7 +114,7 @@ OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_parseFromJSON(cJS
|
|||
|
||||
cJSON *wait_time = cJSON_GetObjectItemCaseSensitive(af_event_subscriptionJSON, "waitTime");
|
||||
|
||||
if (wait_time) {
|
||||
if (wait_time) {
|
||||
if (!cJSON_IsNumber(wait_time)) {
|
||||
ogs_error("OpenAPI_af_event_subscription_parseFromJSON() failed [wait_time]");
|
||||
goto end;
|
||||
|
@ -121,7 +124,9 @@ OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_parseFromJSON(cJS
|
|||
af_event_subscription_local_var = OpenAPI_af_event_subscription_create (
|
||||
eventVariable,
|
||||
notif_method ? notif_methodVariable : 0,
|
||||
rep_period ? true : false,
|
||||
rep_period ? rep_period->valuedouble : 0,
|
||||
wait_time ? true : false,
|
||||
wait_time ? wait_time->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -23,14 +23,18 @@ typedef struct OpenAPI_af_event_subscription_s OpenAPI_af_event_subscription_t;
|
|||
typedef struct OpenAPI_af_event_subscription_s {
|
||||
OpenAPI_af_event_e event;
|
||||
OpenAPI_af_notif_method_e notif_method;
|
||||
bool is_rep_period;
|
||||
int rep_period;
|
||||
bool is_wait_time;
|
||||
int wait_time;
|
||||
} OpenAPI_af_event_subscription_t;
|
||||
|
||||
OpenAPI_af_event_subscription_t *OpenAPI_af_event_subscription_create(
|
||||
OpenAPI_af_event_e event,
|
||||
OpenAPI_af_notif_method_e notif_method,
|
||||
bool is_rep_period,
|
||||
int rep_period,
|
||||
bool is_wait_time,
|
||||
int wait_time
|
||||
);
|
||||
void OpenAPI_af_event_subscription_free(OpenAPI_af_event_subscription_t *af_event_subscription);
|
||||
|
|
|
@ -104,7 +104,7 @@ OpenAPI_af_external_t *OpenAPI_af_external_parseFromJSON(cJSON *af_externalJSON)
|
|||
OpenAPI_af_external_t *af_external_local_var = NULL;
|
||||
cJSON *af_id = cJSON_GetObjectItemCaseSensitive(af_externalJSON, "afId");
|
||||
|
||||
if (af_id) {
|
||||
if (af_id) {
|
||||
if (!cJSON_IsString(af_id)) {
|
||||
ogs_error("OpenAPI_af_external_parseFromJSON() failed [af_id]");
|
||||
goto end;
|
||||
|
@ -114,7 +114,7 @@ OpenAPI_af_external_t *OpenAPI_af_external_parseFromJSON(cJSON *af_externalJSON)
|
|||
cJSON *allowed_geographic_area = cJSON_GetObjectItemCaseSensitive(af_externalJSON, "allowedGeographicArea");
|
||||
|
||||
OpenAPI_list_t *allowed_geographic_areaList;
|
||||
if (allowed_geographic_area) {
|
||||
if (allowed_geographic_area) {
|
||||
cJSON *allowed_geographic_area_local_nonprimitive;
|
||||
if (!cJSON_IsArray(allowed_geographic_area)){
|
||||
ogs_error("OpenAPI_af_external_parseFromJSON() failed [allowed_geographic_area]");
|
||||
|
@ -137,7 +137,7 @@ OpenAPI_af_external_t *OpenAPI_af_external_parseFromJSON(cJSON *af_externalJSON)
|
|||
cJSON *privacy_check_related_action = cJSON_GetObjectItemCaseSensitive(af_externalJSON, "privacyCheckRelatedAction");
|
||||
|
||||
OpenAPI_privacy_check_related_action_e privacy_check_related_actionVariable;
|
||||
if (privacy_check_related_action) {
|
||||
if (privacy_check_related_action) {
|
||||
if (!cJSON_IsString(privacy_check_related_action)) {
|
||||
ogs_error("OpenAPI_af_external_parseFromJSON() failed [privacy_check_related_action]");
|
||||
goto end;
|
||||
|
@ -148,7 +148,7 @@ OpenAPI_af_external_t *OpenAPI_af_external_parseFromJSON(cJSON *af_externalJSON)
|
|||
cJSON *valid_time_period = cJSON_GetObjectItemCaseSensitive(af_externalJSON, "validTimePeriod");
|
||||
|
||||
OpenAPI_valid_time_period_t *valid_time_period_local_nonprim = NULL;
|
||||
if (valid_time_period) {
|
||||
if (valid_time_period) {
|
||||
valid_time_period_local_nonprim = OpenAPI_valid_time_period_parseFromJSON(valid_time_period);
|
||||
}
|
||||
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
#include "af_routing_requirement.h"
|
||||
|
||||
OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_create(
|
||||
bool is_app_reloc,
|
||||
int app_reloc,
|
||||
OpenAPI_list_t *route_to_locs,
|
||||
OpenAPI_spatial_validity_t *sp_val,
|
||||
OpenAPI_list_t *temp_vals,
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub,
|
||||
bool is_addr_preser_ind,
|
||||
int addr_preser_ind
|
||||
)
|
||||
{
|
||||
|
@ -17,11 +19,13 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_create(
|
|||
if (!af_routing_requirement_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
af_routing_requirement_local_var->is_app_reloc = is_app_reloc;
|
||||
af_routing_requirement_local_var->app_reloc = app_reloc;
|
||||
af_routing_requirement_local_var->route_to_locs = route_to_locs;
|
||||
af_routing_requirement_local_var->sp_val = sp_val;
|
||||
af_routing_requirement_local_var->temp_vals = temp_vals;
|
||||
af_routing_requirement_local_var->up_path_chg_sub = up_path_chg_sub;
|
||||
af_routing_requirement_local_var->is_addr_preser_ind = is_addr_preser_ind;
|
||||
af_routing_requirement_local_var->addr_preser_ind = addr_preser_ind;
|
||||
|
||||
return af_routing_requirement_local_var;
|
||||
|
@ -56,7 +60,7 @@ cJSON *OpenAPI_af_routing_requirement_convertToJSON(OpenAPI_af_routing_requireme
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (af_routing_requirement->app_reloc) {
|
||||
if (af_routing_requirement->is_app_reloc) {
|
||||
if (cJSON_AddBoolToObject(item, "appReloc", af_routing_requirement->app_reloc) == NULL) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_convertToJSON() failed [app_reloc]");
|
||||
goto end;
|
||||
|
@ -129,7 +133,7 @@ cJSON *OpenAPI_af_routing_requirement_convertToJSON(OpenAPI_af_routing_requireme
|
|||
}
|
||||
}
|
||||
|
||||
if (af_routing_requirement->addr_preser_ind) {
|
||||
if (af_routing_requirement->is_addr_preser_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "addrPreserInd", af_routing_requirement->addr_preser_ind) == NULL) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_convertToJSON() failed [addr_preser_ind]");
|
||||
goto end;
|
||||
|
@ -145,7 +149,7 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
OpenAPI_af_routing_requirement_t *af_routing_requirement_local_var = NULL;
|
||||
cJSON *app_reloc = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "appReloc");
|
||||
|
||||
if (app_reloc) {
|
||||
if (app_reloc) {
|
||||
if (!cJSON_IsBool(app_reloc)) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [app_reloc]");
|
||||
goto end;
|
||||
|
@ -155,7 +159,7 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
cJSON *route_to_locs = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "routeToLocs");
|
||||
|
||||
OpenAPI_list_t *route_to_locsList;
|
||||
if (route_to_locs) {
|
||||
if (route_to_locs) {
|
||||
cJSON *route_to_locs_local_nonprimitive;
|
||||
if (!cJSON_IsArray(route_to_locs)){
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [route_to_locs]");
|
||||
|
@ -178,14 +182,14 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
cJSON *sp_val = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "spVal");
|
||||
|
||||
OpenAPI_spatial_validity_t *sp_val_local_nonprim = NULL;
|
||||
if (sp_val) {
|
||||
if (sp_val) {
|
||||
sp_val_local_nonprim = OpenAPI_spatial_validity_parseFromJSON(sp_val);
|
||||
}
|
||||
|
||||
cJSON *temp_vals = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "tempVals");
|
||||
|
||||
OpenAPI_list_t *temp_valsList;
|
||||
if (temp_vals) {
|
||||
if (temp_vals) {
|
||||
cJSON *temp_vals_local_nonprimitive;
|
||||
if (!cJSON_IsArray(temp_vals)){
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [temp_vals]");
|
||||
|
@ -208,13 +212,13 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
cJSON *up_path_chg_sub = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "upPathChgSub");
|
||||
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub_local_nonprim = NULL;
|
||||
if (up_path_chg_sub) {
|
||||
if (up_path_chg_sub) {
|
||||
up_path_chg_sub_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_sub);
|
||||
}
|
||||
|
||||
cJSON *addr_preser_ind = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "addrPreserInd");
|
||||
|
||||
if (addr_preser_ind) {
|
||||
if (addr_preser_ind) {
|
||||
if (!cJSON_IsBool(addr_preser_ind)) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_parseFromJSON() failed [addr_preser_ind]");
|
||||
goto end;
|
||||
|
@ -222,11 +226,13 @@ OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_parseFromJSON(c
|
|||
}
|
||||
|
||||
af_routing_requirement_local_var = OpenAPI_af_routing_requirement_create (
|
||||
app_reloc ? true : false,
|
||||
app_reloc ? app_reloc->valueint : 0,
|
||||
route_to_locs ? route_to_locsList : NULL,
|
||||
sp_val ? sp_val_local_nonprim : NULL,
|
||||
temp_vals ? temp_valsList : NULL,
|
||||
up_path_chg_sub ? up_path_chg_sub_local_nonprim : NULL,
|
||||
addr_preser_ind ? true : false,
|
||||
addr_preser_ind ? addr_preser_ind->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -23,20 +23,24 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_af_routing_requirement_s OpenAPI_af_routing_requirement_t;
|
||||
typedef struct OpenAPI_af_routing_requirement_s {
|
||||
bool is_app_reloc;
|
||||
int app_reloc;
|
||||
OpenAPI_list_t *route_to_locs;
|
||||
struct OpenAPI_spatial_validity_s *sp_val;
|
||||
OpenAPI_list_t *temp_vals;
|
||||
struct OpenAPI_up_path_chg_event_s *up_path_chg_sub;
|
||||
bool is_addr_preser_ind;
|
||||
int addr_preser_ind;
|
||||
} OpenAPI_af_routing_requirement_t;
|
||||
|
||||
OpenAPI_af_routing_requirement_t *OpenAPI_af_routing_requirement_create(
|
||||
bool is_app_reloc,
|
||||
int app_reloc,
|
||||
OpenAPI_list_t *route_to_locs,
|
||||
OpenAPI_spatial_validity_t *sp_val,
|
||||
OpenAPI_list_t *temp_vals,
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub,
|
||||
bool is_addr_preser_ind,
|
||||
int addr_preser_ind
|
||||
);
|
||||
void OpenAPI_af_routing_requirement_free(OpenAPI_af_routing_requirement_t *af_routing_requirement);
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
#include "af_routing_requirement_rm.h"
|
||||
|
||||
OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_create(
|
||||
bool is_app_reloc,
|
||||
int app_reloc,
|
||||
OpenAPI_list_t *route_to_locs,
|
||||
OpenAPI_spatial_validity_rm_t *sp_val,
|
||||
OpenAPI_list_t *temp_vals,
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub,
|
||||
bool is_addr_preser_ind,
|
||||
int addr_preser_ind
|
||||
)
|
||||
{
|
||||
|
@ -17,11 +19,13 @@ OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_create(
|
|||
if (!af_routing_requirement_rm_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
af_routing_requirement_rm_local_var->is_app_reloc = is_app_reloc;
|
||||
af_routing_requirement_rm_local_var->app_reloc = app_reloc;
|
||||
af_routing_requirement_rm_local_var->route_to_locs = route_to_locs;
|
||||
af_routing_requirement_rm_local_var->sp_val = sp_val;
|
||||
af_routing_requirement_rm_local_var->temp_vals = temp_vals;
|
||||
af_routing_requirement_rm_local_var->up_path_chg_sub = up_path_chg_sub;
|
||||
af_routing_requirement_rm_local_var->is_addr_preser_ind = is_addr_preser_ind;
|
||||
af_routing_requirement_rm_local_var->addr_preser_ind = addr_preser_ind;
|
||||
|
||||
return af_routing_requirement_rm_local_var;
|
||||
|
@ -56,7 +60,7 @@ cJSON *OpenAPI_af_routing_requirement_rm_convertToJSON(OpenAPI_af_routing_requir
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (af_routing_requirement_rm->app_reloc) {
|
||||
if (af_routing_requirement_rm->is_app_reloc) {
|
||||
if (cJSON_AddBoolToObject(item, "appReloc", af_routing_requirement_rm->app_reloc) == NULL) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed [app_reloc]");
|
||||
goto end;
|
||||
|
@ -129,7 +133,7 @@ cJSON *OpenAPI_af_routing_requirement_rm_convertToJSON(OpenAPI_af_routing_requir
|
|||
}
|
||||
}
|
||||
|
||||
if (af_routing_requirement_rm->addr_preser_ind) {
|
||||
if (af_routing_requirement_rm->is_addr_preser_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "addrPreserInd", af_routing_requirement_rm->addr_preser_ind) == NULL) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed [addr_preser_ind]");
|
||||
goto end;
|
||||
|
@ -145,7 +149,7 @@ OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_parseFrom
|
|||
OpenAPI_af_routing_requirement_rm_t *af_routing_requirement_rm_local_var = NULL;
|
||||
cJSON *app_reloc = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "appReloc");
|
||||
|
||||
if (app_reloc) {
|
||||
if (app_reloc) {
|
||||
if (!cJSON_IsBool(app_reloc)) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed [app_reloc]");
|
||||
goto end;
|
||||
|
@ -155,7 +159,7 @@ OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_parseFrom
|
|||
cJSON *route_to_locs = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "routeToLocs");
|
||||
|
||||
OpenAPI_list_t *route_to_locsList;
|
||||
if (route_to_locs) {
|
||||
if (route_to_locs) {
|
||||
cJSON *route_to_locs_local_nonprimitive;
|
||||
if (!cJSON_IsArray(route_to_locs)){
|
||||
ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed [route_to_locs]");
|
||||
|
@ -178,14 +182,14 @@ OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_parseFrom
|
|||
cJSON *sp_val = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "spVal");
|
||||
|
||||
OpenAPI_spatial_validity_rm_t *sp_val_local_nonprim = NULL;
|
||||
if (sp_val) {
|
||||
if (sp_val) {
|
||||
sp_val_local_nonprim = OpenAPI_spatial_validity_rm_parseFromJSON(sp_val);
|
||||
}
|
||||
|
||||
cJSON *temp_vals = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "tempVals");
|
||||
|
||||
OpenAPI_list_t *temp_valsList;
|
||||
if (temp_vals) {
|
||||
if (temp_vals) {
|
||||
cJSON *temp_vals_local_nonprimitive;
|
||||
if (!cJSON_IsArray(temp_vals)){
|
||||
ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed [temp_vals]");
|
||||
|
@ -208,13 +212,13 @@ OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_parseFrom
|
|||
cJSON *up_path_chg_sub = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "upPathChgSub");
|
||||
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub_local_nonprim = NULL;
|
||||
if (up_path_chg_sub) {
|
||||
if (up_path_chg_sub) {
|
||||
up_path_chg_sub_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_sub);
|
||||
}
|
||||
|
||||
cJSON *addr_preser_ind = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "addrPreserInd");
|
||||
|
||||
if (addr_preser_ind) {
|
||||
if (addr_preser_ind) {
|
||||
if (!cJSON_IsBool(addr_preser_ind)) {
|
||||
ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed [addr_preser_ind]");
|
||||
goto end;
|
||||
|
@ -222,11 +226,13 @@ OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_parseFrom
|
|||
}
|
||||
|
||||
af_routing_requirement_rm_local_var = OpenAPI_af_routing_requirement_rm_create (
|
||||
app_reloc ? true : false,
|
||||
app_reloc ? app_reloc->valueint : 0,
|
||||
route_to_locs ? route_to_locsList : NULL,
|
||||
sp_val ? sp_val_local_nonprim : NULL,
|
||||
temp_vals ? temp_valsList : NULL,
|
||||
up_path_chg_sub ? up_path_chg_sub_local_nonprim : NULL,
|
||||
addr_preser_ind ? true : false,
|
||||
addr_preser_ind ? addr_preser_ind->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -23,20 +23,24 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_af_routing_requirement_rm_s OpenAPI_af_routing_requirement_rm_t;
|
||||
typedef struct OpenAPI_af_routing_requirement_rm_s {
|
||||
bool is_app_reloc;
|
||||
int app_reloc;
|
||||
OpenAPI_list_t *route_to_locs;
|
||||
struct OpenAPI_spatial_validity_rm_s *sp_val;
|
||||
OpenAPI_list_t *temp_vals;
|
||||
struct OpenAPI_up_path_chg_event_s *up_path_chg_sub;
|
||||
bool is_addr_preser_ind;
|
||||
int addr_preser_ind;
|
||||
} OpenAPI_af_routing_requirement_rm_t;
|
||||
|
||||
OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_create(
|
||||
bool is_app_reloc,
|
||||
int app_reloc,
|
||||
OpenAPI_list_t *route_to_locs,
|
||||
OpenAPI_spatial_validity_rm_t *sp_val,
|
||||
OpenAPI_list_t *temp_vals,
|
||||
OpenAPI_up_path_chg_event_t *up_path_chg_sub,
|
||||
bool is_addr_preser_ind,
|
||||
int addr_preser_ind
|
||||
);
|
||||
void OpenAPI_af_routing_requirement_rm_free(OpenAPI_af_routing_requirement_rm_t *af_routing_requirement_rm);
|
||||
|
|
|
@ -63,7 +63,7 @@ OpenAPI_allowed_mtc_provider_info_t *OpenAPI_allowed_mtc_provider_info_parseFrom
|
|||
OpenAPI_allowed_mtc_provider_info_t *allowed_mtc_provider_info_local_var = NULL;
|
||||
cJSON *mtc_provider_information = cJSON_GetObjectItemCaseSensitive(allowed_mtc_provider_infoJSON, "mtcProviderInformation");
|
||||
|
||||
if (mtc_provider_information) {
|
||||
if (mtc_provider_information) {
|
||||
if (!cJSON_IsString(mtc_provider_information)) {
|
||||
ogs_error("OpenAPI_allowed_mtc_provider_info_parseFromJSON() failed [mtc_provider_information]");
|
||||
goto end;
|
||||
|
@ -72,7 +72,7 @@ OpenAPI_allowed_mtc_provider_info_t *OpenAPI_allowed_mtc_provider_info_parseFrom
|
|||
|
||||
cJSON *af_id = cJSON_GetObjectItemCaseSensitive(allowed_mtc_provider_infoJSON, "afId");
|
||||
|
||||
if (af_id) {
|
||||
if (af_id) {
|
||||
if (!cJSON_IsString(af_id)) {
|
||||
ogs_error("OpenAPI_allowed_mtc_provider_info_parseFromJSON() failed [af_id]");
|
||||
goto end;
|
||||
|
|
|
@ -79,7 +79,6 @@ OpenAPI_allowed_nssai_t *OpenAPI_allowed_nssai_parseFromJSON(cJSON *allowed_nssa
|
|||
}
|
||||
|
||||
OpenAPI_list_t *allowed_snssai_listList;
|
||||
|
||||
cJSON *allowed_snssai_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(allowed_snssai_list)){
|
||||
ogs_error("OpenAPI_allowed_nssai_parseFromJSON() failed [allowed_snssai_list]");
|
||||
|
@ -105,7 +104,6 @@ OpenAPI_allowed_nssai_t *OpenAPI_allowed_nssai_parseFromJSON(cJSON *allowed_nssa
|
|||
}
|
||||
|
||||
OpenAPI_access_type_e access_typeVariable;
|
||||
|
||||
if (!cJSON_IsString(access_type)) {
|
||||
ogs_error("OpenAPI_allowed_nssai_parseFromJSON() failed [access_type]");
|
||||
goto end;
|
||||
|
|
|
@ -104,13 +104,12 @@ OpenAPI_allowed_snssai_t *OpenAPI_allowed_snssai_parseFromJSON(cJSON *allowed_sn
|
|||
}
|
||||
|
||||
OpenAPI_snssai_t *allowed_snssai_local_nonprim = NULL;
|
||||
|
||||
allowed_snssai_local_nonprim = OpenAPI_snssai_parseFromJSON(allowed_snssai);
|
||||
|
||||
cJSON *nsi_information_list = cJSON_GetObjectItemCaseSensitive(allowed_snssaiJSON, "nsiInformationList");
|
||||
|
||||
OpenAPI_list_t *nsi_information_listList;
|
||||
if (nsi_information_list) {
|
||||
if (nsi_information_list) {
|
||||
cJSON *nsi_information_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(nsi_information_list)){
|
||||
ogs_error("OpenAPI_allowed_snssai_parseFromJSON() failed [nsi_information_list]");
|
||||
|
@ -133,7 +132,7 @@ OpenAPI_allowed_snssai_t *OpenAPI_allowed_snssai_parseFromJSON(cJSON *allowed_sn
|
|||
cJSON *mapped_home_snssai = cJSON_GetObjectItemCaseSensitive(allowed_snssaiJSON, "mappedHomeSnssai");
|
||||
|
||||
OpenAPI_snssai_t *mapped_home_snssai_local_nonprim = NULL;
|
||||
if (mapped_home_snssai) {
|
||||
if (mapped_home_snssai) {
|
||||
mapped_home_snssai_local_nonprim = OpenAPI_snssai_parseFromJSON(mapped_home_snssai);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_create(
|
|||
int index,
|
||||
char *gua_fbr_dl,
|
||||
char *gua_fbr_ul,
|
||||
bool is_packet_delay_budget,
|
||||
int packet_delay_budget,
|
||||
char *packet_err_rate
|
||||
)
|
||||
|
@ -19,6 +20,7 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_create(
|
|||
alternative_qos_profile_local_var->index = index;
|
||||
alternative_qos_profile_local_var->gua_fbr_dl = gua_fbr_dl;
|
||||
alternative_qos_profile_local_var->gua_fbr_ul = gua_fbr_ul;
|
||||
alternative_qos_profile_local_var->is_packet_delay_budget = is_packet_delay_budget;
|
||||
alternative_qos_profile_local_var->packet_delay_budget = packet_delay_budget;
|
||||
alternative_qos_profile_local_var->packet_err_rate = packet_err_rate;
|
||||
|
||||
|
@ -66,7 +68,7 @@ cJSON *OpenAPI_alternative_qos_profile_convertToJSON(OpenAPI_alternative_qos_pro
|
|||
}
|
||||
}
|
||||
|
||||
if (alternative_qos_profile->packet_delay_budget) {
|
||||
if (alternative_qos_profile->is_packet_delay_budget) {
|
||||
if (cJSON_AddNumberToObject(item, "packetDelayBudget", alternative_qos_profile->packet_delay_budget) == NULL) {
|
||||
ogs_error("OpenAPI_alternative_qos_profile_convertToJSON() failed [packet_delay_budget]");
|
||||
goto end;
|
||||
|
@ -93,7 +95,6 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_parseFromJSON
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(index)) {
|
||||
ogs_error("OpenAPI_alternative_qos_profile_parseFromJSON() failed [index]");
|
||||
goto end;
|
||||
|
@ -101,7 +102,7 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_parseFromJSON
|
|||
|
||||
cJSON *gua_fbr_dl = cJSON_GetObjectItemCaseSensitive(alternative_qos_profileJSON, "guaFbrDl");
|
||||
|
||||
if (gua_fbr_dl) {
|
||||
if (gua_fbr_dl) {
|
||||
if (!cJSON_IsString(gua_fbr_dl)) {
|
||||
ogs_error("OpenAPI_alternative_qos_profile_parseFromJSON() failed [gua_fbr_dl]");
|
||||
goto end;
|
||||
|
@ -110,7 +111,7 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_parseFromJSON
|
|||
|
||||
cJSON *gua_fbr_ul = cJSON_GetObjectItemCaseSensitive(alternative_qos_profileJSON, "guaFbrUl");
|
||||
|
||||
if (gua_fbr_ul) {
|
||||
if (gua_fbr_ul) {
|
||||
if (!cJSON_IsString(gua_fbr_ul)) {
|
||||
ogs_error("OpenAPI_alternative_qos_profile_parseFromJSON() failed [gua_fbr_ul]");
|
||||
goto end;
|
||||
|
@ -119,7 +120,7 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_parseFromJSON
|
|||
|
||||
cJSON *packet_delay_budget = cJSON_GetObjectItemCaseSensitive(alternative_qos_profileJSON, "packetDelayBudget");
|
||||
|
||||
if (packet_delay_budget) {
|
||||
if (packet_delay_budget) {
|
||||
if (!cJSON_IsNumber(packet_delay_budget)) {
|
||||
ogs_error("OpenAPI_alternative_qos_profile_parseFromJSON() failed [packet_delay_budget]");
|
||||
goto end;
|
||||
|
@ -128,7 +129,7 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_parseFromJSON
|
|||
|
||||
cJSON *packet_err_rate = cJSON_GetObjectItemCaseSensitive(alternative_qos_profileJSON, "packetErrRate");
|
||||
|
||||
if (packet_err_rate) {
|
||||
if (packet_err_rate) {
|
||||
if (!cJSON_IsString(packet_err_rate)) {
|
||||
ogs_error("OpenAPI_alternative_qos_profile_parseFromJSON() failed [packet_err_rate]");
|
||||
goto end;
|
||||
|
@ -136,9 +137,11 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_parseFromJSON
|
|||
}
|
||||
|
||||
alternative_qos_profile_local_var = OpenAPI_alternative_qos_profile_create (
|
||||
|
||||
index->valuedouble,
|
||||
gua_fbr_dl ? ogs_strdup_or_assert(gua_fbr_dl->valuestring) : NULL,
|
||||
gua_fbr_ul ? ogs_strdup_or_assert(gua_fbr_ul->valuestring) : NULL,
|
||||
packet_delay_budget ? true : false,
|
||||
packet_delay_budget ? packet_delay_budget->valuedouble : 0,
|
||||
packet_err_rate ? ogs_strdup_or_assert(packet_err_rate->valuestring) : NULL
|
||||
);
|
||||
|
|
|
@ -22,6 +22,7 @@ typedef struct OpenAPI_alternative_qos_profile_s {
|
|||
int index;
|
||||
char *gua_fbr_dl;
|
||||
char *gua_fbr_ul;
|
||||
bool is_packet_delay_budget;
|
||||
int packet_delay_budget;
|
||||
char *packet_err_rate;
|
||||
} OpenAPI_alternative_qos_profile_t;
|
||||
|
@ -30,6 +31,7 @@ OpenAPI_alternative_qos_profile_t *OpenAPI_alternative_qos_profile_create(
|
|||
int index,
|
||||
char *gua_fbr_dl,
|
||||
char *gua_fbr_ul,
|
||||
bool is_packet_delay_budget,
|
||||
int packet_delay_budget,
|
||||
char *packet_err_rate
|
||||
);
|
||||
|
|
|
@ -95,7 +95,7 @@ OpenAPI_am_policy_data_t *OpenAPI_am_policy_data_parseFromJSON(cJSON *am_policy_
|
|||
cJSON *pra_infos = cJSON_GetObjectItemCaseSensitive(am_policy_dataJSON, "praInfos");
|
||||
|
||||
OpenAPI_list_t *pra_infosList;
|
||||
if (pra_infos) {
|
||||
if (pra_infos) {
|
||||
cJSON *pra_infos_local_map;
|
||||
if (!cJSON_IsObject(pra_infos)) {
|
||||
ogs_error("OpenAPI_am_policy_data_parseFromJSON() failed [pra_infos]");
|
||||
|
@ -118,7 +118,7 @@ OpenAPI_am_policy_data_t *OpenAPI_am_policy_data_parseFromJSON(cJSON *am_policy_
|
|||
cJSON *subsc_cats = cJSON_GetObjectItemCaseSensitive(am_policy_dataJSON, "subscCats");
|
||||
|
||||
OpenAPI_list_t *subsc_catsList;
|
||||
if (subsc_cats) {
|
||||
if (subsc_cats) {
|
||||
cJSON *subsc_cats_local;
|
||||
if (!cJSON_IsArray(subsc_cats)) {
|
||||
ogs_error("OpenAPI_am_policy_data_parseFromJSON() failed [subsc_cats]");
|
||||
|
@ -132,7 +132,7 @@ OpenAPI_am_policy_data_t *OpenAPI_am_policy_data_parseFromJSON(cJSON *am_policy_
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(subsc_catsList , ogs_strdup_or_assert(subsc_cats_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
am_policy_data_local_var = OpenAPI_am_policy_data_create (
|
||||
|
|
|
@ -63,7 +63,6 @@ OpenAPI_ambr_t *OpenAPI_ambr_parseFromJSON(cJSON *ambrJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(uplink)) {
|
||||
ogs_error("OpenAPI_ambr_parseFromJSON() failed [uplink]");
|
||||
goto end;
|
||||
|
@ -75,7 +74,6 @@ OpenAPI_ambr_t *OpenAPI_ambr_parseFromJSON(cJSON *ambrJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(downlink)) {
|
||||
ogs_error("OpenAPI_ambr_parseFromJSON() failed [downlink]");
|
||||
goto end;
|
||||
|
|
|
@ -63,7 +63,6 @@ OpenAPI_ambr_1_t *OpenAPI_ambr_1_parseFromJSON(cJSON *ambr_1JSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(uplink)) {
|
||||
ogs_error("OpenAPI_ambr_1_parseFromJSON() failed [uplink]");
|
||||
goto end;
|
||||
|
@ -75,7 +74,6 @@ OpenAPI_ambr_1_t *OpenAPI_ambr_1_parseFromJSON(cJSON *ambr_1JSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(downlink)) {
|
||||
ogs_error("OpenAPI_ambr_1_parseFromJSON() failed [downlink]");
|
||||
goto end;
|
||||
|
|
|
@ -63,7 +63,6 @@ OpenAPI_ambr_rm_t *OpenAPI_ambr_rm_parseFromJSON(cJSON *ambr_rmJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(uplink)) {
|
||||
ogs_error("OpenAPI_ambr_rm_parseFromJSON() failed [uplink]");
|
||||
goto end;
|
||||
|
@ -75,7 +74,6 @@ OpenAPI_ambr_rm_t *OpenAPI_ambr_rm_parseFromJSON(cJSON *ambr_rmJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(downlink)) {
|
||||
ogs_error("OpenAPI_ambr_rm_parseFromJSON() failed [downlink]");
|
||||
goto end;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_create(
|
||||
char *amf_instance_id,
|
||||
char *supported_features,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
|
@ -14,18 +15,23 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_cre
|
|||
char *amf_service_name_dereg,
|
||||
char *pcscf_restoration_callback_uri,
|
||||
char *amf_service_name_pcscf_rest,
|
||||
bool is_initial_registration_ind,
|
||||
int initial_registration_ind,
|
||||
OpenAPI_guami_t *guami,
|
||||
OpenAPI_list_t *backup_amf_info,
|
||||
bool is_dr_flag,
|
||||
int dr_flag,
|
||||
OpenAPI_rat_type_e rat_type,
|
||||
bool is_urrp_indicator,
|
||||
int urrp_indicator,
|
||||
char *amf_ee_subscription_id,
|
||||
OpenAPI_eps_interworking_info_t *eps_interworking_info,
|
||||
bool is_ue_srvcc_capability,
|
||||
int ue_srvcc_capability,
|
||||
char *registration_time,
|
||||
OpenAPI_vgmlc_address_t *vgmlc_address,
|
||||
OpenAPI_context_info_t *context_info,
|
||||
bool is_no_ee_subscription_ind,
|
||||
int no_ee_subscription_ind,
|
||||
char *supi
|
||||
)
|
||||
|
@ -36,6 +42,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_cre
|
|||
}
|
||||
amf3_gpp_access_registration_local_var->amf_instance_id = amf_instance_id;
|
||||
amf3_gpp_access_registration_local_var->supported_features = supported_features;
|
||||
amf3_gpp_access_registration_local_var->is_purge_flag = is_purge_flag;
|
||||
amf3_gpp_access_registration_local_var->purge_flag = purge_flag;
|
||||
amf3_gpp_access_registration_local_var->pei = pei;
|
||||
amf3_gpp_access_registration_local_var->ims_vo_ps = ims_vo_ps;
|
||||
|
@ -43,18 +50,23 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_cre
|
|||
amf3_gpp_access_registration_local_var->amf_service_name_dereg = amf_service_name_dereg;
|
||||
amf3_gpp_access_registration_local_var->pcscf_restoration_callback_uri = pcscf_restoration_callback_uri;
|
||||
amf3_gpp_access_registration_local_var->amf_service_name_pcscf_rest = amf_service_name_pcscf_rest;
|
||||
amf3_gpp_access_registration_local_var->is_initial_registration_ind = is_initial_registration_ind;
|
||||
amf3_gpp_access_registration_local_var->initial_registration_ind = initial_registration_ind;
|
||||
amf3_gpp_access_registration_local_var->guami = guami;
|
||||
amf3_gpp_access_registration_local_var->backup_amf_info = backup_amf_info;
|
||||
amf3_gpp_access_registration_local_var->is_dr_flag = is_dr_flag;
|
||||
amf3_gpp_access_registration_local_var->dr_flag = dr_flag;
|
||||
amf3_gpp_access_registration_local_var->rat_type = rat_type;
|
||||
amf3_gpp_access_registration_local_var->is_urrp_indicator = is_urrp_indicator;
|
||||
amf3_gpp_access_registration_local_var->urrp_indicator = urrp_indicator;
|
||||
amf3_gpp_access_registration_local_var->amf_ee_subscription_id = amf_ee_subscription_id;
|
||||
amf3_gpp_access_registration_local_var->eps_interworking_info = eps_interworking_info;
|
||||
amf3_gpp_access_registration_local_var->is_ue_srvcc_capability = is_ue_srvcc_capability;
|
||||
amf3_gpp_access_registration_local_var->ue_srvcc_capability = ue_srvcc_capability;
|
||||
amf3_gpp_access_registration_local_var->registration_time = registration_time;
|
||||
amf3_gpp_access_registration_local_var->vgmlc_address = vgmlc_address;
|
||||
amf3_gpp_access_registration_local_var->context_info = context_info;
|
||||
amf3_gpp_access_registration_local_var->is_no_ee_subscription_ind = is_no_ee_subscription_ind;
|
||||
amf3_gpp_access_registration_local_var->no_ee_subscription_ind = no_ee_subscription_ind;
|
||||
amf3_gpp_access_registration_local_var->supi = supi;
|
||||
|
||||
|
@ -110,7 +122,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_convertToJSON(OpenAPI_amf3_gpp_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration->purge_flag) {
|
||||
if (amf3_gpp_access_registration->is_purge_flag) {
|
||||
if (cJSON_AddBoolToObject(item, "purgeFlag", amf3_gpp_access_registration->purge_flag) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_convertToJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -157,7 +169,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_convertToJSON(OpenAPI_amf3_gpp_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration->initial_registration_ind) {
|
||||
if (amf3_gpp_access_registration->is_initial_registration_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "initialRegistrationInd", amf3_gpp_access_registration->initial_registration_ind) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_convertToJSON() failed [initial_registration_ind]");
|
||||
goto end;
|
||||
|
@ -195,7 +207,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_convertToJSON(OpenAPI_amf3_gpp_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration->dr_flag) {
|
||||
if (amf3_gpp_access_registration->is_dr_flag) {
|
||||
if (cJSON_AddBoolToObject(item, "drFlag", amf3_gpp_access_registration->dr_flag) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_convertToJSON() failed [dr_flag]");
|
||||
goto end;
|
||||
|
@ -207,7 +219,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_convertToJSON(OpenAPI_amf3_gpp_acces
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration->urrp_indicator) {
|
||||
if (amf3_gpp_access_registration->is_urrp_indicator) {
|
||||
if (cJSON_AddBoolToObject(item, "urrpIndicator", amf3_gpp_access_registration->urrp_indicator) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_convertToJSON() failed [urrp_indicator]");
|
||||
goto end;
|
||||
|
@ -234,7 +246,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_convertToJSON(OpenAPI_amf3_gpp_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration->ue_srvcc_capability) {
|
||||
if (amf3_gpp_access_registration->is_ue_srvcc_capability) {
|
||||
if (cJSON_AddBoolToObject(item, "ueSrvccCapability", amf3_gpp_access_registration->ue_srvcc_capability) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_convertToJSON() failed [ue_srvcc_capability]");
|
||||
goto end;
|
||||
|
@ -274,7 +286,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_convertToJSON(OpenAPI_amf3_gpp_acces
|
|||
}
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration->no_ee_subscription_ind) {
|
||||
if (amf3_gpp_access_registration->is_no_ee_subscription_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "noEeSubscriptionInd", amf3_gpp_access_registration->no_ee_subscription_ind) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_convertToJSON() failed [no_ee_subscription_ind]");
|
||||
goto end;
|
||||
|
@ -301,7 +313,6 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(amf_instance_id)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [amf_instance_id]");
|
||||
goto end;
|
||||
|
@ -309,7 +320,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
@ -318,7 +329,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *purge_flag = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "purgeFlag");
|
||||
|
||||
if (purge_flag) {
|
||||
if (purge_flag) {
|
||||
if (!cJSON_IsBool(purge_flag)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -327,7 +338,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
@ -337,7 +348,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
cJSON *ims_vo_ps = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "imsVoPs");
|
||||
|
||||
OpenAPI_ims_vo_ps_e ims_vo_psVariable;
|
||||
if (ims_vo_ps) {
|
||||
if (ims_vo_ps) {
|
||||
if (!cJSON_IsString(ims_vo_ps)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [ims_vo_ps]");
|
||||
goto end;
|
||||
|
@ -351,7 +362,6 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(dereg_callback_uri)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [dereg_callback_uri]");
|
||||
goto end;
|
||||
|
@ -359,7 +369,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *amf_service_name_dereg = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "amfServiceNameDereg");
|
||||
|
||||
if (amf_service_name_dereg) {
|
||||
if (amf_service_name_dereg) {
|
||||
if (!cJSON_IsString(amf_service_name_dereg)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [amf_service_name_dereg]");
|
||||
goto end;
|
||||
|
@ -368,7 +378,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *pcscf_restoration_callback_uri = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "pcscfRestorationCallbackUri");
|
||||
|
||||
if (pcscf_restoration_callback_uri) {
|
||||
if (pcscf_restoration_callback_uri) {
|
||||
if (!cJSON_IsString(pcscf_restoration_callback_uri)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [pcscf_restoration_callback_uri]");
|
||||
goto end;
|
||||
|
@ -377,7 +387,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *amf_service_name_pcscf_rest = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "amfServiceNamePcscfRest");
|
||||
|
||||
if (amf_service_name_pcscf_rest) {
|
||||
if (amf_service_name_pcscf_rest) {
|
||||
if (!cJSON_IsString(amf_service_name_pcscf_rest)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [amf_service_name_pcscf_rest]");
|
||||
goto end;
|
||||
|
@ -386,7 +396,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *initial_registration_ind = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "initialRegistrationInd");
|
||||
|
||||
if (initial_registration_ind) {
|
||||
if (initial_registration_ind) {
|
||||
if (!cJSON_IsBool(initial_registration_ind)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [initial_registration_ind]");
|
||||
goto end;
|
||||
|
@ -400,13 +410,12 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
}
|
||||
|
||||
OpenAPI_guami_t *guami_local_nonprim = NULL;
|
||||
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
|
||||
cJSON *backup_amf_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "backupAmfInfo");
|
||||
|
||||
OpenAPI_list_t *backup_amf_infoList;
|
||||
if (backup_amf_info) {
|
||||
if (backup_amf_info) {
|
||||
cJSON *backup_amf_info_local_nonprimitive;
|
||||
if (!cJSON_IsArray(backup_amf_info)){
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [backup_amf_info]");
|
||||
|
@ -428,7 +437,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *dr_flag = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "drFlag");
|
||||
|
||||
if (dr_flag) {
|
||||
if (dr_flag) {
|
||||
if (!cJSON_IsBool(dr_flag)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [dr_flag]");
|
||||
goto end;
|
||||
|
@ -442,7 +451,6 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
}
|
||||
|
||||
OpenAPI_rat_type_e rat_typeVariable;
|
||||
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
|
@ -451,7 +459,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *urrp_indicator = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "urrpIndicator");
|
||||
|
||||
if (urrp_indicator) {
|
||||
if (urrp_indicator) {
|
||||
if (!cJSON_IsBool(urrp_indicator)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [urrp_indicator]");
|
||||
goto end;
|
||||
|
@ -460,7 +468,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *amf_ee_subscription_id = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "amfEeSubscriptionId");
|
||||
|
||||
if (amf_ee_subscription_id) {
|
||||
if (amf_ee_subscription_id) {
|
||||
if (!cJSON_IsString(amf_ee_subscription_id)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [amf_ee_subscription_id]");
|
||||
goto end;
|
||||
|
@ -470,13 +478,13 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
cJSON *eps_interworking_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "epsInterworkingInfo");
|
||||
|
||||
OpenAPI_eps_interworking_info_t *eps_interworking_info_local_nonprim = NULL;
|
||||
if (eps_interworking_info) {
|
||||
if (eps_interworking_info) {
|
||||
eps_interworking_info_local_nonprim = OpenAPI_eps_interworking_info_parseFromJSON(eps_interworking_info);
|
||||
}
|
||||
|
||||
cJSON *ue_srvcc_capability = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "ueSrvccCapability");
|
||||
|
||||
if (ue_srvcc_capability) {
|
||||
if (ue_srvcc_capability) {
|
||||
if (!cJSON_IsBool(ue_srvcc_capability)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [ue_srvcc_capability]");
|
||||
goto end;
|
||||
|
@ -485,7 +493,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *registration_time = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "registrationTime");
|
||||
|
||||
if (registration_time) {
|
||||
if (registration_time) {
|
||||
if (!cJSON_IsString(registration_time)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [registration_time]");
|
||||
goto end;
|
||||
|
@ -495,20 +503,20 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
cJSON *vgmlc_address = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "vgmlcAddress");
|
||||
|
||||
OpenAPI_vgmlc_address_t *vgmlc_address_local_nonprim = NULL;
|
||||
if (vgmlc_address) {
|
||||
if (vgmlc_address) {
|
||||
vgmlc_address_local_nonprim = OpenAPI_vgmlc_address_parseFromJSON(vgmlc_address);
|
||||
}
|
||||
|
||||
cJSON *context_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "contextInfo");
|
||||
|
||||
OpenAPI_context_info_t *context_info_local_nonprim = NULL;
|
||||
if (context_info) {
|
||||
if (context_info) {
|
||||
context_info_local_nonprim = OpenAPI_context_info_parseFromJSON(context_info);
|
||||
}
|
||||
|
||||
cJSON *no_ee_subscription_ind = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "noEeSubscriptionInd");
|
||||
|
||||
if (no_ee_subscription_ind) {
|
||||
if (no_ee_subscription_ind) {
|
||||
if (!cJSON_IsBool(no_ee_subscription_ind)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [no_ee_subscription_ind]");
|
||||
goto end;
|
||||
|
@ -517,7 +525,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registrationJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
@ -527,6 +535,7 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
amf3_gpp_access_registration_local_var = OpenAPI_amf3_gpp_access_registration_create (
|
||||
ogs_strdup_or_assert(amf_instance_id->valuestring),
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
|
||||
purge_flag ? true : false,
|
||||
purge_flag ? purge_flag->valueint : 0,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
ims_vo_ps ? ims_vo_psVariable : 0,
|
||||
|
@ -534,18 +543,23 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_par
|
|||
amf_service_name_dereg ? ogs_strdup_or_assert(amf_service_name_dereg->valuestring) : NULL,
|
||||
pcscf_restoration_callback_uri ? ogs_strdup_or_assert(pcscf_restoration_callback_uri->valuestring) : NULL,
|
||||
amf_service_name_pcscf_rest ? ogs_strdup_or_assert(amf_service_name_pcscf_rest->valuestring) : NULL,
|
||||
initial_registration_ind ? true : false,
|
||||
initial_registration_ind ? initial_registration_ind->valueint : 0,
|
||||
guami_local_nonprim,
|
||||
backup_amf_info ? backup_amf_infoList : NULL,
|
||||
dr_flag ? true : false,
|
||||
dr_flag ? dr_flag->valueint : 0,
|
||||
rat_typeVariable,
|
||||
urrp_indicator ? true : false,
|
||||
urrp_indicator ? urrp_indicator->valueint : 0,
|
||||
amf_ee_subscription_id ? ogs_strdup_or_assert(amf_ee_subscription_id->valuestring) : NULL,
|
||||
eps_interworking_info ? eps_interworking_info_local_nonprim : NULL,
|
||||
ue_srvcc_capability ? true : false,
|
||||
ue_srvcc_capability ? ue_srvcc_capability->valueint : 0,
|
||||
registration_time ? ogs_strdup_or_assert(registration_time->valuestring) : NULL,
|
||||
vgmlc_address ? vgmlc_address_local_nonprim : NULL,
|
||||
context_info ? context_info_local_nonprim : NULL,
|
||||
no_ee_subscription_ind ? true : false,
|
||||
no_ee_subscription_ind ? no_ee_subscription_ind->valueint : 0,
|
||||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL
|
||||
);
|
||||
|
|
|
@ -28,6 +28,7 @@ typedef struct OpenAPI_amf3_gpp_access_registration_s OpenAPI_amf3_gpp_access_re
|
|||
typedef struct OpenAPI_amf3_gpp_access_registration_s {
|
||||
char *amf_instance_id;
|
||||
char *supported_features;
|
||||
bool is_purge_flag;
|
||||
int purge_flag;
|
||||
char *pei;
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps;
|
||||
|
@ -35,18 +36,23 @@ typedef struct OpenAPI_amf3_gpp_access_registration_s {
|
|||
char *amf_service_name_dereg;
|
||||
char *pcscf_restoration_callback_uri;
|
||||
char *amf_service_name_pcscf_rest;
|
||||
bool is_initial_registration_ind;
|
||||
int initial_registration_ind;
|
||||
struct OpenAPI_guami_s *guami;
|
||||
OpenAPI_list_t *backup_amf_info;
|
||||
bool is_dr_flag;
|
||||
int dr_flag;
|
||||
OpenAPI_rat_type_e rat_type;
|
||||
bool is_urrp_indicator;
|
||||
int urrp_indicator;
|
||||
char *amf_ee_subscription_id;
|
||||
struct OpenAPI_eps_interworking_info_s *eps_interworking_info;
|
||||
bool is_ue_srvcc_capability;
|
||||
int ue_srvcc_capability;
|
||||
char *registration_time;
|
||||
struct OpenAPI_vgmlc_address_s *vgmlc_address;
|
||||
struct OpenAPI_context_info_s *context_info;
|
||||
bool is_no_ee_subscription_ind;
|
||||
int no_ee_subscription_ind;
|
||||
char *supi;
|
||||
} OpenAPI_amf3_gpp_access_registration_t;
|
||||
|
@ -54,6 +60,7 @@ typedef struct OpenAPI_amf3_gpp_access_registration_s {
|
|||
OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_create(
|
||||
char *amf_instance_id,
|
||||
char *supported_features,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
|
@ -61,18 +68,23 @@ OpenAPI_amf3_gpp_access_registration_t *OpenAPI_amf3_gpp_access_registration_cre
|
|||
char *amf_service_name_dereg,
|
||||
char *pcscf_restoration_callback_uri,
|
||||
char *amf_service_name_pcscf_rest,
|
||||
bool is_initial_registration_ind,
|
||||
int initial_registration_ind,
|
||||
OpenAPI_guami_t *guami,
|
||||
OpenAPI_list_t *backup_amf_info,
|
||||
bool is_dr_flag,
|
||||
int dr_flag,
|
||||
OpenAPI_rat_type_e rat_type,
|
||||
bool is_urrp_indicator,
|
||||
int urrp_indicator,
|
||||
char *amf_ee_subscription_id,
|
||||
OpenAPI_eps_interworking_info_t *eps_interworking_info,
|
||||
bool is_ue_srvcc_capability,
|
||||
int ue_srvcc_capability,
|
||||
char *registration_time,
|
||||
OpenAPI_vgmlc_address_t *vgmlc_address,
|
||||
OpenAPI_context_info_t *context_info,
|
||||
bool is_no_ee_subscription_ind,
|
||||
int no_ee_subscription_ind,
|
||||
char *supi
|
||||
);
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
|
||||
OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_registration_modification_create(
|
||||
OpenAPI_guami_t *guami,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
OpenAPI_list_t *backup_amf_info,
|
||||
OpenAPI_eps_interworking_info_t *eps_interworking_info,
|
||||
bool is_ue_srvcc_capability,
|
||||
int ue_srvcc_capability
|
||||
)
|
||||
{
|
||||
|
@ -19,11 +21,13 @@ OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_reg
|
|||
return NULL;
|
||||
}
|
||||
amf3_gpp_access_registration_modification_local_var->guami = guami;
|
||||
amf3_gpp_access_registration_modification_local_var->is_purge_flag = is_purge_flag;
|
||||
amf3_gpp_access_registration_modification_local_var->purge_flag = purge_flag;
|
||||
amf3_gpp_access_registration_modification_local_var->pei = pei;
|
||||
amf3_gpp_access_registration_modification_local_var->ims_vo_ps = ims_vo_ps;
|
||||
amf3_gpp_access_registration_modification_local_var->backup_amf_info = backup_amf_info;
|
||||
amf3_gpp_access_registration_modification_local_var->eps_interworking_info = eps_interworking_info;
|
||||
amf3_gpp_access_registration_modification_local_var->is_ue_srvcc_capability = is_ue_srvcc_capability;
|
||||
amf3_gpp_access_registration_modification_local_var->ue_srvcc_capability = ue_srvcc_capability;
|
||||
|
||||
return amf3_gpp_access_registration_modification_local_var;
|
||||
|
@ -66,7 +70,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_modification_convertToJSON(OpenAPI_a
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration_modification->purge_flag) {
|
||||
if (amf3_gpp_access_registration_modification->is_purge_flag) {
|
||||
if (cJSON_AddBoolToObject(item, "purgeFlag", amf3_gpp_access_registration_modification->purge_flag) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_modification_convertToJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -120,7 +124,7 @@ cJSON *OpenAPI_amf3_gpp_access_registration_modification_convertToJSON(OpenAPI_a
|
|||
}
|
||||
}
|
||||
|
||||
if (amf3_gpp_access_registration_modification->ue_srvcc_capability) {
|
||||
if (amf3_gpp_access_registration_modification->is_ue_srvcc_capability) {
|
||||
if (cJSON_AddBoolToObject(item, "ueSrvccCapability", amf3_gpp_access_registration_modification->ue_srvcc_capability) == NULL) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_modification_convertToJSON() failed [ue_srvcc_capability]");
|
||||
goto end;
|
||||
|
@ -141,12 +145,11 @@ OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_reg
|
|||
}
|
||||
|
||||
OpenAPI_guami_t *guami_local_nonprim = NULL;
|
||||
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
|
||||
cJSON *purge_flag = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "purgeFlag");
|
||||
|
||||
if (purge_flag) {
|
||||
if (purge_flag) {
|
||||
if (!cJSON_IsBool(purge_flag)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_modification_parseFromJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -155,7 +158,7 @@ OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_reg
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_modification_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
@ -165,7 +168,7 @@ OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_reg
|
|||
cJSON *ims_vo_ps = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "imsVoPs");
|
||||
|
||||
OpenAPI_ims_vo_ps_e ims_vo_psVariable;
|
||||
if (ims_vo_ps) {
|
||||
if (ims_vo_ps) {
|
||||
if (!cJSON_IsString(ims_vo_ps)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_modification_parseFromJSON() failed [ims_vo_ps]");
|
||||
goto end;
|
||||
|
@ -176,7 +179,7 @@ OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_reg
|
|||
cJSON *backup_amf_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "backupAmfInfo");
|
||||
|
||||
OpenAPI_list_t *backup_amf_infoList;
|
||||
if (backup_amf_info) {
|
||||
if (backup_amf_info) {
|
||||
cJSON *backup_amf_info_local_nonprimitive;
|
||||
if (!cJSON_IsArray(backup_amf_info)){
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_modification_parseFromJSON() failed [backup_amf_info]");
|
||||
|
@ -199,13 +202,13 @@ OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_reg
|
|||
cJSON *eps_interworking_info = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "epsInterworkingInfo");
|
||||
|
||||
OpenAPI_eps_interworking_info_t *eps_interworking_info_local_nonprim = NULL;
|
||||
if (eps_interworking_info) {
|
||||
if (eps_interworking_info) {
|
||||
eps_interworking_info_local_nonprim = OpenAPI_eps_interworking_info_parseFromJSON(eps_interworking_info);
|
||||
}
|
||||
|
||||
cJSON *ue_srvcc_capability = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "ueSrvccCapability");
|
||||
|
||||
if (ue_srvcc_capability) {
|
||||
if (ue_srvcc_capability) {
|
||||
if (!cJSON_IsBool(ue_srvcc_capability)) {
|
||||
ogs_error("OpenAPI_amf3_gpp_access_registration_modification_parseFromJSON() failed [ue_srvcc_capability]");
|
||||
goto end;
|
||||
|
@ -214,11 +217,13 @@ OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_reg
|
|||
|
||||
amf3_gpp_access_registration_modification_local_var = OpenAPI_amf3_gpp_access_registration_modification_create (
|
||||
guami_local_nonprim,
|
||||
purge_flag ? true : false,
|
||||
purge_flag ? purge_flag->valueint : 0,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
ims_vo_ps ? ims_vo_psVariable : 0,
|
||||
backup_amf_info ? backup_amf_infoList : NULL,
|
||||
eps_interworking_info ? eps_interworking_info_local_nonprim : NULL,
|
||||
ue_srvcc_capability ? true : false,
|
||||
ue_srvcc_capability ? ue_srvcc_capability->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -24,21 +24,25 @@ extern "C" {
|
|||
typedef struct OpenAPI_amf3_gpp_access_registration_modification_s OpenAPI_amf3_gpp_access_registration_modification_t;
|
||||
typedef struct OpenAPI_amf3_gpp_access_registration_modification_s {
|
||||
struct OpenAPI_guami_s *guami;
|
||||
bool is_purge_flag;
|
||||
int purge_flag;
|
||||
char *pei;
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps;
|
||||
OpenAPI_list_t *backup_amf_info;
|
||||
struct OpenAPI_eps_interworking_info_s *eps_interworking_info;
|
||||
bool is_ue_srvcc_capability;
|
||||
int ue_srvcc_capability;
|
||||
} OpenAPI_amf3_gpp_access_registration_modification_t;
|
||||
|
||||
OpenAPI_amf3_gpp_access_registration_modification_t *OpenAPI_amf3_gpp_access_registration_modification_create(
|
||||
OpenAPI_guami_t *guami,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
OpenAPI_list_t *backup_amf_info,
|
||||
OpenAPI_eps_interworking_info_t *eps_interworking_info,
|
||||
bool is_ue_srvcc_capability,
|
||||
int ue_srvcc_capability
|
||||
);
|
||||
void OpenAPI_amf3_gpp_access_registration_modification_free(OpenAPI_amf3_gpp_access_registration_modification_t *amf3_gpp_access_registration_modification);
|
||||
|
|
|
@ -63,7 +63,7 @@ OpenAPI_amf_cond_t *OpenAPI_amf_cond_parseFromJSON(cJSON *amf_condJSON)
|
|||
OpenAPI_amf_cond_t *amf_cond_local_var = NULL;
|
||||
cJSON *amf_set_id = cJSON_GetObjectItemCaseSensitive(amf_condJSON, "amfSetId");
|
||||
|
||||
if (amf_set_id) {
|
||||
if (amf_set_id) {
|
||||
if (!cJSON_IsString(amf_set_id)) {
|
||||
ogs_error("OpenAPI_amf_cond_parseFromJSON() failed [amf_set_id]");
|
||||
goto end;
|
||||
|
@ -72,7 +72,7 @@ OpenAPI_amf_cond_t *OpenAPI_amf_cond_parseFromJSON(cJSON *amf_condJSON)
|
|||
|
||||
cJSON *amf_region_id = cJSON_GetObjectItemCaseSensitive(amf_condJSON, "amfRegionId");
|
||||
|
||||
if (amf_region_id) {
|
||||
if (amf_region_id) {
|
||||
if (!cJSON_IsString(amf_region_id)) {
|
||||
ogs_error("OpenAPI_amf_cond_parseFromJSON() failed [amf_region_id]");
|
||||
goto end;
|
||||
|
|
|
@ -55,7 +55,6 @@ OpenAPI_amf_dereg_info_t *OpenAPI_amf_dereg_info_parseFromJSON(cJSON *amf_dereg_
|
|||
}
|
||||
|
||||
OpenAPI_deregistration_reason_e dereg_reasonVariable;
|
||||
|
||||
if (!cJSON_IsString(dereg_reason)) {
|
||||
ogs_error("OpenAPI_amf_dereg_info_parseFromJSON() failed [dereg_reason]");
|
||||
goto end;
|
||||
|
|
|
@ -6,14 +6,19 @@
|
|||
|
||||
OpenAPI_amf_event_t *OpenAPI_amf_event_create(
|
||||
OpenAPI_amf_event_type_t *type,
|
||||
bool is_immediate_flag,
|
||||
int immediate_flag,
|
||||
OpenAPI_list_t *area_list,
|
||||
OpenAPI_list_t *location_filter_list,
|
||||
bool is_ref_id,
|
||||
int ref_id,
|
||||
OpenAPI_list_t *traffic_descriptor_list,
|
||||
bool is_report_ue_reachable,
|
||||
int report_ue_reachable,
|
||||
OpenAPI_reachability_filter_t *reachability_filter,
|
||||
bool is_max_reports,
|
||||
int max_reports,
|
||||
bool is_max_response_time,
|
||||
int max_response_time
|
||||
)
|
||||
{
|
||||
|
@ -22,14 +27,19 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_create(
|
|||
return NULL;
|
||||
}
|
||||
amf_event_local_var->type = type;
|
||||
amf_event_local_var->is_immediate_flag = is_immediate_flag;
|
||||
amf_event_local_var->immediate_flag = immediate_flag;
|
||||
amf_event_local_var->area_list = area_list;
|
||||
amf_event_local_var->location_filter_list = location_filter_list;
|
||||
amf_event_local_var->is_ref_id = is_ref_id;
|
||||
amf_event_local_var->ref_id = ref_id;
|
||||
amf_event_local_var->traffic_descriptor_list = traffic_descriptor_list;
|
||||
amf_event_local_var->is_report_ue_reachable = is_report_ue_reachable;
|
||||
amf_event_local_var->report_ue_reachable = report_ue_reachable;
|
||||
amf_event_local_var->reachability_filter = reachability_filter;
|
||||
amf_event_local_var->is_max_reports = is_max_reports;
|
||||
amf_event_local_var->max_reports = max_reports;
|
||||
amf_event_local_var->is_max_response_time = is_max_response_time;
|
||||
amf_event_local_var->max_response_time = max_response_time;
|
||||
|
||||
return amf_event_local_var;
|
||||
|
@ -79,7 +89,7 @@ cJSON *OpenAPI_amf_event_convertToJSON(OpenAPI_amf_event_t *amf_event)
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (amf_event->immediate_flag) {
|
||||
if (amf_event->is_immediate_flag) {
|
||||
if (cJSON_AddBoolToObject(item, "immediateFlag", amf_event->immediate_flag) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_convertToJSON() failed [immediate_flag]");
|
||||
goto end;
|
||||
|
@ -126,7 +136,7 @@ cJSON *OpenAPI_amf_event_convertToJSON(OpenAPI_amf_event_t *amf_event)
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_event->ref_id) {
|
||||
if (amf_event->is_ref_id) {
|
||||
if (cJSON_AddNumberToObject(item, "refId", amf_event->ref_id) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_convertToJSON() failed [ref_id]");
|
||||
goto end;
|
||||
|
@ -153,7 +163,7 @@ cJSON *OpenAPI_amf_event_convertToJSON(OpenAPI_amf_event_t *amf_event)
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_event->report_ue_reachable) {
|
||||
if (amf_event->is_report_ue_reachable) {
|
||||
if (cJSON_AddBoolToObject(item, "reportUeReachable", amf_event->report_ue_reachable) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_convertToJSON() failed [report_ue_reachable]");
|
||||
goto end;
|
||||
|
@ -173,14 +183,14 @@ cJSON *OpenAPI_amf_event_convertToJSON(OpenAPI_amf_event_t *amf_event)
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_event->max_reports) {
|
||||
if (amf_event->is_max_reports) {
|
||||
if (cJSON_AddNumberToObject(item, "maxReports", amf_event->max_reports) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_convertToJSON() failed [max_reports]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (amf_event->max_response_time) {
|
||||
if (amf_event->is_max_response_time) {
|
||||
if (cJSON_AddNumberToObject(item, "maxResponseTime", amf_event->max_response_time) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_convertToJSON() failed [max_response_time]");
|
||||
goto end;
|
||||
|
@ -201,12 +211,11 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
}
|
||||
|
||||
OpenAPI_amf_event_type_t *type_local_nonprim = NULL;
|
||||
|
||||
type_local_nonprim = OpenAPI_amf_event_type_parseFromJSON(type);
|
||||
|
||||
cJSON *immediate_flag = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "immediateFlag");
|
||||
|
||||
if (immediate_flag) {
|
||||
if (immediate_flag) {
|
||||
if (!cJSON_IsBool(immediate_flag)) {
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [immediate_flag]");
|
||||
goto end;
|
||||
|
@ -216,7 +225,7 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
cJSON *area_list = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "areaList");
|
||||
|
||||
OpenAPI_list_t *area_listList;
|
||||
if (area_list) {
|
||||
if (area_list) {
|
||||
cJSON *area_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(area_list)){
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [area_list]");
|
||||
|
@ -239,7 +248,7 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
cJSON *location_filter_list = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "locationFilterList");
|
||||
|
||||
OpenAPI_list_t *location_filter_listList;
|
||||
if (location_filter_list) {
|
||||
if (location_filter_list) {
|
||||
cJSON *location_filter_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(location_filter_list)){
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [location_filter_list]");
|
||||
|
@ -261,7 +270,7 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
|
||||
cJSON *ref_id = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "refId");
|
||||
|
||||
if (ref_id) {
|
||||
if (ref_id) {
|
||||
if (!cJSON_IsNumber(ref_id)) {
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [ref_id]");
|
||||
goto end;
|
||||
|
@ -271,7 +280,7 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
cJSON *traffic_descriptor_list = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "trafficDescriptorList");
|
||||
|
||||
OpenAPI_list_t *traffic_descriptor_listList;
|
||||
if (traffic_descriptor_list) {
|
||||
if (traffic_descriptor_list) {
|
||||
cJSON *traffic_descriptor_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(traffic_descriptor_list)){
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [traffic_descriptor_list]");
|
||||
|
@ -293,7 +302,7 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
|
||||
cJSON *report_ue_reachable = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "reportUeReachable");
|
||||
|
||||
if (report_ue_reachable) {
|
||||
if (report_ue_reachable) {
|
||||
if (!cJSON_IsBool(report_ue_reachable)) {
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [report_ue_reachable]");
|
||||
goto end;
|
||||
|
@ -303,13 +312,13 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
cJSON *reachability_filter = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "reachabilityFilter");
|
||||
|
||||
OpenAPI_reachability_filter_t *reachability_filter_local_nonprim = NULL;
|
||||
if (reachability_filter) {
|
||||
if (reachability_filter) {
|
||||
reachability_filter_local_nonprim = OpenAPI_reachability_filter_parseFromJSON(reachability_filter);
|
||||
}
|
||||
|
||||
cJSON *max_reports = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "maxReports");
|
||||
|
||||
if (max_reports) {
|
||||
if (max_reports) {
|
||||
if (!cJSON_IsNumber(max_reports)) {
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [max_reports]");
|
||||
goto end;
|
||||
|
@ -318,7 +327,7 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
|
||||
cJSON *max_response_time = cJSON_GetObjectItemCaseSensitive(amf_eventJSON, "maxResponseTime");
|
||||
|
||||
if (max_response_time) {
|
||||
if (max_response_time) {
|
||||
if (!cJSON_IsNumber(max_response_time)) {
|
||||
ogs_error("OpenAPI_amf_event_parseFromJSON() failed [max_response_time]");
|
||||
goto end;
|
||||
|
@ -327,14 +336,19 @@ OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON)
|
|||
|
||||
amf_event_local_var = OpenAPI_amf_event_create (
|
||||
type_local_nonprim,
|
||||
immediate_flag ? true : false,
|
||||
immediate_flag ? immediate_flag->valueint : 0,
|
||||
area_list ? area_listList : NULL,
|
||||
location_filter_list ? location_filter_listList : NULL,
|
||||
ref_id ? true : false,
|
||||
ref_id ? ref_id->valuedouble : 0,
|
||||
traffic_descriptor_list ? traffic_descriptor_listList : NULL,
|
||||
report_ue_reachable ? true : false,
|
||||
report_ue_reachable ? report_ue_reachable->valueint : 0,
|
||||
reachability_filter ? reachability_filter_local_nonprim : NULL,
|
||||
max_reports ? true : false,
|
||||
max_reports ? max_reports->valuedouble : 0,
|
||||
max_response_time ? true : false,
|
||||
max_response_time ? max_response_time->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -25,27 +25,37 @@ extern "C" {
|
|||
typedef struct OpenAPI_amf_event_s OpenAPI_amf_event_t;
|
||||
typedef struct OpenAPI_amf_event_s {
|
||||
struct OpenAPI_amf_event_type_s *type;
|
||||
bool is_immediate_flag;
|
||||
int immediate_flag;
|
||||
OpenAPI_list_t *area_list;
|
||||
OpenAPI_list_t *location_filter_list;
|
||||
bool is_ref_id;
|
||||
int ref_id;
|
||||
OpenAPI_list_t *traffic_descriptor_list;
|
||||
bool is_report_ue_reachable;
|
||||
int report_ue_reachable;
|
||||
struct OpenAPI_reachability_filter_s *reachability_filter;
|
||||
bool is_max_reports;
|
||||
int max_reports;
|
||||
bool is_max_response_time;
|
||||
int max_response_time;
|
||||
} OpenAPI_amf_event_t;
|
||||
|
||||
OpenAPI_amf_event_t *OpenAPI_amf_event_create(
|
||||
OpenAPI_amf_event_type_t *type,
|
||||
bool is_immediate_flag,
|
||||
int immediate_flag,
|
||||
OpenAPI_list_t *area_list,
|
||||
OpenAPI_list_t *location_filter_list,
|
||||
bool is_ref_id,
|
||||
int ref_id,
|
||||
OpenAPI_list_t *traffic_descriptor_list,
|
||||
bool is_report_ue_reachable,
|
||||
int report_ue_reachable,
|
||||
OpenAPI_reachability_filter_t *reachability_filter,
|
||||
bool is_max_reports,
|
||||
int max_reports,
|
||||
bool is_max_response_time,
|
||||
int max_response_time
|
||||
);
|
||||
void OpenAPI_amf_event_free(OpenAPI_amf_event_t *amf_event);
|
||||
|
|
|
@ -102,27 +102,27 @@ OpenAPI_amf_event_area_t *OpenAPI_amf_event_area_parseFromJSON(cJSON *amf_event_
|
|||
cJSON *presence_info = cJSON_GetObjectItemCaseSensitive(amf_event_areaJSON, "presenceInfo");
|
||||
|
||||
OpenAPI_presence_info_t *presence_info_local_nonprim = NULL;
|
||||
if (presence_info) {
|
||||
if (presence_info) {
|
||||
presence_info_local_nonprim = OpenAPI_presence_info_parseFromJSON(presence_info);
|
||||
}
|
||||
|
||||
cJSON *ladn_info = cJSON_GetObjectItemCaseSensitive(amf_event_areaJSON, "ladnInfo");
|
||||
|
||||
OpenAPI_ladn_info_t *ladn_info_local_nonprim = NULL;
|
||||
if (ladn_info) {
|
||||
if (ladn_info) {
|
||||
ladn_info_local_nonprim = OpenAPI_ladn_info_parseFromJSON(ladn_info);
|
||||
}
|
||||
|
||||
cJSON *s_nssai = cJSON_GetObjectItemCaseSensitive(amf_event_areaJSON, "sNssai");
|
||||
|
||||
OpenAPI_snssai_t *s_nssai_local_nonprim = NULL;
|
||||
if (s_nssai) {
|
||||
if (s_nssai) {
|
||||
s_nssai_local_nonprim = OpenAPI_snssai_parseFromJSON(s_nssai);
|
||||
}
|
||||
|
||||
cJSON *nsi_id = cJSON_GetObjectItemCaseSensitive(amf_event_areaJSON, "nsiId");
|
||||
|
||||
if (nsi_id) {
|
||||
if (nsi_id) {
|
||||
if (!cJSON_IsString(nsi_id)) {
|
||||
ogs_error("OpenAPI_amf_event_area_parseFromJSON() failed [nsi_id]");
|
||||
goto end;
|
||||
|
|
|
@ -6,9 +6,12 @@
|
|||
|
||||
OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_create(
|
||||
OpenAPI_amf_event_trigger_t *trigger,
|
||||
bool is_max_reports,
|
||||
int max_reports,
|
||||
char *expiry,
|
||||
bool is_rep_period,
|
||||
int rep_period,
|
||||
bool is_samp_ratio,
|
||||
int samp_ratio
|
||||
)
|
||||
{
|
||||
|
@ -17,9 +20,12 @@ OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_create(
|
|||
return NULL;
|
||||
}
|
||||
amf_event_mode_local_var->trigger = trigger;
|
||||
amf_event_mode_local_var->is_max_reports = is_max_reports;
|
||||
amf_event_mode_local_var->max_reports = max_reports;
|
||||
amf_event_mode_local_var->expiry = expiry;
|
||||
amf_event_mode_local_var->is_rep_period = is_rep_period;
|
||||
amf_event_mode_local_var->rep_period = rep_period;
|
||||
amf_event_mode_local_var->is_samp_ratio = is_samp_ratio;
|
||||
amf_event_mode_local_var->samp_ratio = samp_ratio;
|
||||
|
||||
return amf_event_mode_local_var;
|
||||
|
@ -57,7 +63,7 @@ cJSON *OpenAPI_amf_event_mode_convertToJSON(OpenAPI_amf_event_mode_t *amf_event_
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (amf_event_mode->max_reports) {
|
||||
if (amf_event_mode->is_max_reports) {
|
||||
if (cJSON_AddNumberToObject(item, "maxReports", amf_event_mode->max_reports) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_mode_convertToJSON() failed [max_reports]");
|
||||
goto end;
|
||||
|
@ -71,14 +77,14 @@ cJSON *OpenAPI_amf_event_mode_convertToJSON(OpenAPI_amf_event_mode_t *amf_event_
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_event_mode->rep_period) {
|
||||
if (amf_event_mode->is_rep_period) {
|
||||
if (cJSON_AddNumberToObject(item, "repPeriod", amf_event_mode->rep_period) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_mode_convertToJSON() failed [rep_period]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (amf_event_mode->samp_ratio) {
|
||||
if (amf_event_mode->is_samp_ratio) {
|
||||
if (cJSON_AddNumberToObject(item, "sampRatio", amf_event_mode->samp_ratio) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_mode_convertToJSON() failed [samp_ratio]");
|
||||
goto end;
|
||||
|
@ -99,12 +105,11 @@ OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_parseFromJSON(cJSON *amf_event_
|
|||
}
|
||||
|
||||
OpenAPI_amf_event_trigger_t *trigger_local_nonprim = NULL;
|
||||
|
||||
trigger_local_nonprim = OpenAPI_amf_event_trigger_parseFromJSON(trigger);
|
||||
|
||||
cJSON *max_reports = cJSON_GetObjectItemCaseSensitive(amf_event_modeJSON, "maxReports");
|
||||
|
||||
if (max_reports) {
|
||||
if (max_reports) {
|
||||
if (!cJSON_IsNumber(max_reports)) {
|
||||
ogs_error("OpenAPI_amf_event_mode_parseFromJSON() failed [max_reports]");
|
||||
goto end;
|
||||
|
@ -113,7 +118,7 @@ OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_parseFromJSON(cJSON *amf_event_
|
|||
|
||||
cJSON *expiry = cJSON_GetObjectItemCaseSensitive(amf_event_modeJSON, "expiry");
|
||||
|
||||
if (expiry) {
|
||||
if (expiry) {
|
||||
if (!cJSON_IsString(expiry)) {
|
||||
ogs_error("OpenAPI_amf_event_mode_parseFromJSON() failed [expiry]");
|
||||
goto end;
|
||||
|
@ -122,7 +127,7 @@ OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_parseFromJSON(cJSON *amf_event_
|
|||
|
||||
cJSON *rep_period = cJSON_GetObjectItemCaseSensitive(amf_event_modeJSON, "repPeriod");
|
||||
|
||||
if (rep_period) {
|
||||
if (rep_period) {
|
||||
if (!cJSON_IsNumber(rep_period)) {
|
||||
ogs_error("OpenAPI_amf_event_mode_parseFromJSON() failed [rep_period]");
|
||||
goto end;
|
||||
|
@ -131,7 +136,7 @@ OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_parseFromJSON(cJSON *amf_event_
|
|||
|
||||
cJSON *samp_ratio = cJSON_GetObjectItemCaseSensitive(amf_event_modeJSON, "sampRatio");
|
||||
|
||||
if (samp_ratio) {
|
||||
if (samp_ratio) {
|
||||
if (!cJSON_IsNumber(samp_ratio)) {
|
||||
ogs_error("OpenAPI_amf_event_mode_parseFromJSON() failed [samp_ratio]");
|
||||
goto end;
|
||||
|
@ -140,9 +145,12 @@ OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_parseFromJSON(cJSON *amf_event_
|
|||
|
||||
amf_event_mode_local_var = OpenAPI_amf_event_mode_create (
|
||||
trigger_local_nonprim,
|
||||
max_reports ? true : false,
|
||||
max_reports ? max_reports->valuedouble : 0,
|
||||
expiry ? ogs_strdup_or_assert(expiry->valuestring) : NULL,
|
||||
rep_period ? true : false,
|
||||
rep_period ? rep_period->valuedouble : 0,
|
||||
samp_ratio ? true : false,
|
||||
samp_ratio ? samp_ratio->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -21,17 +21,23 @@ extern "C" {
|
|||
typedef struct OpenAPI_amf_event_mode_s OpenAPI_amf_event_mode_t;
|
||||
typedef struct OpenAPI_amf_event_mode_s {
|
||||
struct OpenAPI_amf_event_trigger_s *trigger;
|
||||
bool is_max_reports;
|
||||
int max_reports;
|
||||
char *expiry;
|
||||
bool is_rep_period;
|
||||
int rep_period;
|
||||
bool is_samp_ratio;
|
||||
int samp_ratio;
|
||||
} OpenAPI_amf_event_mode_t;
|
||||
|
||||
OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_create(
|
||||
OpenAPI_amf_event_trigger_t *trigger,
|
||||
bool is_max_reports,
|
||||
int max_reports,
|
||||
char *expiry,
|
||||
bool is_rep_period,
|
||||
int rep_period,
|
||||
bool is_samp_ratio,
|
||||
int samp_ratio
|
||||
);
|
||||
void OpenAPI_amf_event_mode_free(OpenAPI_amf_event_mode_t *amf_event_mode);
|
||||
|
|
|
@ -15,6 +15,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_create(
|
|||
char *group_id,
|
||||
char *gpsi,
|
||||
char *pei,
|
||||
bool is_any_ue,
|
||||
int any_ue,
|
||||
OpenAPI_amf_event_mode_t *options,
|
||||
OpenAPI_nf_type_e source_nf_type
|
||||
|
@ -34,6 +35,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_create(
|
|||
amf_event_subscription_local_var->group_id = group_id;
|
||||
amf_event_subscription_local_var->gpsi = gpsi;
|
||||
amf_event_subscription_local_var->pei = pei;
|
||||
amf_event_subscription_local_var->is_any_ue = is_any_ue;
|
||||
amf_event_subscription_local_var->any_ue = any_ue;
|
||||
amf_event_subscription_local_var->options = options;
|
||||
amf_event_subscription_local_var->source_nf_type = source_nf_type;
|
||||
|
@ -149,7 +151,7 @@ cJSON *OpenAPI_amf_event_subscription_convertToJSON(OpenAPI_amf_event_subscripti
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_event_subscription->any_ue) {
|
||||
if (amf_event_subscription->is_any_ue) {
|
||||
if (cJSON_AddBoolToObject(item, "anyUE", amf_event_subscription->any_ue) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_convertToJSON() failed [any_ue]");
|
||||
goto end;
|
||||
|
@ -190,7 +192,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
}
|
||||
|
||||
OpenAPI_list_t *event_listList;
|
||||
|
||||
cJSON *event_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(event_list)){
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [event_list]");
|
||||
|
@ -215,7 +216,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(event_notify_uri)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [event_notify_uri]");
|
||||
goto end;
|
||||
|
@ -227,7 +227,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(notify_correlation_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [notify_correlation_id]");
|
||||
goto end;
|
||||
|
@ -239,7 +238,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(nf_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [nf_id]");
|
||||
goto end;
|
||||
|
@ -247,7 +245,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *subs_change_notify_uri = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "subsChangeNotifyUri");
|
||||
|
||||
if (subs_change_notify_uri) {
|
||||
if (subs_change_notify_uri) {
|
||||
if (!cJSON_IsString(subs_change_notify_uri)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [subs_change_notify_uri]");
|
||||
goto end;
|
||||
|
@ -256,7 +254,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *subs_change_notify_correlation_id = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "subsChangeNotifyCorrelationId");
|
||||
|
||||
if (subs_change_notify_correlation_id) {
|
||||
if (subs_change_notify_correlation_id) {
|
||||
if (!cJSON_IsString(subs_change_notify_correlation_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [subs_change_notify_correlation_id]");
|
||||
goto end;
|
||||
|
@ -265,7 +263,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
@ -274,7 +272,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *group_id = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "groupId");
|
||||
|
||||
if (group_id) {
|
||||
if (group_id) {
|
||||
if (!cJSON_IsString(group_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [group_id]");
|
||||
goto end;
|
||||
|
@ -283,7 +281,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *gpsi = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "gpsi");
|
||||
|
||||
if (gpsi) {
|
||||
if (gpsi) {
|
||||
if (!cJSON_IsString(gpsi)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [gpsi]");
|
||||
goto end;
|
||||
|
@ -292,7 +290,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
@ -301,7 +299,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *any_ue = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "anyUE");
|
||||
|
||||
if (any_ue) {
|
||||
if (any_ue) {
|
||||
if (!cJSON_IsBool(any_ue)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [any_ue]");
|
||||
goto end;
|
||||
|
@ -311,14 +309,14 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
cJSON *options = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "options");
|
||||
|
||||
OpenAPI_amf_event_mode_t *options_local_nonprim = NULL;
|
||||
if (options) {
|
||||
if (options) {
|
||||
options_local_nonprim = OpenAPI_amf_event_mode_parseFromJSON(options);
|
||||
}
|
||||
|
||||
cJSON *source_nf_type = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "sourceNfType");
|
||||
|
||||
OpenAPI_nf_type_e source_nf_typeVariable;
|
||||
if (source_nf_type) {
|
||||
if (source_nf_type) {
|
||||
if (!cJSON_IsString(source_nf_type)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [source_nf_type]");
|
||||
goto end;
|
||||
|
@ -337,6 +335,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
group_id ? ogs_strdup_or_assert(group_id->valuestring) : NULL,
|
||||
gpsi ? ogs_strdup_or_assert(gpsi->valuestring) : NULL,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
any_ue ? true : false,
|
||||
any_ue ? any_ue->valueint : 0,
|
||||
options ? options_local_nonprim : NULL,
|
||||
source_nf_type ? source_nf_typeVariable : 0
|
||||
|
|
|
@ -32,6 +32,7 @@ typedef struct OpenAPI_amf_event_subscription_s {
|
|||
char *group_id;
|
||||
char *gpsi;
|
||||
char *pei;
|
||||
bool is_any_ue;
|
||||
int any_ue;
|
||||
struct OpenAPI_amf_event_mode_s *options;
|
||||
OpenAPI_nf_type_e source_nf_type;
|
||||
|
@ -48,6 +49,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_create(
|
|||
char *group_id,
|
||||
char *gpsi,
|
||||
char *pei,
|
||||
bool is_any_ue,
|
||||
int any_ue,
|
||||
OpenAPI_amf_event_mode_t *options,
|
||||
OpenAPI_nf_type_e source_nf_type
|
||||
|
|
|
@ -75,7 +75,7 @@ OpenAPI_amf_event_subscription_add_info_t *OpenAPI_amf_event_subscription_add_in
|
|||
cJSON *binding_info = cJSON_GetObjectItemCaseSensitive(amf_event_subscription_add_infoJSON, "bindingInfo");
|
||||
|
||||
OpenAPI_list_t *binding_infoList;
|
||||
if (binding_info) {
|
||||
if (binding_info) {
|
||||
cJSON *binding_info_local;
|
||||
if (!cJSON_IsArray(binding_info)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_add_info_parseFromJSON() failed [binding_info]");
|
||||
|
@ -89,13 +89,13 @@ OpenAPI_amf_event_subscription_add_info_t *OpenAPI_amf_event_subscription_add_in
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(binding_infoList , ogs_strdup_or_assert(binding_info_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *subscribing_nf_type = cJSON_GetObjectItemCaseSensitive(amf_event_subscription_add_infoJSON, "subscribingNfType");
|
||||
|
||||
OpenAPI_nf_type_e subscribing_nf_typeVariable;
|
||||
if (subscribing_nf_type) {
|
||||
if (subscribing_nf_type) {
|
||||
if (!cJSON_IsString(subscribing_nf_type)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_add_info_parseFromJSON() failed [subscribing_nf_type]");
|
||||
goto end;
|
||||
|
|
|
@ -207,7 +207,6 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(amf_set_id)) {
|
||||
ogs_error("OpenAPI_amf_info_parseFromJSON() failed [amf_set_id]");
|
||||
goto end;
|
||||
|
@ -219,7 +218,6 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(amf_region_id)) {
|
||||
ogs_error("OpenAPI_amf_info_parseFromJSON() failed [amf_region_id]");
|
||||
goto end;
|
||||
|
@ -232,7 +230,6 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
}
|
||||
|
||||
OpenAPI_list_t *guami_listList;
|
||||
|
||||
cJSON *guami_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(guami_list)){
|
||||
ogs_error("OpenAPI_amf_info_parseFromJSON() failed [guami_list]");
|
||||
|
@ -254,7 +251,7 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
cJSON *tai_list = cJSON_GetObjectItemCaseSensitive(amf_infoJSON, "taiList");
|
||||
|
||||
OpenAPI_list_t *tai_listList;
|
||||
if (tai_list) {
|
||||
if (tai_list) {
|
||||
cJSON *tai_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tai_list)){
|
||||
ogs_error("OpenAPI_amf_info_parseFromJSON() failed [tai_list]");
|
||||
|
@ -277,7 +274,7 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
cJSON *tai_range_list = cJSON_GetObjectItemCaseSensitive(amf_infoJSON, "taiRangeList");
|
||||
|
||||
OpenAPI_list_t *tai_range_listList;
|
||||
if (tai_range_list) {
|
||||
if (tai_range_list) {
|
||||
cJSON *tai_range_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tai_range_list)){
|
||||
ogs_error("OpenAPI_amf_info_parseFromJSON() failed [tai_range_list]");
|
||||
|
@ -300,7 +297,7 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
cJSON *backup_info_amf_failure = cJSON_GetObjectItemCaseSensitive(amf_infoJSON, "backupInfoAmfFailure");
|
||||
|
||||
OpenAPI_list_t *backup_info_amf_failureList;
|
||||
if (backup_info_amf_failure) {
|
||||
if (backup_info_amf_failure) {
|
||||
cJSON *backup_info_amf_failure_local_nonprimitive;
|
||||
if (!cJSON_IsArray(backup_info_amf_failure)){
|
||||
ogs_error("OpenAPI_amf_info_parseFromJSON() failed [backup_info_amf_failure]");
|
||||
|
@ -323,7 +320,7 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
cJSON *backup_info_amf_removal = cJSON_GetObjectItemCaseSensitive(amf_infoJSON, "backupInfoAmfRemoval");
|
||||
|
||||
OpenAPI_list_t *backup_info_amf_removalList;
|
||||
if (backup_info_amf_removal) {
|
||||
if (backup_info_amf_removal) {
|
||||
cJSON *backup_info_amf_removal_local_nonprimitive;
|
||||
if (!cJSON_IsArray(backup_info_amf_removal)){
|
||||
ogs_error("OpenAPI_amf_info_parseFromJSON() failed [backup_info_amf_removal]");
|
||||
|
@ -346,7 +343,7 @@ OpenAPI_amf_info_t *OpenAPI_amf_info_parseFromJSON(cJSON *amf_infoJSON)
|
|||
cJSON *n2_interface_amf_info = cJSON_GetObjectItemCaseSensitive(amf_infoJSON, "n2InterfaceAmfInfo");
|
||||
|
||||
OpenAPI_n2_interface_amf_info_t *n2_interface_amf_info_local_nonprim = NULL;
|
||||
if (n2_interface_amf_info) {
|
||||
if (n2_interface_amf_info) {
|
||||
n2_interface_amf_info_local_nonprim = OpenAPI_n2_interface_amf_info_parseFromJSON(n2_interface_amf_info);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registration_create(
|
||||
char *amf_instance_id,
|
||||
char *supported_features,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
|
@ -17,11 +18,13 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
OpenAPI_guami_t *guami,
|
||||
OpenAPI_list_t *backup_amf_info,
|
||||
OpenAPI_rat_type_e rat_type,
|
||||
bool is_urrp_indicator,
|
||||
int urrp_indicator,
|
||||
char *amf_ee_subscription_id,
|
||||
char *registration_time,
|
||||
OpenAPI_vgmlc_address_t *vgmlc_address,
|
||||
OpenAPI_context_info_t *context_info,
|
||||
bool is_no_ee_subscription_ind,
|
||||
int no_ee_subscription_ind,
|
||||
char *supi
|
||||
)
|
||||
|
@ -32,6 +35,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
}
|
||||
amf_non3_gpp_access_registration_local_var->amf_instance_id = amf_instance_id;
|
||||
amf_non3_gpp_access_registration_local_var->supported_features = supported_features;
|
||||
amf_non3_gpp_access_registration_local_var->is_purge_flag = is_purge_flag;
|
||||
amf_non3_gpp_access_registration_local_var->purge_flag = purge_flag;
|
||||
amf_non3_gpp_access_registration_local_var->pei = pei;
|
||||
amf_non3_gpp_access_registration_local_var->ims_vo_ps = ims_vo_ps;
|
||||
|
@ -42,11 +46,13 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
amf_non3_gpp_access_registration_local_var->guami = guami;
|
||||
amf_non3_gpp_access_registration_local_var->backup_amf_info = backup_amf_info;
|
||||
amf_non3_gpp_access_registration_local_var->rat_type = rat_type;
|
||||
amf_non3_gpp_access_registration_local_var->is_urrp_indicator = is_urrp_indicator;
|
||||
amf_non3_gpp_access_registration_local_var->urrp_indicator = urrp_indicator;
|
||||
amf_non3_gpp_access_registration_local_var->amf_ee_subscription_id = amf_ee_subscription_id;
|
||||
amf_non3_gpp_access_registration_local_var->registration_time = registration_time;
|
||||
amf_non3_gpp_access_registration_local_var->vgmlc_address = vgmlc_address;
|
||||
amf_non3_gpp_access_registration_local_var->context_info = context_info;
|
||||
amf_non3_gpp_access_registration_local_var->is_no_ee_subscription_ind = is_no_ee_subscription_ind;
|
||||
amf_non3_gpp_access_registration_local_var->no_ee_subscription_ind = no_ee_subscription_ind;
|
||||
amf_non3_gpp_access_registration_local_var->supi = supi;
|
||||
|
||||
|
@ -101,7 +107,7 @@ cJSON *OpenAPI_amf_non3_gpp_access_registration_convertToJSON(OpenAPI_amf_non3_g
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_non3_gpp_access_registration->purge_flag) {
|
||||
if (amf_non3_gpp_access_registration->is_purge_flag) {
|
||||
if (cJSON_AddBoolToObject(item, "purgeFlag", amf_non3_gpp_access_registration->purge_flag) == NULL) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_convertToJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -182,7 +188,7 @@ cJSON *OpenAPI_amf_non3_gpp_access_registration_convertToJSON(OpenAPI_amf_non3_g
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (amf_non3_gpp_access_registration->urrp_indicator) {
|
||||
if (amf_non3_gpp_access_registration->is_urrp_indicator) {
|
||||
if (cJSON_AddBoolToObject(item, "urrpIndicator", amf_non3_gpp_access_registration->urrp_indicator) == NULL) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_convertToJSON() failed [urrp_indicator]");
|
||||
goto end;
|
||||
|
@ -229,7 +235,7 @@ cJSON *OpenAPI_amf_non3_gpp_access_registration_convertToJSON(OpenAPI_amf_non3_g
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_non3_gpp_access_registration->no_ee_subscription_ind) {
|
||||
if (amf_non3_gpp_access_registration->is_no_ee_subscription_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "noEeSubscriptionInd", amf_non3_gpp_access_registration->no_ee_subscription_ind) == NULL) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_convertToJSON() failed [no_ee_subscription_ind]");
|
||||
goto end;
|
||||
|
@ -256,7 +262,6 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(amf_instance_id)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [amf_instance_id]");
|
||||
goto end;
|
||||
|
@ -264,7 +269,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
@ -273,7 +278,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *purge_flag = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "purgeFlag");
|
||||
|
||||
if (purge_flag) {
|
||||
if (purge_flag) {
|
||||
if (!cJSON_IsBool(purge_flag)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -282,7 +287,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
@ -296,7 +301,6 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
}
|
||||
|
||||
OpenAPI_ims_vo_ps_e ims_vo_psVariable;
|
||||
|
||||
if (!cJSON_IsString(ims_vo_ps)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [ims_vo_ps]");
|
||||
goto end;
|
||||
|
@ -309,7 +313,6 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(dereg_callback_uri)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [dereg_callback_uri]");
|
||||
goto end;
|
||||
|
@ -317,7 +320,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *amf_service_name_dereg = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "amfServiceNameDereg");
|
||||
|
||||
if (amf_service_name_dereg) {
|
||||
if (amf_service_name_dereg) {
|
||||
if (!cJSON_IsString(amf_service_name_dereg)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [amf_service_name_dereg]");
|
||||
goto end;
|
||||
|
@ -326,7 +329,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *pcscf_restoration_callback_uri = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "pcscfRestorationCallbackUri");
|
||||
|
||||
if (pcscf_restoration_callback_uri) {
|
||||
if (pcscf_restoration_callback_uri) {
|
||||
if (!cJSON_IsString(pcscf_restoration_callback_uri)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [pcscf_restoration_callback_uri]");
|
||||
goto end;
|
||||
|
@ -335,7 +338,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *amf_service_name_pcscf_rest = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "amfServiceNamePcscfRest");
|
||||
|
||||
if (amf_service_name_pcscf_rest) {
|
||||
if (amf_service_name_pcscf_rest) {
|
||||
if (!cJSON_IsString(amf_service_name_pcscf_rest)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [amf_service_name_pcscf_rest]");
|
||||
goto end;
|
||||
|
@ -349,13 +352,12 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
}
|
||||
|
||||
OpenAPI_guami_t *guami_local_nonprim = NULL;
|
||||
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
|
||||
cJSON *backup_amf_info = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "backupAmfInfo");
|
||||
|
||||
OpenAPI_list_t *backup_amf_infoList;
|
||||
if (backup_amf_info) {
|
||||
if (backup_amf_info) {
|
||||
cJSON *backup_amf_info_local_nonprimitive;
|
||||
if (!cJSON_IsArray(backup_amf_info)){
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [backup_amf_info]");
|
||||
|
@ -382,7 +384,6 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
}
|
||||
|
||||
OpenAPI_rat_type_e rat_typeVariable;
|
||||
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
|
@ -391,7 +392,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *urrp_indicator = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "urrpIndicator");
|
||||
|
||||
if (urrp_indicator) {
|
||||
if (urrp_indicator) {
|
||||
if (!cJSON_IsBool(urrp_indicator)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [urrp_indicator]");
|
||||
goto end;
|
||||
|
@ -400,7 +401,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *amf_ee_subscription_id = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "amfEeSubscriptionId");
|
||||
|
||||
if (amf_ee_subscription_id) {
|
||||
if (amf_ee_subscription_id) {
|
||||
if (!cJSON_IsString(amf_ee_subscription_id)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [amf_ee_subscription_id]");
|
||||
goto end;
|
||||
|
@ -409,7 +410,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *registration_time = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "registrationTime");
|
||||
|
||||
if (registration_time) {
|
||||
if (registration_time) {
|
||||
if (!cJSON_IsString(registration_time)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [registration_time]");
|
||||
goto end;
|
||||
|
@ -419,20 +420,20 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
cJSON *vgmlc_address = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "vgmlcAddress");
|
||||
|
||||
OpenAPI_vgmlc_address_t *vgmlc_address_local_nonprim = NULL;
|
||||
if (vgmlc_address) {
|
||||
if (vgmlc_address) {
|
||||
vgmlc_address_local_nonprim = OpenAPI_vgmlc_address_parseFromJSON(vgmlc_address);
|
||||
}
|
||||
|
||||
cJSON *context_info = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "contextInfo");
|
||||
|
||||
OpenAPI_context_info_t *context_info_local_nonprim = NULL;
|
||||
if (context_info) {
|
||||
if (context_info) {
|
||||
context_info_local_nonprim = OpenAPI_context_info_parseFromJSON(context_info);
|
||||
}
|
||||
|
||||
cJSON *no_ee_subscription_ind = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "noEeSubscriptionInd");
|
||||
|
||||
if (no_ee_subscription_ind) {
|
||||
if (no_ee_subscription_ind) {
|
||||
if (!cJSON_IsBool(no_ee_subscription_ind)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [no_ee_subscription_ind]");
|
||||
goto end;
|
||||
|
@ -441,7 +442,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registrationJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
@ -451,6 +452,7 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
amf_non3_gpp_access_registration_local_var = OpenAPI_amf_non3_gpp_access_registration_create (
|
||||
ogs_strdup_or_assert(amf_instance_id->valuestring),
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL,
|
||||
purge_flag ? true : false,
|
||||
purge_flag ? purge_flag->valueint : 0,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
ims_vo_psVariable,
|
||||
|
@ -461,11 +463,13 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
guami_local_nonprim,
|
||||
backup_amf_info ? backup_amf_infoList : NULL,
|
||||
rat_typeVariable,
|
||||
urrp_indicator ? true : false,
|
||||
urrp_indicator ? urrp_indicator->valueint : 0,
|
||||
amf_ee_subscription_id ? ogs_strdup_or_assert(amf_ee_subscription_id->valuestring) : NULL,
|
||||
registration_time ? ogs_strdup_or_assert(registration_time->valuestring) : NULL,
|
||||
vgmlc_address ? vgmlc_address_local_nonprim : NULL,
|
||||
context_info ? context_info_local_nonprim : NULL,
|
||||
no_ee_subscription_ind ? true : false,
|
||||
no_ee_subscription_ind ? no_ee_subscription_ind->valueint : 0,
|
||||
supi ? ogs_strdup_or_assert(supi->valuestring) : NULL
|
||||
);
|
||||
|
|
|
@ -27,6 +27,7 @@ typedef struct OpenAPI_amf_non3_gpp_access_registration_s OpenAPI_amf_non3_gpp_a
|
|||
typedef struct OpenAPI_amf_non3_gpp_access_registration_s {
|
||||
char *amf_instance_id;
|
||||
char *supported_features;
|
||||
bool is_purge_flag;
|
||||
int purge_flag;
|
||||
char *pei;
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps;
|
||||
|
@ -37,11 +38,13 @@ typedef struct OpenAPI_amf_non3_gpp_access_registration_s {
|
|||
struct OpenAPI_guami_s *guami;
|
||||
OpenAPI_list_t *backup_amf_info;
|
||||
OpenAPI_rat_type_e rat_type;
|
||||
bool is_urrp_indicator;
|
||||
int urrp_indicator;
|
||||
char *amf_ee_subscription_id;
|
||||
char *registration_time;
|
||||
struct OpenAPI_vgmlc_address_s *vgmlc_address;
|
||||
struct OpenAPI_context_info_s *context_info;
|
||||
bool is_no_ee_subscription_ind;
|
||||
int no_ee_subscription_ind;
|
||||
char *supi;
|
||||
} OpenAPI_amf_non3_gpp_access_registration_t;
|
||||
|
@ -49,6 +52,7 @@ typedef struct OpenAPI_amf_non3_gpp_access_registration_s {
|
|||
OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registration_create(
|
||||
char *amf_instance_id,
|
||||
char *supported_features,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
|
@ -59,11 +63,13 @@ OpenAPI_amf_non3_gpp_access_registration_t *OpenAPI_amf_non3_gpp_access_registra
|
|||
OpenAPI_guami_t *guami,
|
||||
OpenAPI_list_t *backup_amf_info,
|
||||
OpenAPI_rat_type_e rat_type,
|
||||
bool is_urrp_indicator,
|
||||
int urrp_indicator,
|
||||
char *amf_ee_subscription_id,
|
||||
char *registration_time,
|
||||
OpenAPI_vgmlc_address_t *vgmlc_address,
|
||||
OpenAPI_context_info_t *context_info,
|
||||
bool is_no_ee_subscription_ind,
|
||||
int no_ee_subscription_ind,
|
||||
char *supi
|
||||
);
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_access_registration_modification_create(
|
||||
OpenAPI_guami_t *guami,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
|
@ -17,6 +18,7 @@ OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_ac
|
|||
return NULL;
|
||||
}
|
||||
amf_non3_gpp_access_registration_modification_local_var->guami = guami;
|
||||
amf_non3_gpp_access_registration_modification_local_var->is_purge_flag = is_purge_flag;
|
||||
amf_non3_gpp_access_registration_modification_local_var->purge_flag = purge_flag;
|
||||
amf_non3_gpp_access_registration_modification_local_var->pei = pei;
|
||||
amf_non3_gpp_access_registration_modification_local_var->ims_vo_ps = ims_vo_ps;
|
||||
|
@ -61,7 +63,7 @@ cJSON *OpenAPI_amf_non3_gpp_access_registration_modification_convertToJSON(OpenA
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (amf_non3_gpp_access_registration_modification->purge_flag) {
|
||||
if (amf_non3_gpp_access_registration_modification->is_purge_flag) {
|
||||
if (cJSON_AddBoolToObject(item, "purgeFlag", amf_non3_gpp_access_registration_modification->purge_flag) == NULL) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_modification_convertToJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -116,12 +118,11 @@ OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_ac
|
|||
}
|
||||
|
||||
OpenAPI_guami_t *guami_local_nonprim = NULL;
|
||||
|
||||
guami_local_nonprim = OpenAPI_guami_parseFromJSON(guami);
|
||||
|
||||
cJSON *purge_flag = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registration_modificationJSON, "purgeFlag");
|
||||
|
||||
if (purge_flag) {
|
||||
if (purge_flag) {
|
||||
if (!cJSON_IsBool(purge_flag)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_modification_parseFromJSON() failed [purge_flag]");
|
||||
goto end;
|
||||
|
@ -130,7 +131,7 @@ OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_ac
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registration_modificationJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_modification_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
@ -140,7 +141,7 @@ OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_ac
|
|||
cJSON *ims_vo_ps = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registration_modificationJSON, "imsVoPs");
|
||||
|
||||
OpenAPI_ims_vo_ps_e ims_vo_psVariable;
|
||||
if (ims_vo_ps) {
|
||||
if (ims_vo_ps) {
|
||||
if (!cJSON_IsString(ims_vo_ps)) {
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_modification_parseFromJSON() failed [ims_vo_ps]");
|
||||
goto end;
|
||||
|
@ -151,7 +152,7 @@ OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_ac
|
|||
cJSON *backup_amf_info = cJSON_GetObjectItemCaseSensitive(amf_non3_gpp_access_registration_modificationJSON, "backupAmfInfo");
|
||||
|
||||
OpenAPI_list_t *backup_amf_infoList;
|
||||
if (backup_amf_info) {
|
||||
if (backup_amf_info) {
|
||||
cJSON *backup_amf_info_local_nonprimitive;
|
||||
if (!cJSON_IsArray(backup_amf_info)){
|
||||
ogs_error("OpenAPI_amf_non3_gpp_access_registration_modification_parseFromJSON() failed [backup_amf_info]");
|
||||
|
@ -173,6 +174,7 @@ OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_ac
|
|||
|
||||
amf_non3_gpp_access_registration_modification_local_var = OpenAPI_amf_non3_gpp_access_registration_modification_create (
|
||||
guami_local_nonprim,
|
||||
purge_flag ? true : false,
|
||||
purge_flag ? purge_flag->valueint : 0,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
ims_vo_ps ? ims_vo_psVariable : 0,
|
||||
|
|
|
@ -23,6 +23,7 @@ extern "C" {
|
|||
typedef struct OpenAPI_amf_non3_gpp_access_registration_modification_s OpenAPI_amf_non3_gpp_access_registration_modification_t;
|
||||
typedef struct OpenAPI_amf_non3_gpp_access_registration_modification_s {
|
||||
struct OpenAPI_guami_s *guami;
|
||||
bool is_purge_flag;
|
||||
int purge_flag;
|
||||
char *pei;
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps;
|
||||
|
@ -31,6 +32,7 @@ typedef struct OpenAPI_amf_non3_gpp_access_registration_modification_s {
|
|||
|
||||
OpenAPI_amf_non3_gpp_access_registration_modification_t *OpenAPI_amf_non3_gpp_access_registration_modification_create(
|
||||
OpenAPI_guami_t *guami,
|
||||
bool is_purge_flag,
|
||||
int purge_flag,
|
||||
char *pei,
|
||||
OpenAPI_ims_vo_ps_e ims_vo_ps,
|
||||
|
|
|
@ -72,7 +72,6 @@ OpenAPI_amf_status_change_notification_t *OpenAPI_amf_status_change_notification
|
|||
}
|
||||
|
||||
OpenAPI_list_t *amf_status_info_listList;
|
||||
|
||||
cJSON *amf_status_info_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(amf_status_info_list)){
|
||||
ogs_error("OpenAPI_amf_status_change_notification_parseFromJSON() failed [amf_status_info_list]");
|
||||
|
|
|
@ -81,7 +81,6 @@ OpenAPI_amf_status_change_subscription_data_t *OpenAPI_amf_status_change_subscri
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(amf_status_uri)) {
|
||||
ogs_error("OpenAPI_amf_status_change_subscription_data_parseFromJSON() failed [amf_status_uri]");
|
||||
goto end;
|
||||
|
@ -90,7 +89,7 @@ OpenAPI_amf_status_change_subscription_data_t *OpenAPI_amf_status_change_subscri
|
|||
cJSON *guami_list = cJSON_GetObjectItemCaseSensitive(amf_status_change_subscription_dataJSON, "guamiList");
|
||||
|
||||
OpenAPI_list_t *guami_listList;
|
||||
if (guami_list) {
|
||||
if (guami_list) {
|
||||
cJSON *guami_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(guami_list)){
|
||||
ogs_error("OpenAPI_amf_status_change_subscription_data_parseFromJSON() failed [guami_list]");
|
||||
|
|
|
@ -99,7 +99,6 @@ OpenAPI_amf_status_info_t *OpenAPI_amf_status_info_parseFromJSON(cJSON *amf_stat
|
|||
}
|
||||
|
||||
OpenAPI_list_t *guami_listList;
|
||||
|
||||
cJSON *guami_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(guami_list)){
|
||||
ogs_error("OpenAPI_amf_status_info_parseFromJSON() failed [guami_list]");
|
||||
|
@ -125,7 +124,6 @@ OpenAPI_amf_status_info_t *OpenAPI_amf_status_info_parseFromJSON(cJSON *amf_stat
|
|||
}
|
||||
|
||||
OpenAPI_status_change_e status_changeVariable;
|
||||
|
||||
if (!cJSON_IsString(status_change)) {
|
||||
ogs_error("OpenAPI_amf_status_info_parseFromJSON() failed [status_change]");
|
||||
goto end;
|
||||
|
@ -134,7 +132,7 @@ OpenAPI_amf_status_info_t *OpenAPI_amf_status_info_parseFromJSON(cJSON *amf_stat
|
|||
|
||||
cJSON *target_amf_removal = cJSON_GetObjectItemCaseSensitive(amf_status_infoJSON, "targetAmfRemoval");
|
||||
|
||||
if (target_amf_removal) {
|
||||
if (target_amf_removal) {
|
||||
if (!cJSON_IsString(target_amf_removal)) {
|
||||
ogs_error("OpenAPI_amf_status_info_parseFromJSON() failed [target_amf_removal]");
|
||||
goto end;
|
||||
|
@ -143,7 +141,7 @@ OpenAPI_amf_status_info_t *OpenAPI_amf_status_info_parseFromJSON(cJSON *amf_stat
|
|||
|
||||
cJSON *target_amf_failure = cJSON_GetObjectItemCaseSensitive(amf_status_infoJSON, "targetAmfFailure");
|
||||
|
||||
if (target_amf_failure) {
|
||||
if (target_amf_failure) {
|
||||
if (!cJSON_IsString(target_amf_failure)) {
|
||||
ogs_error("OpenAPI_amf_status_info_parseFromJSON() failed [target_amf_failure]");
|
||||
goto end;
|
||||
|
|
|
@ -73,7 +73,6 @@ OpenAPI_amf_subscription_info_t *OpenAPI_amf_subscription_info_parseFromJSON(cJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(amf_instance_id)) {
|
||||
ogs_error("OpenAPI_amf_subscription_info_parseFromJSON() failed [amf_instance_id]");
|
||||
goto end;
|
||||
|
@ -85,7 +84,6 @@ OpenAPI_amf_subscription_info_t *OpenAPI_amf_subscription_info_parseFromJSON(cJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(subscription_id)) {
|
||||
ogs_error("OpenAPI_amf_subscription_info_parseFromJSON() failed [subscription_id]");
|
||||
goto end;
|
||||
|
@ -93,7 +91,7 @@ OpenAPI_amf_subscription_info_t *OpenAPI_amf_subscription_info_parseFromJSON(cJS
|
|||
|
||||
cJSON *subs_change_notify_correlation_id = cJSON_GetObjectItemCaseSensitive(amf_subscription_infoJSON, "subsChangeNotifyCorrelationId");
|
||||
|
||||
if (subs_change_notify_correlation_id) {
|
||||
if (subs_change_notify_correlation_id) {
|
||||
if (!cJSON_IsString(subs_change_notify_correlation_id)) {
|
||||
ogs_error("OpenAPI_amf_subscription_info_parseFromJSON() failed [subs_change_notify_correlation_id]");
|
||||
goto end;
|
||||
|
|
|
@ -63,7 +63,7 @@ OpenAPI_an_gw_address_t *OpenAPI_an_gw_address_parseFromJSON(cJSON *an_gw_addres
|
|||
OpenAPI_an_gw_address_t *an_gw_address_local_var = NULL;
|
||||
cJSON *an_gw_ipv4_addr = cJSON_GetObjectItemCaseSensitive(an_gw_addressJSON, "anGwIpv4Addr");
|
||||
|
||||
if (an_gw_ipv4_addr) {
|
||||
if (an_gw_ipv4_addr) {
|
||||
if (!cJSON_IsString(an_gw_ipv4_addr)) {
|
||||
ogs_error("OpenAPI_an_gw_address_parseFromJSON() failed [an_gw_ipv4_addr]");
|
||||
goto end;
|
||||
|
@ -72,7 +72,7 @@ OpenAPI_an_gw_address_t *OpenAPI_an_gw_address_parseFromJSON(cJSON *an_gw_addres
|
|||
|
||||
cJSON *an_gw_ipv6_addr = cJSON_GetObjectItemCaseSensitive(an_gw_addressJSON, "anGwIpv6Addr");
|
||||
|
||||
if (an_gw_ipv6_addr) {
|
||||
if (an_gw_ipv6_addr) {
|
||||
if (!cJSON_IsString(an_gw_ipv6_addr)) {
|
||||
ogs_error("OpenAPI_an_gw_address_parseFromJSON() failed [an_gw_ipv6_addr]");
|
||||
goto end;
|
||||
|
|
|
@ -5,10 +5,14 @@
|
|||
#include "apn_rate_status.h"
|
||||
|
||||
OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_create(
|
||||
bool is_remain_packets_ul,
|
||||
int remain_packets_ul,
|
||||
bool is_remain_packets_dl,
|
||||
int remain_packets_dl,
|
||||
char *validity_time,
|
||||
bool is_remain_ex_reports_ul,
|
||||
int remain_ex_reports_ul,
|
||||
bool is_remain_ex_reports_dl,
|
||||
int remain_ex_reports_dl
|
||||
)
|
||||
{
|
||||
|
@ -16,10 +20,14 @@ OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_create(
|
|||
if (!apn_rate_status_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
apn_rate_status_local_var->is_remain_packets_ul = is_remain_packets_ul;
|
||||
apn_rate_status_local_var->remain_packets_ul = remain_packets_ul;
|
||||
apn_rate_status_local_var->is_remain_packets_dl = is_remain_packets_dl;
|
||||
apn_rate_status_local_var->remain_packets_dl = remain_packets_dl;
|
||||
apn_rate_status_local_var->validity_time = validity_time;
|
||||
apn_rate_status_local_var->is_remain_ex_reports_ul = is_remain_ex_reports_ul;
|
||||
apn_rate_status_local_var->remain_ex_reports_ul = remain_ex_reports_ul;
|
||||
apn_rate_status_local_var->is_remain_ex_reports_dl = is_remain_ex_reports_dl;
|
||||
apn_rate_status_local_var->remain_ex_reports_dl = remain_ex_reports_dl;
|
||||
|
||||
return apn_rate_status_local_var;
|
||||
|
@ -45,14 +53,14 @@ cJSON *OpenAPI_apn_rate_status_convertToJSON(OpenAPI_apn_rate_status_t *apn_rate
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (apn_rate_status->remain_packets_ul) {
|
||||
if (apn_rate_status->is_remain_packets_ul) {
|
||||
if (cJSON_AddNumberToObject(item, "remainPacketsUl", apn_rate_status->remain_packets_ul) == NULL) {
|
||||
ogs_error("OpenAPI_apn_rate_status_convertToJSON() failed [remain_packets_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (apn_rate_status->remain_packets_dl) {
|
||||
if (apn_rate_status->is_remain_packets_dl) {
|
||||
if (cJSON_AddNumberToObject(item, "remainPacketsDl", apn_rate_status->remain_packets_dl) == NULL) {
|
||||
ogs_error("OpenAPI_apn_rate_status_convertToJSON() failed [remain_packets_dl]");
|
||||
goto end;
|
||||
|
@ -66,14 +74,14 @@ cJSON *OpenAPI_apn_rate_status_convertToJSON(OpenAPI_apn_rate_status_t *apn_rate
|
|||
}
|
||||
}
|
||||
|
||||
if (apn_rate_status->remain_ex_reports_ul) {
|
||||
if (apn_rate_status->is_remain_ex_reports_ul) {
|
||||
if (cJSON_AddNumberToObject(item, "remainExReportsUl", apn_rate_status->remain_ex_reports_ul) == NULL) {
|
||||
ogs_error("OpenAPI_apn_rate_status_convertToJSON() failed [remain_ex_reports_ul]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (apn_rate_status->remain_ex_reports_dl) {
|
||||
if (apn_rate_status->is_remain_ex_reports_dl) {
|
||||
if (cJSON_AddNumberToObject(item, "remainExReportsDl", apn_rate_status->remain_ex_reports_dl) == NULL) {
|
||||
ogs_error("OpenAPI_apn_rate_status_convertToJSON() failed [remain_ex_reports_dl]");
|
||||
goto end;
|
||||
|
@ -89,7 +97,7 @@ OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_parseFromJSON(cJSON *apn_rate
|
|||
OpenAPI_apn_rate_status_t *apn_rate_status_local_var = NULL;
|
||||
cJSON *remain_packets_ul = cJSON_GetObjectItemCaseSensitive(apn_rate_statusJSON, "remainPacketsUl");
|
||||
|
||||
if (remain_packets_ul) {
|
||||
if (remain_packets_ul) {
|
||||
if (!cJSON_IsNumber(remain_packets_ul)) {
|
||||
ogs_error("OpenAPI_apn_rate_status_parseFromJSON() failed [remain_packets_ul]");
|
||||
goto end;
|
||||
|
@ -98,7 +106,7 @@ OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_parseFromJSON(cJSON *apn_rate
|
|||
|
||||
cJSON *remain_packets_dl = cJSON_GetObjectItemCaseSensitive(apn_rate_statusJSON, "remainPacketsDl");
|
||||
|
||||
if (remain_packets_dl) {
|
||||
if (remain_packets_dl) {
|
||||
if (!cJSON_IsNumber(remain_packets_dl)) {
|
||||
ogs_error("OpenAPI_apn_rate_status_parseFromJSON() failed [remain_packets_dl]");
|
||||
goto end;
|
||||
|
@ -107,7 +115,7 @@ OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_parseFromJSON(cJSON *apn_rate
|
|||
|
||||
cJSON *validity_time = cJSON_GetObjectItemCaseSensitive(apn_rate_statusJSON, "validityTime");
|
||||
|
||||
if (validity_time) {
|
||||
if (validity_time) {
|
||||
if (!cJSON_IsString(validity_time)) {
|
||||
ogs_error("OpenAPI_apn_rate_status_parseFromJSON() failed [validity_time]");
|
||||
goto end;
|
||||
|
@ -116,7 +124,7 @@ OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_parseFromJSON(cJSON *apn_rate
|
|||
|
||||
cJSON *remain_ex_reports_ul = cJSON_GetObjectItemCaseSensitive(apn_rate_statusJSON, "remainExReportsUl");
|
||||
|
||||
if (remain_ex_reports_ul) {
|
||||
if (remain_ex_reports_ul) {
|
||||
if (!cJSON_IsNumber(remain_ex_reports_ul)) {
|
||||
ogs_error("OpenAPI_apn_rate_status_parseFromJSON() failed [remain_ex_reports_ul]");
|
||||
goto end;
|
||||
|
@ -125,7 +133,7 @@ OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_parseFromJSON(cJSON *apn_rate
|
|||
|
||||
cJSON *remain_ex_reports_dl = cJSON_GetObjectItemCaseSensitive(apn_rate_statusJSON, "remainExReportsDl");
|
||||
|
||||
if (remain_ex_reports_dl) {
|
||||
if (remain_ex_reports_dl) {
|
||||
if (!cJSON_IsNumber(remain_ex_reports_dl)) {
|
||||
ogs_error("OpenAPI_apn_rate_status_parseFromJSON() failed [remain_ex_reports_dl]");
|
||||
goto end;
|
||||
|
@ -133,10 +141,14 @@ OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_parseFromJSON(cJSON *apn_rate
|
|||
}
|
||||
|
||||
apn_rate_status_local_var = OpenAPI_apn_rate_status_create (
|
||||
remain_packets_ul ? true : false,
|
||||
remain_packets_ul ? remain_packets_ul->valuedouble : 0,
|
||||
remain_packets_dl ? true : false,
|
||||
remain_packets_dl ? remain_packets_dl->valuedouble : 0,
|
||||
validity_time ? ogs_strdup_or_assert(validity_time->valuestring) : NULL,
|
||||
remain_ex_reports_ul ? true : false,
|
||||
remain_ex_reports_ul ? remain_ex_reports_ul->valuedouble : 0,
|
||||
remain_ex_reports_dl ? true : false,
|
||||
remain_ex_reports_dl ? remain_ex_reports_dl->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -19,18 +19,26 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_apn_rate_status_s OpenAPI_apn_rate_status_t;
|
||||
typedef struct OpenAPI_apn_rate_status_s {
|
||||
bool is_remain_packets_ul;
|
||||
int remain_packets_ul;
|
||||
bool is_remain_packets_dl;
|
||||
int remain_packets_dl;
|
||||
char *validity_time;
|
||||
bool is_remain_ex_reports_ul;
|
||||
int remain_ex_reports_ul;
|
||||
bool is_remain_ex_reports_dl;
|
||||
int remain_ex_reports_dl;
|
||||
} OpenAPI_apn_rate_status_t;
|
||||
|
||||
OpenAPI_apn_rate_status_t *OpenAPI_apn_rate_status_create(
|
||||
bool is_remain_packets_ul,
|
||||
int remain_packets_ul,
|
||||
bool is_remain_packets_dl,
|
||||
int remain_packets_dl,
|
||||
char *validity_time,
|
||||
bool is_remain_ex_reports_ul,
|
||||
int remain_ex_reports_ul,
|
||||
bool is_remain_ex_reports_dl,
|
||||
int remain_ex_reports_dl
|
||||
);
|
||||
void OpenAPI_apn_rate_status_free(OpenAPI_apn_rate_status_t *apn_rate_status);
|
||||
|
|
|
@ -63,7 +63,7 @@ OpenAPI_app_descriptor_t *OpenAPI_app_descriptor_parseFromJSON(cJSON *app_descri
|
|||
OpenAPI_app_descriptor_t *app_descriptor_local_var = NULL;
|
||||
cJSON *os_id = cJSON_GetObjectItemCaseSensitive(app_descriptorJSON, "osId");
|
||||
|
||||
if (os_id) {
|
||||
if (os_id) {
|
||||
if (!cJSON_IsString(os_id)) {
|
||||
ogs_error("OpenAPI_app_descriptor_parseFromJSON() failed [os_id]");
|
||||
goto end;
|
||||
|
@ -72,7 +72,7 @@ OpenAPI_app_descriptor_t *OpenAPI_app_descriptor_parseFromJSON(cJSON *app_descri
|
|||
|
||||
cJSON *app_id = cJSON_GetObjectItemCaseSensitive(app_descriptorJSON, "appId");
|
||||
|
||||
if (app_id) {
|
||||
if (app_id) {
|
||||
if (!cJSON_IsString(app_id)) {
|
||||
ogs_error("OpenAPI_app_descriptor_parseFromJSON() failed [app_id]");
|
||||
goto end;
|
||||
|
|
|
@ -91,7 +91,6 @@ OpenAPI_app_detection_info_t *OpenAPI_app_detection_info_parseFromJSON(cJSON *ap
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(app_id)) {
|
||||
ogs_error("OpenAPI_app_detection_info_parseFromJSON() failed [app_id]");
|
||||
goto end;
|
||||
|
@ -99,7 +98,7 @@ OpenAPI_app_detection_info_t *OpenAPI_app_detection_info_parseFromJSON(cJSON *ap
|
|||
|
||||
cJSON *instance_id = cJSON_GetObjectItemCaseSensitive(app_detection_infoJSON, "instanceId");
|
||||
|
||||
if (instance_id) {
|
||||
if (instance_id) {
|
||||
if (!cJSON_IsString(instance_id)) {
|
||||
ogs_error("OpenAPI_app_detection_info_parseFromJSON() failed [instance_id]");
|
||||
goto end;
|
||||
|
@ -109,7 +108,7 @@ OpenAPI_app_detection_info_t *OpenAPI_app_detection_info_parseFromJSON(cJSON *ap
|
|||
cJSON *sdf_descriptions = cJSON_GetObjectItemCaseSensitive(app_detection_infoJSON, "sdfDescriptions");
|
||||
|
||||
OpenAPI_list_t *sdf_descriptionsList;
|
||||
if (sdf_descriptions) {
|
||||
if (sdf_descriptions) {
|
||||
cJSON *sdf_descriptions_local_nonprimitive;
|
||||
if (!cJSON_IsArray(sdf_descriptions)){
|
||||
ogs_error("OpenAPI_app_detection_info_parseFromJSON() failed [sdf_descriptions]");
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
#include "app_port_id.h"
|
||||
|
||||
OpenAPI_app_port_id_t *OpenAPI_app_port_id_create(
|
||||
bool is_destination_port,
|
||||
int destination_port,
|
||||
bool is_originator_port,
|
||||
int originator_port
|
||||
)
|
||||
{
|
||||
|
@ -13,7 +15,9 @@ OpenAPI_app_port_id_t *OpenAPI_app_port_id_create(
|
|||
if (!app_port_id_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
app_port_id_local_var->is_destination_port = is_destination_port;
|
||||
app_port_id_local_var->destination_port = destination_port;
|
||||
app_port_id_local_var->is_originator_port = is_originator_port;
|
||||
app_port_id_local_var->originator_port = originator_port;
|
||||
|
||||
return app_port_id_local_var;
|
||||
|
@ -38,14 +42,14 @@ cJSON *OpenAPI_app_port_id_convertToJSON(OpenAPI_app_port_id_t *app_port_id)
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (app_port_id->destination_port) {
|
||||
if (app_port_id->is_destination_port) {
|
||||
if (cJSON_AddNumberToObject(item, "destinationPort", app_port_id->destination_port) == NULL) {
|
||||
ogs_error("OpenAPI_app_port_id_convertToJSON() failed [destination_port]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (app_port_id->originator_port) {
|
||||
if (app_port_id->is_originator_port) {
|
||||
if (cJSON_AddNumberToObject(item, "originatorPort", app_port_id->originator_port) == NULL) {
|
||||
ogs_error("OpenAPI_app_port_id_convertToJSON() failed [originator_port]");
|
||||
goto end;
|
||||
|
@ -61,7 +65,7 @@ OpenAPI_app_port_id_t *OpenAPI_app_port_id_parseFromJSON(cJSON *app_port_idJSON)
|
|||
OpenAPI_app_port_id_t *app_port_id_local_var = NULL;
|
||||
cJSON *destination_port = cJSON_GetObjectItemCaseSensitive(app_port_idJSON, "destinationPort");
|
||||
|
||||
if (destination_port) {
|
||||
if (destination_port) {
|
||||
if (!cJSON_IsNumber(destination_port)) {
|
||||
ogs_error("OpenAPI_app_port_id_parseFromJSON() failed [destination_port]");
|
||||
goto end;
|
||||
|
@ -70,7 +74,7 @@ OpenAPI_app_port_id_t *OpenAPI_app_port_id_parseFromJSON(cJSON *app_port_idJSON)
|
|||
|
||||
cJSON *originator_port = cJSON_GetObjectItemCaseSensitive(app_port_idJSON, "originatorPort");
|
||||
|
||||
if (originator_port) {
|
||||
if (originator_port) {
|
||||
if (!cJSON_IsNumber(originator_port)) {
|
||||
ogs_error("OpenAPI_app_port_id_parseFromJSON() failed [originator_port]");
|
||||
goto end;
|
||||
|
@ -78,7 +82,9 @@ OpenAPI_app_port_id_t *OpenAPI_app_port_id_parseFromJSON(cJSON *app_port_idJSON)
|
|||
}
|
||||
|
||||
app_port_id_local_var = OpenAPI_app_port_id_create (
|
||||
destination_port ? true : false,
|
||||
destination_port ? destination_port->valuedouble : 0,
|
||||
originator_port ? true : false,
|
||||
originator_port ? originator_port->valuedouble : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -19,12 +19,16 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_app_port_id_s OpenAPI_app_port_id_t;
|
||||
typedef struct OpenAPI_app_port_id_s {
|
||||
bool is_destination_port;
|
||||
int destination_port;
|
||||
bool is_originator_port;
|
||||
int originator_port;
|
||||
} OpenAPI_app_port_id_t;
|
||||
|
||||
OpenAPI_app_port_id_t *OpenAPI_app_port_id_create(
|
||||
bool is_destination_port,
|
||||
int destination_port,
|
||||
bool is_originator_port,
|
||||
int originator_port
|
||||
);
|
||||
void OpenAPI_app_port_id_free(OpenAPI_app_port_id_t *app_port_id);
|
||||
|
|
|
@ -92,21 +92,21 @@ OpenAPI_app_session_context_t *OpenAPI_app_session_context_parseFromJSON(cJSON *
|
|||
cJSON *asc_req_data = cJSON_GetObjectItemCaseSensitive(app_session_contextJSON, "ascReqData");
|
||||
|
||||
OpenAPI_app_session_context_req_data_t *asc_req_data_local_nonprim = NULL;
|
||||
if (asc_req_data) {
|
||||
if (asc_req_data) {
|
||||
asc_req_data_local_nonprim = OpenAPI_app_session_context_req_data_parseFromJSON(asc_req_data);
|
||||
}
|
||||
|
||||
cJSON *asc_resp_data = cJSON_GetObjectItemCaseSensitive(app_session_contextJSON, "ascRespData");
|
||||
|
||||
OpenAPI_app_session_context_resp_data_t *asc_resp_data_local_nonprim = NULL;
|
||||
if (asc_resp_data) {
|
||||
if (asc_resp_data) {
|
||||
asc_resp_data_local_nonprim = OpenAPI_app_session_context_resp_data_parseFromJSON(asc_resp_data);
|
||||
}
|
||||
|
||||
cJSON *evs_notif = cJSON_GetObjectItemCaseSensitive(app_session_contextJSON, "evsNotif");
|
||||
|
||||
OpenAPI_events_notification_t *evs_notif_local_nonprim = NULL;
|
||||
if (evs_notif) {
|
||||
if (evs_notif) {
|
||||
evs_notif_local_nonprim = OpenAPI_events_notification_parseFromJSON(evs_notif);
|
||||
}
|
||||
|
||||
|
|
|
@ -409,7 +409,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
OpenAPI_app_session_context_req_data_t *app_session_context_req_data_local_var = NULL;
|
||||
cJSON *af_app_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "afAppId");
|
||||
|
||||
if (af_app_id) {
|
||||
if (af_app_id) {
|
||||
if (!cJSON_IsString(af_app_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [af_app_id]");
|
||||
goto end;
|
||||
|
@ -418,7 +418,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *af_charg_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "afChargId");
|
||||
|
||||
if (af_charg_id) {
|
||||
if (af_charg_id) {
|
||||
if (!cJSON_IsString(af_charg_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [af_charg_id]");
|
||||
goto end;
|
||||
|
@ -428,7 +428,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *af_req_data = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "afReqData");
|
||||
|
||||
OpenAPI_af_requested_data_e af_req_dataVariable;
|
||||
if (af_req_data) {
|
||||
if (af_req_data) {
|
||||
if (!cJSON_IsString(af_req_data)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [af_req_data]");
|
||||
goto end;
|
||||
|
@ -439,13 +439,13 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *af_rout_req = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "afRoutReq");
|
||||
|
||||
OpenAPI_af_routing_requirement_t *af_rout_req_local_nonprim = NULL;
|
||||
if (af_rout_req) {
|
||||
if (af_rout_req) {
|
||||
af_rout_req_local_nonprim = OpenAPI_af_routing_requirement_parseFromJSON(af_rout_req);
|
||||
}
|
||||
|
||||
cJSON *asp_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "aspId");
|
||||
|
||||
if (asp_id) {
|
||||
if (asp_id) {
|
||||
if (!cJSON_IsString(asp_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [asp_id]");
|
||||
goto end;
|
||||
|
@ -454,7 +454,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *bdt_ref_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "bdtRefId");
|
||||
|
||||
if (bdt_ref_id) {
|
||||
if (bdt_ref_id) {
|
||||
if (!cJSON_IsString(bdt_ref_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [bdt_ref_id]");
|
||||
goto end;
|
||||
|
@ -463,7 +463,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *dnn = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "dnn");
|
||||
|
||||
if (dnn) {
|
||||
if (dnn) {
|
||||
if (!cJSON_IsString(dnn)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [dnn]");
|
||||
goto end;
|
||||
|
@ -473,13 +473,13 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *ev_subsc = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "evSubsc");
|
||||
|
||||
OpenAPI_events_subsc_req_data_t *ev_subsc_local_nonprim = NULL;
|
||||
if (ev_subsc) {
|
||||
if (ev_subsc) {
|
||||
ev_subsc_local_nonprim = OpenAPI_events_subsc_req_data_parseFromJSON(ev_subsc);
|
||||
}
|
||||
|
||||
cJSON *mcptt_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "mcpttId");
|
||||
|
||||
if (mcptt_id) {
|
||||
if (mcptt_id) {
|
||||
if (!cJSON_IsString(mcptt_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [mcptt_id]");
|
||||
goto end;
|
||||
|
@ -488,7 +488,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *mc_video_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "mcVideoId");
|
||||
|
||||
if (mc_video_id) {
|
||||
if (mc_video_id) {
|
||||
if (!cJSON_IsString(mc_video_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [mc_video_id]");
|
||||
goto end;
|
||||
|
@ -498,7 +498,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *med_components = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "medComponents");
|
||||
|
||||
OpenAPI_list_t *med_componentsList;
|
||||
if (med_components) {
|
||||
if (med_components) {
|
||||
cJSON *med_components_local_map;
|
||||
if (!cJSON_IsObject(med_components)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [med_components]");
|
||||
|
@ -520,7 +520,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *ip_domain = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "ipDomain");
|
||||
|
||||
if (ip_domain) {
|
||||
if (ip_domain) {
|
||||
if (!cJSON_IsString(ip_domain)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [ip_domain]");
|
||||
goto end;
|
||||
|
@ -529,7 +529,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *mps_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "mpsId");
|
||||
|
||||
if (mps_id) {
|
||||
if (mps_id) {
|
||||
if (!cJSON_IsString(mps_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [mps_id]");
|
||||
goto end;
|
||||
|
@ -538,7 +538,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *mcs_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "mcsId");
|
||||
|
||||
if (mcs_id) {
|
||||
if (mcs_id) {
|
||||
if (!cJSON_IsString(mcs_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [mcs_id]");
|
||||
goto end;
|
||||
|
@ -548,7 +548,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *preempt_control_info = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "preemptControlInfo");
|
||||
|
||||
OpenAPI_preemption_control_information_e preempt_control_infoVariable;
|
||||
if (preempt_control_info) {
|
||||
if (preempt_control_info) {
|
||||
if (!cJSON_IsString(preempt_control_info)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [preempt_control_info]");
|
||||
goto end;
|
||||
|
@ -559,7 +559,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *res_prio = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "resPrio");
|
||||
|
||||
OpenAPI_reserv_priority_e res_prioVariable;
|
||||
if (res_prio) {
|
||||
if (res_prio) {
|
||||
if (!cJSON_IsString(res_prio)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [res_prio]");
|
||||
goto end;
|
||||
|
@ -570,7 +570,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *serv_inf_status = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "servInfStatus");
|
||||
|
||||
OpenAPI_service_info_status_e serv_inf_statusVariable;
|
||||
if (serv_inf_status) {
|
||||
if (serv_inf_status) {
|
||||
if (!cJSON_IsString(serv_inf_status)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [serv_inf_status]");
|
||||
goto end;
|
||||
|
@ -584,7 +584,6 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(notif_uri)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [notif_uri]");
|
||||
goto end;
|
||||
|
@ -592,7 +591,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *serv_urn = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "servUrn");
|
||||
|
||||
if (serv_urn) {
|
||||
if (serv_urn) {
|
||||
if (!cJSON_IsString(serv_urn)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [serv_urn]");
|
||||
goto end;
|
||||
|
@ -602,13 +601,13 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *slice_info = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "sliceInfo");
|
||||
|
||||
OpenAPI_snssai_t *slice_info_local_nonprim = NULL;
|
||||
if (slice_info) {
|
||||
if (slice_info) {
|
||||
slice_info_local_nonprim = OpenAPI_snssai_parseFromJSON(slice_info);
|
||||
}
|
||||
|
||||
cJSON *spon_id = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "sponId");
|
||||
|
||||
if (spon_id) {
|
||||
if (spon_id) {
|
||||
if (!cJSON_IsString(spon_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [spon_id]");
|
||||
goto end;
|
||||
|
@ -618,7 +617,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *spon_status = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "sponStatus");
|
||||
|
||||
OpenAPI_sponsoring_status_e spon_statusVariable;
|
||||
if (spon_status) {
|
||||
if (spon_status) {
|
||||
if (!cJSON_IsString(spon_status)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [spon_status]");
|
||||
goto end;
|
||||
|
@ -628,7 +627,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
@ -637,7 +636,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *gpsi = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "gpsi");
|
||||
|
||||
if (gpsi) {
|
||||
if (gpsi) {
|
||||
if (!cJSON_IsString(gpsi)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [gpsi]");
|
||||
goto end;
|
||||
|
@ -650,7 +649,6 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(supp_feat)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [supp_feat]");
|
||||
goto end;
|
||||
|
@ -658,7 +656,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *ue_ipv4 = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "ueIpv4");
|
||||
|
||||
if (ue_ipv4) {
|
||||
if (ue_ipv4) {
|
||||
if (!cJSON_IsString(ue_ipv4)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [ue_ipv4]");
|
||||
goto end;
|
||||
|
@ -667,7 +665,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *ue_ipv6 = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "ueIpv6");
|
||||
|
||||
if (ue_ipv6) {
|
||||
if (ue_ipv6) {
|
||||
if (!cJSON_IsString(ue_ipv6)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [ue_ipv6]");
|
||||
goto end;
|
||||
|
@ -676,7 +674,7 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
|
||||
cJSON *ue_mac = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "ueMac");
|
||||
|
||||
if (ue_mac) {
|
||||
if (ue_mac) {
|
||||
if (!cJSON_IsString(ue_mac)) {
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [ue_mac]");
|
||||
goto end;
|
||||
|
@ -686,21 +684,21 @@ OpenAPI_app_session_context_req_data_t *OpenAPI_app_session_context_req_data_par
|
|||
cJSON *tsn_bridge_man_cont = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "tsnBridgeManCont");
|
||||
|
||||
OpenAPI_bridge_management_container_t *tsn_bridge_man_cont_local_nonprim = NULL;
|
||||
if (tsn_bridge_man_cont) {
|
||||
if (tsn_bridge_man_cont) {
|
||||
tsn_bridge_man_cont_local_nonprim = OpenAPI_bridge_management_container_parseFromJSON(tsn_bridge_man_cont);
|
||||
}
|
||||
|
||||
cJSON *tsn_port_man_cont_dstt = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "tsnPortManContDstt");
|
||||
|
||||
OpenAPI_port_management_container_t *tsn_port_man_cont_dstt_local_nonprim = NULL;
|
||||
if (tsn_port_man_cont_dstt) {
|
||||
if (tsn_port_man_cont_dstt) {
|
||||
tsn_port_man_cont_dstt_local_nonprim = OpenAPI_port_management_container_parseFromJSON(tsn_port_man_cont_dstt);
|
||||
}
|
||||
|
||||
cJSON *tsn_port_man_cont_nwtts = cJSON_GetObjectItemCaseSensitive(app_session_context_req_dataJSON, "tsnPortManContNwtts");
|
||||
|
||||
OpenAPI_list_t *tsn_port_man_cont_nwttsList;
|
||||
if (tsn_port_man_cont_nwtts) {
|
||||
if (tsn_port_man_cont_nwtts) {
|
||||
cJSON *tsn_port_man_cont_nwtts_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tsn_port_man_cont_nwtts)){
|
||||
ogs_error("OpenAPI_app_session_context_req_data_parseFromJSON() failed [tsn_port_man_cont_nwtts]");
|
||||
|
|
|
@ -89,7 +89,7 @@ OpenAPI_app_session_context_resp_data_t *OpenAPI_app_session_context_resp_data_p
|
|||
cJSON *serv_auth_info = cJSON_GetObjectItemCaseSensitive(app_session_context_resp_dataJSON, "servAuthInfo");
|
||||
|
||||
OpenAPI_serv_auth_info_e serv_auth_infoVariable;
|
||||
if (serv_auth_info) {
|
||||
if (serv_auth_info) {
|
||||
if (!cJSON_IsString(serv_auth_info)) {
|
||||
ogs_error("OpenAPI_app_session_context_resp_data_parseFromJSON() failed [serv_auth_info]");
|
||||
goto end;
|
||||
|
@ -100,7 +100,7 @@ OpenAPI_app_session_context_resp_data_t *OpenAPI_app_session_context_resp_data_p
|
|||
cJSON *ue_ids = cJSON_GetObjectItemCaseSensitive(app_session_context_resp_dataJSON, "ueIds");
|
||||
|
||||
OpenAPI_list_t *ue_idsList;
|
||||
if (ue_ids) {
|
||||
if (ue_ids) {
|
||||
cJSON *ue_ids_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ue_ids)){
|
||||
ogs_error("OpenAPI_app_session_context_resp_data_parseFromJSON() failed [ue_ids]");
|
||||
|
@ -122,7 +122,7 @@ OpenAPI_app_session_context_resp_data_t *OpenAPI_app_session_context_resp_data_p
|
|||
|
||||
cJSON *supp_feat = cJSON_GetObjectItemCaseSensitive(app_session_context_resp_dataJSON, "suppFeat");
|
||||
|
||||
if (supp_feat) {
|
||||
if (supp_feat) {
|
||||
if (!cJSON_IsString(supp_feat)) {
|
||||
ogs_error("OpenAPI_app_session_context_resp_data_parseFromJSON() failed [supp_feat]");
|
||||
goto end;
|
||||
|
|
|
@ -294,7 +294,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
OpenAPI_app_session_context_update_data_t *app_session_context_update_data_local_var = NULL;
|
||||
cJSON *af_app_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "afAppId");
|
||||
|
||||
if (af_app_id) {
|
||||
if (af_app_id) {
|
||||
if (!cJSON_IsString(af_app_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [af_app_id]");
|
||||
goto end;
|
||||
|
@ -304,13 +304,13 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *af_rout_req = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "afRoutReq");
|
||||
|
||||
OpenAPI_af_routing_requirement_rm_t *af_rout_req_local_nonprim = NULL;
|
||||
if (af_rout_req) {
|
||||
if (af_rout_req) {
|
||||
af_rout_req_local_nonprim = OpenAPI_af_routing_requirement_rm_parseFromJSON(af_rout_req);
|
||||
}
|
||||
|
||||
cJSON *asp_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "aspId");
|
||||
|
||||
if (asp_id) {
|
||||
if (asp_id) {
|
||||
if (!cJSON_IsString(asp_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [asp_id]");
|
||||
goto end;
|
||||
|
@ -319,7 +319,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
|
||||
cJSON *bdt_ref_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "bdtRefId");
|
||||
|
||||
if (bdt_ref_id) {
|
||||
if (bdt_ref_id) {
|
||||
if (!cJSON_IsString(bdt_ref_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [bdt_ref_id]");
|
||||
goto end;
|
||||
|
@ -329,13 +329,13 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *ev_subsc = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "evSubsc");
|
||||
|
||||
OpenAPI_events_subsc_req_data_rm_t *ev_subsc_local_nonprim = NULL;
|
||||
if (ev_subsc) {
|
||||
if (ev_subsc) {
|
||||
ev_subsc_local_nonprim = OpenAPI_events_subsc_req_data_rm_parseFromJSON(ev_subsc);
|
||||
}
|
||||
|
||||
cJSON *mcptt_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "mcpttId");
|
||||
|
||||
if (mcptt_id) {
|
||||
if (mcptt_id) {
|
||||
if (!cJSON_IsString(mcptt_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [mcptt_id]");
|
||||
goto end;
|
||||
|
@ -344,7 +344,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
|
||||
cJSON *mc_video_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "mcVideoId");
|
||||
|
||||
if (mc_video_id) {
|
||||
if (mc_video_id) {
|
||||
if (!cJSON_IsString(mc_video_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [mc_video_id]");
|
||||
goto end;
|
||||
|
@ -354,7 +354,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *med_components = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "medComponents");
|
||||
|
||||
OpenAPI_list_t *med_componentsList;
|
||||
if (med_components) {
|
||||
if (med_components) {
|
||||
cJSON *med_components_local_map;
|
||||
if (!cJSON_IsObject(med_components)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [med_components]");
|
||||
|
@ -376,7 +376,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
|
||||
cJSON *mps_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "mpsId");
|
||||
|
||||
if (mps_id) {
|
||||
if (mps_id) {
|
||||
if (!cJSON_IsString(mps_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [mps_id]");
|
||||
goto end;
|
||||
|
@ -385,7 +385,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
|
||||
cJSON *mcs_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "mcsId");
|
||||
|
||||
if (mcs_id) {
|
||||
if (mcs_id) {
|
||||
if (!cJSON_IsString(mcs_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [mcs_id]");
|
||||
goto end;
|
||||
|
@ -395,14 +395,14 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *preempt_control_info = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "preemptControlInfo");
|
||||
|
||||
OpenAPI_preemption_control_information_rm_t *preempt_control_info_local_nonprim = NULL;
|
||||
if (preempt_control_info) {
|
||||
if (preempt_control_info) {
|
||||
preempt_control_info_local_nonprim = OpenAPI_preemption_control_information_rm_parseFromJSON(preempt_control_info);
|
||||
}
|
||||
|
||||
cJSON *res_prio = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "resPrio");
|
||||
|
||||
OpenAPI_reserv_priority_e res_prioVariable;
|
||||
if (res_prio) {
|
||||
if (res_prio) {
|
||||
if (!cJSON_IsString(res_prio)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [res_prio]");
|
||||
goto end;
|
||||
|
@ -413,7 +413,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *serv_inf_status = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "servInfStatus");
|
||||
|
||||
OpenAPI_service_info_status_e serv_inf_statusVariable;
|
||||
if (serv_inf_status) {
|
||||
if (serv_inf_status) {
|
||||
if (!cJSON_IsString(serv_inf_status)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [serv_inf_status]");
|
||||
goto end;
|
||||
|
@ -424,7 +424,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *sip_fork_ind = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "sipForkInd");
|
||||
|
||||
OpenAPI_sip_forking_indication_e sip_fork_indVariable;
|
||||
if (sip_fork_ind) {
|
||||
if (sip_fork_ind) {
|
||||
if (!cJSON_IsString(sip_fork_ind)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [sip_fork_ind]");
|
||||
goto end;
|
||||
|
@ -434,7 +434,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
|
||||
cJSON *spon_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "sponId");
|
||||
|
||||
if (spon_id) {
|
||||
if (spon_id) {
|
||||
if (!cJSON_IsString(spon_id)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [spon_id]");
|
||||
goto end;
|
||||
|
@ -444,7 +444,7 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *spon_status = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "sponStatus");
|
||||
|
||||
OpenAPI_sponsoring_status_e spon_statusVariable;
|
||||
if (spon_status) {
|
||||
if (spon_status) {
|
||||
if (!cJSON_IsString(spon_status)) {
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [spon_status]");
|
||||
goto end;
|
||||
|
@ -455,21 +455,21 @@ OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_da
|
|||
cJSON *tsn_bridge_man_cont = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "tsnBridgeManCont");
|
||||
|
||||
OpenAPI_bridge_management_container_t *tsn_bridge_man_cont_local_nonprim = NULL;
|
||||
if (tsn_bridge_man_cont) {
|
||||
if (tsn_bridge_man_cont) {
|
||||
tsn_bridge_man_cont_local_nonprim = OpenAPI_bridge_management_container_parseFromJSON(tsn_bridge_man_cont);
|
||||
}
|
||||
|
||||
cJSON *tsn_port_man_cont_dstt = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "tsnPortManContDstt");
|
||||
|
||||
OpenAPI_port_management_container_t *tsn_port_man_cont_dstt_local_nonprim = NULL;
|
||||
if (tsn_port_man_cont_dstt) {
|
||||
if (tsn_port_man_cont_dstt) {
|
||||
tsn_port_man_cont_dstt_local_nonprim = OpenAPI_port_management_container_parseFromJSON(tsn_port_man_cont_dstt);
|
||||
}
|
||||
|
||||
cJSON *tsn_port_man_cont_nwtts = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "tsnPortManContNwtts");
|
||||
|
||||
OpenAPI_list_t *tsn_port_man_cont_nwttsList;
|
||||
if (tsn_port_man_cont_nwtts) {
|
||||
if (tsn_port_man_cont_nwtts) {
|
||||
cJSON *tsn_port_man_cont_nwtts_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tsn_port_man_cont_nwtts)){
|
||||
ogs_error("OpenAPI_app_session_context_update_data_parseFromJSON() failed [tsn_port_man_cont_nwtts]");
|
||||
|
|
|
@ -60,7 +60,7 @@ OpenAPI_app_session_context_update_data_patch_t *OpenAPI_app_session_context_upd
|
|||
cJSON *asc_req_data = cJSON_GetObjectItemCaseSensitive(app_session_context_update_data_patchJSON, "ascReqData");
|
||||
|
||||
OpenAPI_app_session_context_update_data_t *asc_req_data_local_nonprim = NULL;
|
||||
if (asc_req_data) {
|
||||
if (asc_req_data) {
|
||||
asc_req_data_local_nonprim = OpenAPI_app_session_context_update_data_parseFromJSON(asc_req_data);
|
||||
}
|
||||
|
||||
|
|
|
@ -116,21 +116,21 @@ OpenAPI_application_data_change_notif_t *OpenAPI_application_data_change_notif_p
|
|||
cJSON *iptv_config_data = cJSON_GetObjectItemCaseSensitive(application_data_change_notifJSON, "iptvConfigData");
|
||||
|
||||
OpenAPI_iptv_config_data_t *iptv_config_data_local_nonprim = NULL;
|
||||
if (iptv_config_data) {
|
||||
if (iptv_config_data) {
|
||||
iptv_config_data_local_nonprim = OpenAPI_iptv_config_data_parseFromJSON(iptv_config_data);
|
||||
}
|
||||
|
||||
cJSON *pfd_data = cJSON_GetObjectItemCaseSensitive(application_data_change_notifJSON, "pfdData");
|
||||
|
||||
OpenAPI_pfd_change_notification_t *pfd_data_local_nonprim = NULL;
|
||||
if (pfd_data) {
|
||||
if (pfd_data) {
|
||||
pfd_data_local_nonprim = OpenAPI_pfd_change_notification_parseFromJSON(pfd_data);
|
||||
}
|
||||
|
||||
cJSON *bdt_policy_data = cJSON_GetObjectItemCaseSensitive(application_data_change_notifJSON, "bdtPolicyData");
|
||||
|
||||
OpenAPI_bdt_policy_data_t *bdt_policy_data_local_nonprim = NULL;
|
||||
if (bdt_policy_data) {
|
||||
if (bdt_policy_data) {
|
||||
bdt_policy_data_local_nonprim = OpenAPI_bdt_policy_data_parseFromJSON(bdt_policy_data);
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,6 @@ OpenAPI_application_data_change_notif_t *OpenAPI_application_data_change_notif_p
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(res_uri)) {
|
||||
ogs_error("OpenAPI_application_data_change_notif_parseFromJSON() failed [res_uri]");
|
||||
goto end;
|
||||
|
@ -149,7 +148,7 @@ OpenAPI_application_data_change_notif_t *OpenAPI_application_data_change_notif_p
|
|||
cJSON *ser_param_data = cJSON_GetObjectItemCaseSensitive(application_data_change_notifJSON, "serParamData");
|
||||
|
||||
OpenAPI_service_parameter_data_t *ser_param_data_local_nonprim = NULL;
|
||||
if (ser_param_data) {
|
||||
if (ser_param_data) {
|
||||
ser_param_data_local_nonprim = OpenAPI_service_parameter_data_parseFromJSON(ser_param_data);
|
||||
}
|
||||
|
||||
|
|
|
@ -101,7 +101,6 @@ OpenAPI_application_data_subs_t *OpenAPI_application_data_subs_parseFromJSON(cJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(notification_uri)) {
|
||||
ogs_error("OpenAPI_application_data_subs_parseFromJSON() failed [notification_uri]");
|
||||
goto end;
|
||||
|
@ -110,7 +109,7 @@ OpenAPI_application_data_subs_t *OpenAPI_application_data_subs_parseFromJSON(cJS
|
|||
cJSON *data_filters = cJSON_GetObjectItemCaseSensitive(application_data_subsJSON, "dataFilters");
|
||||
|
||||
OpenAPI_list_t *data_filtersList;
|
||||
if (data_filters) {
|
||||
if (data_filters) {
|
||||
cJSON *data_filters_local_nonprimitive;
|
||||
if (!cJSON_IsArray(data_filters)){
|
||||
ogs_error("OpenAPI_application_data_subs_parseFromJSON() failed [data_filters]");
|
||||
|
@ -132,7 +131,7 @@ OpenAPI_application_data_subs_t *OpenAPI_application_data_subs_parseFromJSON(cJS
|
|||
|
||||
cJSON *expiry = cJSON_GetObjectItemCaseSensitive(application_data_subsJSON, "expiry");
|
||||
|
||||
if (expiry) {
|
||||
if (expiry) {
|
||||
if (!cJSON_IsString(expiry)) {
|
||||
ogs_error("OpenAPI_application_data_subs_parseFromJSON() failed [expiry]");
|
||||
goto end;
|
||||
|
@ -141,7 +140,7 @@ OpenAPI_application_data_subs_t *OpenAPI_application_data_subs_parseFromJSON(cJS
|
|||
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(application_data_subsJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_application_data_subs_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
|
|
|
@ -76,7 +76,7 @@ OpenAPI_area_t *OpenAPI_area_parseFromJSON(cJSON *areaJSON)
|
|||
cJSON *tacs = cJSON_GetObjectItemCaseSensitive(areaJSON, "tacs");
|
||||
|
||||
OpenAPI_list_t *tacsList;
|
||||
if (tacs) {
|
||||
if (tacs) {
|
||||
cJSON *tacs_local;
|
||||
if (!cJSON_IsArray(tacs)) {
|
||||
ogs_error("OpenAPI_area_parseFromJSON() failed [tacs]");
|
||||
|
@ -90,12 +90,12 @@ OpenAPI_area_t *OpenAPI_area_parseFromJSON(cJSON *areaJSON)
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(tacsList , ogs_strdup_or_assert(tacs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *area_code = cJSON_GetObjectItemCaseSensitive(areaJSON, "areaCode");
|
||||
|
||||
if (area_code) {
|
||||
if (area_code) {
|
||||
if (!cJSON_IsString(area_code)) {
|
||||
ogs_error("OpenAPI_area_parseFromJSON() failed [area_code]");
|
||||
goto end;
|
||||
|
|
|
@ -76,7 +76,7 @@ OpenAPI_area_1_t *OpenAPI_area_1_parseFromJSON(cJSON *area_1JSON)
|
|||
cJSON *tacs = cJSON_GetObjectItemCaseSensitive(area_1JSON, "tacs");
|
||||
|
||||
OpenAPI_list_t *tacsList;
|
||||
if (tacs) {
|
||||
if (tacs) {
|
||||
cJSON *tacs_local;
|
||||
if (!cJSON_IsArray(tacs)) {
|
||||
ogs_error("OpenAPI_area_1_parseFromJSON() failed [tacs]");
|
||||
|
@ -90,12 +90,12 @@ OpenAPI_area_1_t *OpenAPI_area_1_parseFromJSON(cJSON *area_1JSON)
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(tacsList , ogs_strdup_or_assert(tacs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *area_code = cJSON_GetObjectItemCaseSensitive(area_1JSON, "areaCode");
|
||||
|
||||
if (area_code) {
|
||||
if (area_code) {
|
||||
if (!cJSON_IsString(area_code)) {
|
||||
ogs_error("OpenAPI_area_1_parseFromJSON() failed [area_code]");
|
||||
goto end;
|
||||
|
|
|
@ -72,7 +72,6 @@ OpenAPI_area_of_validity_t *OpenAPI_area_of_validity_parseFromJSON(cJSON *area_o
|
|||
}
|
||||
|
||||
OpenAPI_list_t *tai_listList;
|
||||
|
||||
cJSON *tai_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tai_list)){
|
||||
ogs_error("OpenAPI_area_of_validity_parseFromJSON() failed [tai_list]");
|
||||
|
|
|
@ -139,7 +139,7 @@ OpenAPI_area_scope_t *OpenAPI_area_scope_parseFromJSON(cJSON *area_scopeJSON)
|
|||
cJSON *eutra_cell_id_list = cJSON_GetObjectItemCaseSensitive(area_scopeJSON, "eutraCellIdList");
|
||||
|
||||
OpenAPI_list_t *eutra_cell_id_listList;
|
||||
if (eutra_cell_id_list) {
|
||||
if (eutra_cell_id_list) {
|
||||
cJSON *eutra_cell_id_list_local;
|
||||
if (!cJSON_IsArray(eutra_cell_id_list)) {
|
||||
ogs_error("OpenAPI_area_scope_parseFromJSON() failed [eutra_cell_id_list]");
|
||||
|
@ -153,13 +153,13 @@ OpenAPI_area_scope_t *OpenAPI_area_scope_parseFromJSON(cJSON *area_scopeJSON)
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(eutra_cell_id_listList , ogs_strdup_or_assert(eutra_cell_id_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *nr_cell_id_list = cJSON_GetObjectItemCaseSensitive(area_scopeJSON, "nrCellIdList");
|
||||
|
||||
OpenAPI_list_t *nr_cell_id_listList;
|
||||
if (nr_cell_id_list) {
|
||||
if (nr_cell_id_list) {
|
||||
cJSON *nr_cell_id_list_local;
|
||||
if (!cJSON_IsArray(nr_cell_id_list)) {
|
||||
ogs_error("OpenAPI_area_scope_parseFromJSON() failed [nr_cell_id_list]");
|
||||
|
@ -173,13 +173,13 @@ OpenAPI_area_scope_t *OpenAPI_area_scope_parseFromJSON(cJSON *area_scopeJSON)
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(nr_cell_id_listList , ogs_strdup_or_assert(nr_cell_id_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *tac_list = cJSON_GetObjectItemCaseSensitive(area_scopeJSON, "tacList");
|
||||
|
||||
OpenAPI_list_t *tac_listList;
|
||||
if (tac_list) {
|
||||
if (tac_list) {
|
||||
cJSON *tac_list_local;
|
||||
if (!cJSON_IsArray(tac_list)) {
|
||||
ogs_error("OpenAPI_area_scope_parseFromJSON() failed [tac_list]");
|
||||
|
@ -193,13 +193,13 @@ OpenAPI_area_scope_t *OpenAPI_area_scope_parseFromJSON(cJSON *area_scopeJSON)
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(tac_listList , ogs_strdup_or_assert(tac_list_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *tac_info_per_plmn = cJSON_GetObjectItemCaseSensitive(area_scopeJSON, "tacInfoPerPlmn");
|
||||
|
||||
OpenAPI_list_t *tac_info_per_plmnList;
|
||||
if (tac_info_per_plmn) {
|
||||
if (tac_info_per_plmn) {
|
||||
cJSON *tac_info_per_plmn_local_map;
|
||||
if (!cJSON_IsObject(tac_info_per_plmn)) {
|
||||
ogs_error("OpenAPI_area_scope_parseFromJSON() failed [tac_info_per_plmn]");
|
||||
|
|
|
@ -68,7 +68,6 @@ OpenAPI_arp_t *OpenAPI_arp_parseFromJSON(cJSON *arpJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(priority_level)) {
|
||||
ogs_error("OpenAPI_arp_parseFromJSON() failed [priority_level]");
|
||||
goto end;
|
||||
|
@ -81,7 +80,6 @@ OpenAPI_arp_t *OpenAPI_arp_parseFromJSON(cJSON *arpJSON)
|
|||
}
|
||||
|
||||
OpenAPI_preemption_capability_e preempt_capVariable;
|
||||
|
||||
if (!cJSON_IsString(preempt_cap)) {
|
||||
ogs_error("OpenAPI_arp_parseFromJSON() failed [preempt_cap]");
|
||||
goto end;
|
||||
|
@ -95,7 +93,6 @@ OpenAPI_arp_t *OpenAPI_arp_parseFromJSON(cJSON *arpJSON)
|
|||
}
|
||||
|
||||
OpenAPI_preemption_vulnerability_e preempt_vulnVariable;
|
||||
|
||||
if (!cJSON_IsString(preempt_vuln)) {
|
||||
ogs_error("OpenAPI_arp_parseFromJSON() failed [preempt_vuln]");
|
||||
goto end;
|
||||
|
@ -103,6 +100,7 @@ OpenAPI_arp_t *OpenAPI_arp_parseFromJSON(cJSON *arpJSON)
|
|||
preempt_vulnVariable = OpenAPI_preemption_vulnerability_FromString(preempt_vuln->valuestring);
|
||||
|
||||
arp_local_var = OpenAPI_arp_create (
|
||||
|
||||
priority_level->valuedouble,
|
||||
preempt_capVariable,
|
||||
preempt_vulnVariable
|
||||
|
|
|
@ -68,7 +68,6 @@ OpenAPI_arp_1_t *OpenAPI_arp_1_parseFromJSON(cJSON *arp_1JSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(priority_level)) {
|
||||
ogs_error("OpenAPI_arp_1_parseFromJSON() failed [priority_level]");
|
||||
goto end;
|
||||
|
@ -81,7 +80,6 @@ OpenAPI_arp_1_t *OpenAPI_arp_1_parseFromJSON(cJSON *arp_1JSON)
|
|||
}
|
||||
|
||||
OpenAPI_preemption_capability_e preempt_capVariable;
|
||||
|
||||
if (!cJSON_IsString(preempt_cap)) {
|
||||
ogs_error("OpenAPI_arp_1_parseFromJSON() failed [preempt_cap]");
|
||||
goto end;
|
||||
|
@ -95,7 +93,6 @@ OpenAPI_arp_1_t *OpenAPI_arp_1_parseFromJSON(cJSON *arp_1JSON)
|
|||
}
|
||||
|
||||
OpenAPI_preemption_vulnerability_e preempt_vulnVariable;
|
||||
|
||||
if (!cJSON_IsString(preempt_vuln)) {
|
||||
ogs_error("OpenAPI_arp_1_parseFromJSON() failed [preempt_vuln]");
|
||||
goto end;
|
||||
|
@ -103,6 +100,7 @@ OpenAPI_arp_1_t *OpenAPI_arp_1_parseFromJSON(cJSON *arp_1JSON)
|
|||
preempt_vulnVariable = OpenAPI_preemption_vulnerability_FromString(preempt_vuln->valuestring);
|
||||
|
||||
arp_1_local_var = OpenAPI_arp_1_create (
|
||||
|
||||
priority_level->valuedouble,
|
||||
preempt_capVariable,
|
||||
preempt_vulnVariable
|
||||
|
|
|
@ -118,7 +118,6 @@ OpenAPI_assign_ebi_data_t *OpenAPI_assign_ebi_data_parseFromJSON(cJSON *assign_e
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(pdu_session_id)) {
|
||||
ogs_error("OpenAPI_assign_ebi_data_parseFromJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
|
@ -127,7 +126,7 @@ OpenAPI_assign_ebi_data_t *OpenAPI_assign_ebi_data_parseFromJSON(cJSON *assign_e
|
|||
cJSON *arp_list = cJSON_GetObjectItemCaseSensitive(assign_ebi_dataJSON, "arpList");
|
||||
|
||||
OpenAPI_list_t *arp_listList;
|
||||
if (arp_list) {
|
||||
if (arp_list) {
|
||||
cJSON *arp_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(arp_list)){
|
||||
ogs_error("OpenAPI_assign_ebi_data_parseFromJSON() failed [arp_list]");
|
||||
|
@ -150,7 +149,7 @@ OpenAPI_assign_ebi_data_t *OpenAPI_assign_ebi_data_parseFromJSON(cJSON *assign_e
|
|||
cJSON *released_ebi_list = cJSON_GetObjectItemCaseSensitive(assign_ebi_dataJSON, "releasedEbiList");
|
||||
|
||||
OpenAPI_list_t *released_ebi_listList;
|
||||
if (released_ebi_list) {
|
||||
if (released_ebi_list) {
|
||||
cJSON *released_ebi_list_local;
|
||||
if (!cJSON_IsArray(released_ebi_list)) {
|
||||
ogs_error("OpenAPI_assign_ebi_data_parseFromJSON() failed [released_ebi_list]");
|
||||
|
@ -164,17 +163,18 @@ OpenAPI_assign_ebi_data_t *OpenAPI_assign_ebi_data_parseFromJSON(cJSON *assign_e
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(released_ebi_listList , &released_ebi_list_local->valuedouble);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *old_guami = cJSON_GetObjectItemCaseSensitive(assign_ebi_dataJSON, "oldGuami");
|
||||
|
||||
OpenAPI_guami_t *old_guami_local_nonprim = NULL;
|
||||
if (old_guami) {
|
||||
if (old_guami) {
|
||||
old_guami_local_nonprim = OpenAPI_guami_parseFromJSON(old_guami);
|
||||
}
|
||||
|
||||
assign_ebi_data_local_var = OpenAPI_assign_ebi_data_create (
|
||||
|
||||
pdu_session_id->valuedouble,
|
||||
arp_list ? arp_listList : NULL,
|
||||
released_ebi_list ? released_ebi_listList : NULL,
|
||||
|
|
|
@ -76,7 +76,6 @@ OpenAPI_assign_ebi_error_t *OpenAPI_assign_ebi_error_parseFromJSON(cJSON *assign
|
|||
}
|
||||
|
||||
OpenAPI_problem_details_t *error_local_nonprim = NULL;
|
||||
|
||||
error_local_nonprim = OpenAPI_problem_details_parseFromJSON(error);
|
||||
|
||||
cJSON *failure_details = cJSON_GetObjectItemCaseSensitive(assign_ebi_errorJSON, "failureDetails");
|
||||
|
@ -86,7 +85,6 @@ OpenAPI_assign_ebi_error_t *OpenAPI_assign_ebi_error_parseFromJSON(cJSON *assign
|
|||
}
|
||||
|
||||
OpenAPI_assign_ebi_failed_t *failure_details_local_nonprim = NULL;
|
||||
|
||||
failure_details_local_nonprim = OpenAPI_assign_ebi_failed_parseFromJSON(failure_details);
|
||||
|
||||
assign_ebi_error_local_var = OpenAPI_assign_ebi_error_create (
|
||||
|
|
|
@ -80,7 +80,6 @@ OpenAPI_assign_ebi_failed_t *OpenAPI_assign_ebi_failed_parseFromJSON(cJSON *assi
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(pdu_session_id)) {
|
||||
ogs_error("OpenAPI_assign_ebi_failed_parseFromJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
|
@ -89,7 +88,7 @@ OpenAPI_assign_ebi_failed_t *OpenAPI_assign_ebi_failed_parseFromJSON(cJSON *assi
|
|||
cJSON *failed_arp_list = cJSON_GetObjectItemCaseSensitive(assign_ebi_failedJSON, "failedArpList");
|
||||
|
||||
OpenAPI_list_t *failed_arp_listList;
|
||||
if (failed_arp_list) {
|
||||
if (failed_arp_list) {
|
||||
cJSON *failed_arp_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(failed_arp_list)){
|
||||
ogs_error("OpenAPI_assign_ebi_failed_parseFromJSON() failed [failed_arp_list]");
|
||||
|
@ -110,6 +109,7 @@ OpenAPI_assign_ebi_failed_t *OpenAPI_assign_ebi_failed_parseFromJSON(cJSON *assi
|
|||
}
|
||||
|
||||
assign_ebi_failed_local_var = OpenAPI_assign_ebi_failed_create (
|
||||
|
||||
pdu_session_id->valuedouble,
|
||||
failed_arp_list ? failed_arp_listList : NULL
|
||||
);
|
||||
|
|
|
@ -126,7 +126,6 @@ OpenAPI_assigned_ebi_data_t *OpenAPI_assigned_ebi_data_parseFromJSON(cJSON *assi
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(pdu_session_id)) {
|
||||
ogs_error("OpenAPI_assigned_ebi_data_parseFromJSON() failed [pdu_session_id]");
|
||||
goto end;
|
||||
|
@ -139,7 +138,6 @@ OpenAPI_assigned_ebi_data_t *OpenAPI_assigned_ebi_data_parseFromJSON(cJSON *assi
|
|||
}
|
||||
|
||||
OpenAPI_list_t *assigned_ebi_listList;
|
||||
|
||||
cJSON *assigned_ebi_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(assigned_ebi_list)){
|
||||
ogs_error("OpenAPI_assigned_ebi_data_parseFromJSON() failed [assigned_ebi_list]");
|
||||
|
@ -161,7 +159,7 @@ OpenAPI_assigned_ebi_data_t *OpenAPI_assigned_ebi_data_parseFromJSON(cJSON *assi
|
|||
cJSON *failed_arp_list = cJSON_GetObjectItemCaseSensitive(assigned_ebi_dataJSON, "failedArpList");
|
||||
|
||||
OpenAPI_list_t *failed_arp_listList;
|
||||
if (failed_arp_list) {
|
||||
if (failed_arp_list) {
|
||||
cJSON *failed_arp_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(failed_arp_list)){
|
||||
ogs_error("OpenAPI_assigned_ebi_data_parseFromJSON() failed [failed_arp_list]");
|
||||
|
@ -184,7 +182,7 @@ OpenAPI_assigned_ebi_data_t *OpenAPI_assigned_ebi_data_parseFromJSON(cJSON *assi
|
|||
cJSON *released_ebi_list = cJSON_GetObjectItemCaseSensitive(assigned_ebi_dataJSON, "releasedEbiList");
|
||||
|
||||
OpenAPI_list_t *released_ebi_listList;
|
||||
if (released_ebi_list) {
|
||||
if (released_ebi_list) {
|
||||
cJSON *released_ebi_list_local;
|
||||
if (!cJSON_IsArray(released_ebi_list)) {
|
||||
ogs_error("OpenAPI_assigned_ebi_data_parseFromJSON() failed [released_ebi_list]");
|
||||
|
@ -198,10 +196,11 @@ OpenAPI_assigned_ebi_data_t *OpenAPI_assigned_ebi_data_parseFromJSON(cJSON *assi
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(released_ebi_listList , &released_ebi_list_local->valuedouble);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assigned_ebi_data_local_var = OpenAPI_assigned_ebi_data_create (
|
||||
|
||||
pdu_session_id->valuedouble,
|
||||
assigned_ebi_listList,
|
||||
failed_arp_list ? failed_arp_listList : NULL,
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_atom_t *OpenAPI_atom_create(
|
||||
char *attr,
|
||||
char *value,
|
||||
bool is_negative,
|
||||
int negative
|
||||
)
|
||||
{
|
||||
|
@ -16,6 +17,7 @@ OpenAPI_atom_t *OpenAPI_atom_create(
|
|||
}
|
||||
atom_local_var->attr = attr;
|
||||
atom_local_var->value = value;
|
||||
atom_local_var->is_negative = is_negative;
|
||||
atom_local_var->negative = negative;
|
||||
|
||||
return atom_local_var;
|
||||
|
@ -52,7 +54,7 @@ cJSON *OpenAPI_atom_convertToJSON(OpenAPI_atom_t *atom)
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (atom->negative) {
|
||||
if (atom->is_negative) {
|
||||
if (cJSON_AddBoolToObject(item, "negative", atom->negative) == NULL) {
|
||||
ogs_error("OpenAPI_atom_convertToJSON() failed [negative]");
|
||||
goto end;
|
||||
|
@ -72,7 +74,6 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(attr)) {
|
||||
ogs_error("OpenAPI_atom_parseFromJSON() failed [attr]");
|
||||
goto end;
|
||||
|
@ -84,7 +85,6 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(value)) {
|
||||
ogs_error("OpenAPI_atom_parseFromJSON() failed [value]");
|
||||
goto end;
|
||||
|
@ -92,7 +92,7 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
|
||||
cJSON *negative = cJSON_GetObjectItemCaseSensitive(atomJSON, "negative");
|
||||
|
||||
if (negative) {
|
||||
if (negative) {
|
||||
if (!cJSON_IsBool(negative)) {
|
||||
ogs_error("OpenAPI_atom_parseFromJSON() failed [negative]");
|
||||
goto end;
|
||||
|
@ -102,6 +102,7 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
atom_local_var = OpenAPI_atom_create (
|
||||
ogs_strdup_or_assert(attr->valuestring),
|
||||
ogs_strdup_or_assert(value->valuestring),
|
||||
negative ? true : false,
|
||||
negative ? negative->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
@ -21,12 +21,14 @@ typedef struct OpenAPI_atom_s OpenAPI_atom_t;
|
|||
typedef struct OpenAPI_atom_s {
|
||||
char *attr;
|
||||
char *value;
|
||||
bool is_negative;
|
||||
int negative;
|
||||
} OpenAPI_atom_t;
|
||||
|
||||
OpenAPI_atom_t *OpenAPI_atom_create(
|
||||
char *attr,
|
||||
char *value,
|
||||
bool is_negative,
|
||||
int negative
|
||||
);
|
||||
void OpenAPI_atom_free(OpenAPI_atom_t *atom);
|
||||
|
|
|
@ -5,8 +5,11 @@
|
|||
#include "atsss_capability.h"
|
||||
|
||||
OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_create(
|
||||
bool is_atsss_ll,
|
||||
int atsss_ll,
|
||||
bool is_mptcp,
|
||||
int mptcp,
|
||||
bool is_rtt_without_pmf,
|
||||
int rtt_without_pmf
|
||||
)
|
||||
{
|
||||
|
@ -14,8 +17,11 @@ OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_create(
|
|||
if (!atsss_capability_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
atsss_capability_local_var->is_atsss_ll = is_atsss_ll;
|
||||
atsss_capability_local_var->atsss_ll = atsss_ll;
|
||||
atsss_capability_local_var->is_mptcp = is_mptcp;
|
||||
atsss_capability_local_var->mptcp = mptcp;
|
||||
atsss_capability_local_var->is_rtt_without_pmf = is_rtt_without_pmf;
|
||||
atsss_capability_local_var->rtt_without_pmf = rtt_without_pmf;
|
||||
|
||||
return atsss_capability_local_var;
|
||||
|
@ -40,21 +46,21 @@ cJSON *OpenAPI_atsss_capability_convertToJSON(OpenAPI_atsss_capability_t *atsss_
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (atsss_capability->atsss_ll) {
|
||||
if (atsss_capability->is_atsss_ll) {
|
||||
if (cJSON_AddBoolToObject(item, "atsssLL", atsss_capability->atsss_ll) == NULL) {
|
||||
ogs_error("OpenAPI_atsss_capability_convertToJSON() failed [atsss_ll]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (atsss_capability->mptcp) {
|
||||
if (atsss_capability->is_mptcp) {
|
||||
if (cJSON_AddBoolToObject(item, "mptcp", atsss_capability->mptcp) == NULL) {
|
||||
ogs_error("OpenAPI_atsss_capability_convertToJSON() failed [mptcp]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (atsss_capability->rtt_without_pmf) {
|
||||
if (atsss_capability->is_rtt_without_pmf) {
|
||||
if (cJSON_AddBoolToObject(item, "rttWithoutPmf", atsss_capability->rtt_without_pmf) == NULL) {
|
||||
ogs_error("OpenAPI_atsss_capability_convertToJSON() failed [rtt_without_pmf]");
|
||||
goto end;
|
||||
|
@ -70,7 +76,7 @@ OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_parseFromJSON(cJSON *atsss_
|
|||
OpenAPI_atsss_capability_t *atsss_capability_local_var = NULL;
|
||||
cJSON *atsss_ll = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "atsssLL");
|
||||
|
||||
if (atsss_ll) {
|
||||
if (atsss_ll) {
|
||||
if (!cJSON_IsBool(atsss_ll)) {
|
||||
ogs_error("OpenAPI_atsss_capability_parseFromJSON() failed [atsss_ll]");
|
||||
goto end;
|
||||
|
@ -79,7 +85,7 @@ OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_parseFromJSON(cJSON *atsss_
|
|||
|
||||
cJSON *mptcp = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "mptcp");
|
||||
|
||||
if (mptcp) {
|
||||
if (mptcp) {
|
||||
if (!cJSON_IsBool(mptcp)) {
|
||||
ogs_error("OpenAPI_atsss_capability_parseFromJSON() failed [mptcp]");
|
||||
goto end;
|
||||
|
@ -88,7 +94,7 @@ OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_parseFromJSON(cJSON *atsss_
|
|||
|
||||
cJSON *rtt_without_pmf = cJSON_GetObjectItemCaseSensitive(atsss_capabilityJSON, "rttWithoutPmf");
|
||||
|
||||
if (rtt_without_pmf) {
|
||||
if (rtt_without_pmf) {
|
||||
if (!cJSON_IsBool(rtt_without_pmf)) {
|
||||
ogs_error("OpenAPI_atsss_capability_parseFromJSON() failed [rtt_without_pmf]");
|
||||
goto end;
|
||||
|
@ -96,8 +102,11 @@ OpenAPI_atsss_capability_t *OpenAPI_atsss_capability_parseFromJSON(cJSON *atsss_
|
|||
}
|
||||
|
||||
atsss_capability_local_var = OpenAPI_atsss_capability_create (
|
||||
atsss_ll ? true : false,
|
||||
atsss_ll ? atsss_ll->valueint : 0,
|
||||
mptcp ? true : false,
|
||||
mptcp ? mptcp->valueint : 0,
|
||||
rtt_without_pmf ? true : false,
|
||||
rtt_without_pmf ? rtt_without_pmf->valueint : 0
|
||||
);
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue