[SBI] Ignore unknown enum values and continue parsing (#2622) (#2649)

* [SBI] Ignore unknown enum values and continue parsing (#2622)

* [SBI] Reject empty enum lists (#2622)

Enum lists that are empty due to ignoring
unsupported enum values are also rejected.

* Revert changing `generator.sh`
This commit is contained in:
Brias 2023-10-26 15:44:51 +02:00 committed by GitHub
parent e3c2fd00d9
commit 3c6811a322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
72 changed files with 978 additions and 366 deletions

View File

@ -586,12 +586,17 @@ OpenAPI_access_and_mobility_data_t *OpenAPI_access_and_mobility_data_parseFromJS
}
localEnum = OpenAPI_rat_type_FromString(rat_type_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_type_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_type\" is not supported. Ignoring it ...",
rat_type_local->valuestring);
} else {
OpenAPI_list_add(rat_typeList, (void *)localEnum);
}
}
if (rat_typeList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_data_parseFromJSON() failed: Expected rat_typeList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
rat_types_ts = cJSON_GetObjectItemCaseSensitive(access_and_mobility_dataJSON, "ratTypesTs");
if (rat_types_ts) {

View File

@ -1186,12 +1186,17 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
}
localEnum = OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_restrictions\" is not supported. Ignoring it ...",
rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(rat_restrictionsList, (void *)localEnum);
}
}
if (rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed: Expected rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
forbidden_areas = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "forbiddenAreas");
if (forbidden_areas) {
@ -1244,12 +1249,17 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
}
localEnum = OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"core_network_type_restrictions\" is not supported. Ignoring it ...",
core_network_type_restrictions_local->valuestring);
} else {
OpenAPI_list_add(core_network_type_restrictionsList, (void *)localEnum);
}
}
if (core_network_type_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed: Expected core_network_type_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
rfsp_index = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "rfspIndex");
if (rfsp_index) {
@ -1348,12 +1358,17 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
}
localEnum = OpenAPI_sor_update_indicator_FromString(sor_update_indicator_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_sor_update_indicator_FromString(sor_update_indicator_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"sor_update_indicator_list\" is not supported. Ignoring it ...",
sor_update_indicator_list_local->valuestring);
} else {
OpenAPI_list_add(sor_update_indicator_listList, (void *)localEnum);
}
}
if (sor_update_indicator_listList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed: Expected sor_update_indicator_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
upu_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "upuInfo");
if (upu_info) {
@ -1561,12 +1576,17 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
}
localEnum = OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"primary_rat_restrictions\" is not supported. Ignoring it ...",
primary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(primary_rat_restrictionsList, (void *)localEnum);
}
}
if (primary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed: Expected primary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
secondary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "secondaryRatRestrictions");
if (secondary_rat_restrictions) {
@ -1586,12 +1606,17 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
}
localEnum = OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"secondary_rat_restrictions\" is not supported. Ignoring it ...",
secondary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(secondary_rat_restrictionsList, (void *)localEnum);
}
}
if (secondary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed: Expected secondary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
edrx_parameters_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "edrxParametersList");
if (edrx_parameters_list) {

View File

@ -1186,12 +1186,17 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
}
localEnum = OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_restrictions\" is not supported. Ignoring it ...",
rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(rat_restrictionsList, (void *)localEnum);
}
}
if (rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed: Expected rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
forbidden_areas = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "forbiddenAreas");
if (forbidden_areas) {
@ -1244,12 +1249,17 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
}
localEnum = OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"core_network_type_restrictions\" is not supported. Ignoring it ...",
core_network_type_restrictions_local->valuestring);
} else {
OpenAPI_list_add(core_network_type_restrictionsList, (void *)localEnum);
}
}
if (core_network_type_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed: Expected core_network_type_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
rfsp_index = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "rfspIndex");
if (rfsp_index) {
@ -1348,12 +1358,17 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
}
localEnum = OpenAPI_sor_update_indicator_FromString(sor_update_indicator_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_sor_update_indicator_FromString(sor_update_indicator_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"sor_update_indicator_list\" is not supported. Ignoring it ...",
sor_update_indicator_list_local->valuestring);
} else {
OpenAPI_list_add(sor_update_indicator_listList, (void *)localEnum);
}
}
if (sor_update_indicator_listList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed: Expected sor_update_indicator_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
upu_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "upuInfo");
if (upu_info) {
@ -1561,12 +1576,17 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
}
localEnum = OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"primary_rat_restrictions\" is not supported. Ignoring it ...",
primary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(primary_rat_restrictionsList, (void *)localEnum);
}
}
if (primary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed: Expected primary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
secondary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "secondaryRatRestrictions");
if (secondary_rat_restrictions) {
@ -1586,12 +1606,17 @@ OpenAPI_access_and_mobility_subscription_data_1_t *OpenAPI_access_and_mobility_s
}
localEnum = OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"secondary_rat_restrictions\" is not supported. Ignoring it ...",
secondary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(secondary_rat_restrictionsList, (void *)localEnum);
}
}
if (secondary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed: Expected secondary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
edrx_parameters_list = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "edrxParametersList");
if (edrx_parameters_list) {

View File

@ -138,11 +138,16 @@ OpenAPI_af_event_exposure_data_t *OpenAPI_af_event_exposure_data_parseFromJSON(c
}
localEnum = OpenAPI_af_event_FromString(af_events_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_af_event_FromString(af_events_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"af_events\" is not supported. Ignoring it ...",
af_events_local->valuestring);
} else {
OpenAPI_list_add(af_eventsList, (void *)localEnum);
}
}
if (af_eventsList->count == 0) {
ogs_error("OpenAPI_af_event_exposure_data_parseFromJSON() failed: Expected af_eventsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
af_ids = cJSON_GetObjectItemCaseSensitive(af_event_exposure_dataJSON, "afIds");
if (af_ids) {

View File

@ -259,12 +259,17 @@ OpenAPI_am_requested_value_rep_t *OpenAPI_am_requested_value_rep_parseFromJSON(c
}
localEnum = OpenAPI_access_type_FromString(access_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_types\" is not supported. Ignoring it ...",
access_types_local->valuestring);
} else {
OpenAPI_list_add(access_typesList, (void *)localEnum);
}
}
if (access_typesList->count == 0) {
ogs_error("OpenAPI_am_requested_value_rep_parseFromJSON() failed: Expected access_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
rat_types = cJSON_GetObjectItemCaseSensitive(am_requested_value_repJSON, "ratTypes");
if (rat_types) {
@ -284,12 +289,17 @@ OpenAPI_am_requested_value_rep_t *OpenAPI_am_requested_value_rep_parseFromJSON(c
}
localEnum = OpenAPI_rat_type_FromString(rat_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_types\" is not supported. Ignoring it ...",
rat_types_local->valuestring);
} else {
OpenAPI_list_add(rat_typesList, (void *)localEnum);
}
}
if (rat_typesList->count == 0) {
ogs_error("OpenAPI_am_requested_value_rep_parseFromJSON() failed: Expected rat_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
allowed_snssais = cJSON_GetObjectItemCaseSensitive(am_requested_value_repJSON, "allowedSnssais");
if (allowed_snssais) {

View File

@ -210,12 +210,17 @@ OpenAPI_amf_event_mode_t *OpenAPI_amf_event_mode_parseFromJSON(cJSON *amf_event_
}
localEnum = OpenAPI_partitioning_criteria_FromString(partitioning_criteria_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_partitioning_criteria_FromString(partitioning_criteria_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"partitioning_criteria\" is not supported. Ignoring it ...",
partitioning_criteria_local->valuestring);
} else {
OpenAPI_list_add(partitioning_criteriaList, (void *)localEnum);
}
}
if (partitioning_criteriaList->count == 0) {
ogs_error("OpenAPI_amf_event_mode_parseFromJSON() failed: Expected partitioning_criteriaList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
notif_flag = cJSON_GetObjectItemCaseSensitive(amf_event_modeJSON, "notifFlag");
if (notif_flag) {

View File

@ -212,11 +212,16 @@ OpenAPI_bsf_subscription_t *OpenAPI_bsf_subscription_parseFromJSON(cJSON *bsf_su
}
localEnum = OpenAPI_bsf_event_FromString(events_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_bsf_event_FromString(events_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"events\" is not supported. Ignoring it ...",
events_local->valuestring);
} else {
OpenAPI_list_add(eventsList, (void *)localEnum);
}
}
if (eventsList->count == 0) {
ogs_error("OpenAPI_bsf_subscription_parseFromJSON() failed: Expected eventsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
notif_uri = cJSON_GetObjectItemCaseSensitive(bsf_subscriptionJSON, "notifUri");
if (!notif_uri) {

View File

@ -280,11 +280,16 @@ OpenAPI_bsf_subscription_resp_t *OpenAPI_bsf_subscription_resp_parseFromJSON(cJS
}
localEnum = OpenAPI_bsf_event_FromString(events_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_bsf_event_FromString(events_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"events\" is not supported. Ignoring it ...",
events_local->valuestring);
} else {
OpenAPI_list_add(eventsList, (void *)localEnum);
}
}
if (eventsList->count == 0) {
ogs_error("OpenAPI_bsf_subscription_resp_parseFromJSON() failed: Expected eventsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
notif_uri = cJSON_GetObjectItemCaseSensitive(bsf_subscription_respJSON, "notifUri");
if (!notif_uri) {

View File

@ -186,12 +186,17 @@ OpenAPI_datalink_reporting_configuration_t *OpenAPI_datalink_reporting_configura
}
localEnum = OpenAPI_dl_data_delivery_status_FromString(ddd_status_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_dl_data_delivery_status_FromString(ddd_status_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"ddd_status_list\" is not supported. Ignoring it ...",
ddd_status_list_local->valuestring);
} else {
OpenAPI_list_add(ddd_status_listList, (void *)localEnum);
}
}
if (ddd_status_listList->count == 0) {
ogs_error("OpenAPI_datalink_reporting_configuration_parseFromJSON() failed: Expected ddd_status_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
datalink_reporting_configuration_local_var = OpenAPI_datalink_reporting_configuration_create (
ddd_traffic_des ? ddd_traffic_desList : NULL,

View File

@ -186,12 +186,17 @@ OpenAPI_datalink_reporting_configuration_1_t *OpenAPI_datalink_reporting_configu
}
localEnum = OpenAPI_dl_data_delivery_status_FromString(ddd_status_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_dl_data_delivery_status_FromString(ddd_status_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"ddd_status_list\" is not supported. Ignoring it ...",
ddd_status_list_local->valuestring);
} else {
OpenAPI_list_add(ddd_status_listList, (void *)localEnum);
}
}
if (ddd_status_listList->count == 0) {
ogs_error("OpenAPI_datalink_reporting_configuration_1_parseFromJSON() failed: Expected ddd_status_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
datalink_reporting_configuration_1_local_var = OpenAPI_datalink_reporting_configuration_1_create (
ddd_traffic_des ? ddd_traffic_desList : NULL,

View File

@ -257,12 +257,17 @@ OpenAPI_dccf_cond_t *OpenAPI_dccf_cond_parseFromJSON(cJSON *dccf_condJSON)
}
localEnum = OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_nf_type_list\" is not supported. Ignoring it ...",
serving_nf_type_list_local->valuestring);
} else {
OpenAPI_list_add(serving_nf_type_listList, (void *)localEnum);
}
}
if (serving_nf_type_listList->count == 0) {
ogs_error("OpenAPI_dccf_cond_parseFromJSON() failed: Expected serving_nf_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_nf_set_id_list = cJSON_GetObjectItemCaseSensitive(dccf_condJSON, "servingNfSetIdList");
if (serving_nf_set_id_list) {

View File

@ -162,12 +162,17 @@ OpenAPI_dccf_info_t *OpenAPI_dccf_info_parseFromJSON(cJSON *dccf_infoJSON)
}
localEnum = OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_nf_type_list\" is not supported. Ignoring it ...",
serving_nf_type_list_local->valuestring);
} else {
OpenAPI_list_add(serving_nf_type_listList, (void *)localEnum);
}
}
if (serving_nf_type_listList->count == 0) {
ogs_error("OpenAPI_dccf_info_parseFromJSON() failed: Expected serving_nf_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_nf_set_id_list = cJSON_GetObjectItemCaseSensitive(dccf_infoJSON, "servingNfSetIdList");
if (serving_nf_set_id_list) {

View File

@ -143,12 +143,17 @@ OpenAPI_dnn_route_selection_descriptor_t *OpenAPI_dnn_route_selection_descriptor
}
localEnum = OpenAPI_ssc_mode_FromString(ssc_modes_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_ssc_mode_FromString(ssc_modes_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"ssc_modes\" is not supported. Ignoring it ...",
ssc_modes_local->valuestring);
} else {
OpenAPI_list_add(ssc_modesList, (void *)localEnum);
}
}
if (ssc_modesList->count == 0) {
ogs_error("OpenAPI_dnn_route_selection_descriptor_parseFromJSON() failed: Expected ssc_modesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
pdu_sess_types = cJSON_GetObjectItemCaseSensitive(dnn_route_selection_descriptorJSON, "pduSessTypes");
if (pdu_sess_types) {
@ -168,12 +173,17 @@ OpenAPI_dnn_route_selection_descriptor_t *OpenAPI_dnn_route_selection_descriptor
}
localEnum = OpenAPI_pdu_session_type_FromString(pdu_sess_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_pdu_session_type_FromString(pdu_sess_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"pdu_sess_types\" is not supported. Ignoring it ...",
pdu_sess_types_local->valuestring);
} else {
OpenAPI_list_add(pdu_sess_typesList, (void *)localEnum);
}
}
if (pdu_sess_typesList->count == 0) {
ogs_error("OpenAPI_dnn_route_selection_descriptor_parseFromJSON() failed: Expected pdu_sess_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
atsss_info = cJSON_GetObjectItemCaseSensitive(dnn_route_selection_descriptorJSON, "atsssInfo");
if (atsss_info) {

View File

@ -303,12 +303,17 @@ OpenAPI_dnn_upf_info_item_t *OpenAPI_dnn_upf_info_item_parseFromJSON(cJSON *dnn_
}
localEnum = OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"pdu_session_types\" is not supported. Ignoring it ...",
pdu_session_types_local->valuestring);
} else {
OpenAPI_list_add(pdu_session_typesList, (void *)localEnum);
}
}
if (pdu_session_typesList->count == 0) {
ogs_error("OpenAPI_dnn_upf_info_item_parseFromJSON() failed: Expected pdu_session_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
ipv4_address_ranges = cJSON_GetObjectItemCaseSensitive(dnn_upf_info_itemJSON, "ipv4AddressRanges");
if (ipv4_address_ranges) {

View File

@ -105,12 +105,17 @@ OpenAPI_downlink_data_notification_control_t *OpenAPI_downlink_data_notification
}
localEnum = OpenAPI_notification_control_indication_FromString(notif_ctrl_inds_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_notification_control_indication_FromString(notif_ctrl_inds_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"notif_ctrl_inds\" is not supported. Ignoring it ...",
notif_ctrl_inds_local->valuestring);
} else {
OpenAPI_list_add(notif_ctrl_indsList, (void *)localEnum);
}
}
if (notif_ctrl_indsList->count == 0) {
ogs_error("OpenAPI_downlink_data_notification_control_parseFromJSON() failed: Expected notif_ctrl_indsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
types_of_notif = cJSON_GetObjectItemCaseSensitive(downlink_data_notification_controlJSON, "typesOfNotif");
if (types_of_notif) {
@ -130,12 +135,17 @@ OpenAPI_downlink_data_notification_control_t *OpenAPI_downlink_data_notification
}
localEnum = OpenAPI_dl_data_delivery_status_FromString(types_of_notif_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_dl_data_delivery_status_FromString(types_of_notif_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"types_of_notif\" is not supported. Ignoring it ...",
types_of_notif_local->valuestring);
} else {
OpenAPI_list_add(types_of_notifList, (void *)localEnum);
}
}
if (types_of_notifList->count == 0) {
ogs_error("OpenAPI_downlink_data_notification_control_parseFromJSON() failed: Expected types_of_notifList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
downlink_data_notification_control_local_var = OpenAPI_downlink_data_notification_control_create (
notif_ctrl_inds ? notif_ctrl_indsList : NULL,

View File

@ -120,12 +120,17 @@ OpenAPI_downlink_data_notification_control_rm_t *OpenAPI_downlink_data_notificat
}
localEnum = OpenAPI_notification_control_indication_FromString(notif_ctrl_inds_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_notification_control_indication_FromString(notif_ctrl_inds_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"notif_ctrl_inds\" is not supported. Ignoring it ...",
notif_ctrl_inds_local->valuestring);
} else {
OpenAPI_list_add(notif_ctrl_indsList, (void *)localEnum);
}
}
if (notif_ctrl_indsList->count == 0) {
ogs_error("OpenAPI_downlink_data_notification_control_rm_parseFromJSON() failed: Expected notif_ctrl_indsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
}
types_of_notif = cJSON_GetObjectItemCaseSensitive(downlink_data_notification_control_rmJSON, "typesOfNotif");
@ -147,12 +152,17 @@ OpenAPI_downlink_data_notification_control_rm_t *OpenAPI_downlink_data_notificat
}
localEnum = OpenAPI_dl_data_delivery_status_FromString(types_of_notif_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_dl_data_delivery_status_FromString(types_of_notif_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"types_of_notif\" is not supported. Ignoring it ...",
types_of_notif_local->valuestring);
} else {
OpenAPI_list_add(types_of_notifList, (void *)localEnum);
}
}
if (types_of_notifList->count == 0) {
ogs_error("OpenAPI_downlink_data_notification_control_rm_parseFromJSON() failed: Expected types_of_notifList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
}
downlink_data_notification_control_rm_local_var = OpenAPI_downlink_data_notification_control_rm_create (

View File

@ -242,12 +242,17 @@ OpenAPI_error_report_t *OpenAPI_error_report_parseFromJSON(cJSON *error_reportJS
}
localEnum = OpenAPI_policy_decision_failure_code_FromString(pol_dec_failure_reports_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_decision_failure_code_FromString(pol_dec_failure_reports_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"pol_dec_failure_reports\" is not supported. Ignoring it ...",
pol_dec_failure_reports_local->valuestring);
} else {
OpenAPI_list_add(pol_dec_failure_reportsList, (void *)localEnum);
}
}
if (pol_dec_failure_reportsList->count == 0) {
ogs_error("OpenAPI_error_report_parseFromJSON() failed: Expected pol_dec_failure_reportsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
invalid_policy_decs = cJSON_GetObjectItemCaseSensitive(error_reportJSON, "invalidPolicyDecs");
if (invalid_policy_decs) {

View File

@ -1195,12 +1195,17 @@ OpenAPI_event_subscription_t *OpenAPI_event_subscription_parseFromJSON(cJSON *ev
}
localEnum = OpenAPI_nf_type_FromString(nf_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(nf_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"nf_types\" is not supported. Ignoring it ...",
nf_types_local->valuestring);
} else {
OpenAPI_list_add(nf_typesList, (void *)localEnum);
}
}
if (nf_typesList->count == 0) {
ogs_error("OpenAPI_event_subscription_parseFromJSON() failed: Expected nf_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
network_area = cJSON_GetObjectItemCaseSensitive(event_subscriptionJSON, "networkArea");
if (network_area) {

View File

@ -824,12 +824,17 @@ OpenAPI_events_subsc_put_data_t *OpenAPI_events_subsc_put_data_parseFromJSON(cJS
}
localEnum = OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_qos_mon_params\" is not supported. Ignoring it ...",
req_qos_mon_params_local->valuestring);
} else {
OpenAPI_list_add(req_qos_mon_paramsList, (void *)localEnum);
}
}
if (req_qos_mon_paramsList->count == 0) {
ogs_error("OpenAPI_events_subsc_put_data_parseFromJSON() failed: Expected req_qos_mon_paramsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
qos_mon = cJSON_GetObjectItemCaseSensitive(events_subsc_put_dataJSON, "qosMon");
if (qos_mon) {
@ -858,12 +863,17 @@ OpenAPI_events_subsc_put_data_t *OpenAPI_events_subsc_put_data_parseFromJSON(cJS
}
localEnum = OpenAPI_required_access_info_FromString(req_anis_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_required_access_info_FromString(req_anis_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_anis\" is not supported. Ignoring it ...",
req_anis_local->valuestring);
} else {
OpenAPI_list_add(req_anisList, (void *)localEnum);
}
}
if (req_anisList->count == 0) {
ogs_error("OpenAPI_events_subsc_put_data_parseFromJSON() failed: Expected req_anisList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
usg_thres = cJSON_GetObjectItemCaseSensitive(events_subsc_put_dataJSON, "usgThres");
if (usg_thres) {

View File

@ -275,12 +275,17 @@ OpenAPI_events_subsc_req_data_t *OpenAPI_events_subsc_req_data_parseFromJSON(cJS
}
localEnum = OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_qos_mon_params\" is not supported. Ignoring it ...",
req_qos_mon_params_local->valuestring);
} else {
OpenAPI_list_add(req_qos_mon_paramsList, (void *)localEnum);
}
}
if (req_qos_mon_paramsList->count == 0) {
ogs_error("OpenAPI_events_subsc_req_data_parseFromJSON() failed: Expected req_qos_mon_paramsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
qos_mon = cJSON_GetObjectItemCaseSensitive(events_subsc_req_dataJSON, "qosMon");
if (qos_mon) {
@ -309,12 +314,17 @@ OpenAPI_events_subsc_req_data_t *OpenAPI_events_subsc_req_data_parseFromJSON(cJS
}
localEnum = OpenAPI_required_access_info_FromString(req_anis_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_required_access_info_FromString(req_anis_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_anis\" is not supported. Ignoring it ...",
req_anis_local->valuestring);
} else {
OpenAPI_list_add(req_anisList, (void *)localEnum);
}
}
if (req_anisList->count == 0) {
ogs_error("OpenAPI_events_subsc_req_data_parseFromJSON() failed: Expected req_anisList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
usg_thres = cJSON_GetObjectItemCaseSensitive(events_subsc_req_dataJSON, "usgThres");
if (usg_thres) {

View File

@ -271,12 +271,17 @@ OpenAPI_events_subsc_req_data_rm_t *OpenAPI_events_subsc_req_data_rm_parseFromJS
}
localEnum = OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_qos_mon_params\" is not supported. Ignoring it ...",
req_qos_mon_params_local->valuestring);
} else {
OpenAPI_list_add(req_qos_mon_paramsList, (void *)localEnum);
}
}
if (req_qos_mon_paramsList->count == 0) {
ogs_error("OpenAPI_events_subsc_req_data_rm_parseFromJSON() failed: Expected req_qos_mon_paramsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
qos_mon = cJSON_GetObjectItemCaseSensitive(events_subsc_req_data_rmJSON, "qosMon");
if (qos_mon) {
@ -307,12 +312,17 @@ OpenAPI_events_subsc_req_data_rm_t *OpenAPI_events_subsc_req_data_rm_parseFromJS
}
localEnum = OpenAPI_required_access_info_FromString(req_anis_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_required_access_info_FromString(req_anis_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_anis\" is not supported. Ignoring it ...",
req_anis_local->valuestring);
} else {
OpenAPI_list_add(req_anisList, (void *)localEnum);
}
}
if (req_anisList->count == 0) {
ogs_error("OpenAPI_events_subsc_req_data_rm_parseFromJSON() failed: Expected req_anisList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
usg_thres = cJSON_GetObjectItemCaseSensitive(events_subsc_req_data_rmJSON, "usgThres");
if (usg_thres) {

View File

@ -368,12 +368,17 @@ OpenAPI_immediate_mdt_conf_t *OpenAPI_immediate_mdt_conf_parseFromJSON(cJSON *im
}
localEnum = OpenAPI_measurement_lte_for_mdt_FromString(measurement_lte_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_measurement_lte_for_mdt_FromString(measurement_lte_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"measurement_lte_list\" is not supported. Ignoring it ...",
measurement_lte_list_local->valuestring);
} else {
OpenAPI_list_add(measurement_lte_listList, (void *)localEnum);
}
}
if (measurement_lte_listList->count == 0) {
ogs_error("OpenAPI_immediate_mdt_conf_parseFromJSON() failed: Expected measurement_lte_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
measurement_nr_list = cJSON_GetObjectItemCaseSensitive(immediate_mdt_confJSON, "measurementNrList");
if (measurement_nr_list) {
@ -393,12 +398,17 @@ OpenAPI_immediate_mdt_conf_t *OpenAPI_immediate_mdt_conf_parseFromJSON(cJSON *im
}
localEnum = OpenAPI_measurement_nr_for_mdt_FromString(measurement_nr_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_measurement_nr_for_mdt_FromString(measurement_nr_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"measurement_nr_list\" is not supported. Ignoring it ...",
measurement_nr_list_local->valuestring);
} else {
OpenAPI_list_add(measurement_nr_listList, (void *)localEnum);
}
}
if (measurement_nr_listList->count == 0) {
ogs_error("OpenAPI_immediate_mdt_conf_parseFromJSON() failed: Expected measurement_nr_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
reporting_trigger_list = cJSON_GetObjectItemCaseSensitive(immediate_mdt_confJSON, "reportingTriggerList");
if (reporting_trigger_list) {
@ -418,12 +428,17 @@ OpenAPI_immediate_mdt_conf_t *OpenAPI_immediate_mdt_conf_parseFromJSON(cJSON *im
}
localEnum = OpenAPI_reporting_trigger_FromString(reporting_trigger_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_reporting_trigger_FromString(reporting_trigger_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"reporting_trigger_list\" is not supported. Ignoring it ...",
reporting_trigger_list_local->valuestring);
} else {
OpenAPI_list_add(reporting_trigger_listList, (void *)localEnum);
}
}
if (reporting_trigger_listList->count == 0) {
ogs_error("OpenAPI_immediate_mdt_conf_parseFromJSON() failed: Expected reporting_trigger_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
report_interval = cJSON_GetObjectItemCaseSensitive(immediate_mdt_confJSON, "reportInterval");
if (report_interval) {
@ -547,12 +562,17 @@ OpenAPI_immediate_mdt_conf_t *OpenAPI_immediate_mdt_conf_parseFromJSON(cJSON *im
}
localEnum = OpenAPI_positioning_method_mdt_FromString(add_positioning_method_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_positioning_method_mdt_FromString(add_positioning_method_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"add_positioning_method_list\" is not supported. Ignoring it ...",
add_positioning_method_list_local->valuestring);
} else {
OpenAPI_list_add(add_positioning_method_listList, (void *)localEnum);
}
}
if (add_positioning_method_listList->count == 0) {
ogs_error("OpenAPI_immediate_mdt_conf_parseFromJSON() failed: Expected add_positioning_method_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
mdt_allowed_plmn_id_list = cJSON_GetObjectItemCaseSensitive(immediate_mdt_confJSON, "mdtAllowedPlmnIdList");
if (mdt_allowed_plmn_id_list) {
@ -596,12 +616,17 @@ OpenAPI_immediate_mdt_conf_t *OpenAPI_immediate_mdt_conf_parseFromJSON(cJSON *im
}
localEnum = OpenAPI_sensor_measurement_FromString(sensor_measurement_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_sensor_measurement_FromString(sensor_measurement_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"sensor_measurement_list\" is not supported. Ignoring it ...",
sensor_measurement_list_local->valuestring);
} else {
OpenAPI_list_add(sensor_measurement_listList, (void *)localEnum);
}
}
if (sensor_measurement_listList->count == 0) {
ogs_error("OpenAPI_immediate_mdt_conf_parseFromJSON() failed: Expected sensor_measurement_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
immediate_mdt_conf_local_var = OpenAPI_immediate_mdt_conf_create (
job_typeVariable,

View File

@ -109,11 +109,16 @@ OpenAPI_lcs_mo_data_t *OpenAPI_lcs_mo_data_parseFromJSON(cJSON *lcs_mo_dataJSON)
}
localEnum = OpenAPI_lcs_mo_service_class_FromString(allowed_service_classes_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_lcs_mo_service_class_FromString(allowed_service_classes_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"allowed_service_classes\" is not supported. Ignoring it ...",
allowed_service_classes_local->valuestring);
} else {
OpenAPI_list_add(allowed_service_classesList, (void *)localEnum);
}
}
if (allowed_service_classesList->count == 0) {
ogs_error("OpenAPI_lcs_mo_data_parseFromJSON() failed: Expected allowed_service_classesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
mo_assistance_data_types = cJSON_GetObjectItemCaseSensitive(lcs_mo_dataJSON, "moAssistanceDataTypes");
if (mo_assistance_data_types) {

View File

@ -281,12 +281,17 @@ OpenAPI_lmf_info_t *OpenAPI_lmf_info_parseFromJSON(cJSON *lmf_infoJSON)
}
localEnum = OpenAPI_access_type_FromString(serving_access_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(serving_access_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_access_types\" is not supported. Ignoring it ...",
serving_access_types_local->valuestring);
} else {
OpenAPI_list_add(serving_access_typesList, (void *)localEnum);
}
}
if (serving_access_typesList->count == 0) {
ogs_error("OpenAPI_lmf_info_parseFromJSON() failed: Expected serving_access_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_an_node_types = cJSON_GetObjectItemCaseSensitive(lmf_infoJSON, "servingAnNodeTypes");
if (serving_an_node_types) {
@ -306,12 +311,17 @@ OpenAPI_lmf_info_t *OpenAPI_lmf_info_parseFromJSON(cJSON *lmf_infoJSON)
}
localEnum = OpenAPI_an_node_type_FromString(serving_an_node_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_an_node_type_FromString(serving_an_node_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_an_node_types\" is not supported. Ignoring it ...",
serving_an_node_types_local->valuestring);
} else {
OpenAPI_list_add(serving_an_node_typesList, (void *)localEnum);
}
}
if (serving_an_node_typesList->count == 0) {
ogs_error("OpenAPI_lmf_info_parseFromJSON() failed: Expected serving_an_node_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_rat_types = cJSON_GetObjectItemCaseSensitive(lmf_infoJSON, "servingRatTypes");
if (serving_rat_types) {
@ -331,12 +341,17 @@ OpenAPI_lmf_info_t *OpenAPI_lmf_info_parseFromJSON(cJSON *lmf_infoJSON)
}
localEnum = OpenAPI_rat_type_FromString(serving_rat_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(serving_rat_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_rat_types\" is not supported. Ignoring it ...",
serving_rat_types_local->valuestring);
} else {
OpenAPI_list_add(serving_rat_typesList, (void *)localEnum);
}
}
if (serving_rat_typesList->count == 0) {
ogs_error("OpenAPI_lmf_info_parseFromJSON() failed: Expected serving_rat_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
tai_list = cJSON_GetObjectItemCaseSensitive(lmf_infoJSON, "taiList");
if (tai_list) {

View File

@ -517,12 +517,17 @@ OpenAPI_mdt_configuration_t *OpenAPI_mdt_configuration_parseFromJSON(cJSON *mdt_
}
localEnum = OpenAPI_measurement_lte_for_mdt_FromString(measurement_lte_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_measurement_lte_for_mdt_FromString(measurement_lte_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"measurement_lte_list\" is not supported. Ignoring it ...",
measurement_lte_list_local->valuestring);
} else {
OpenAPI_list_add(measurement_lte_listList, (void *)localEnum);
}
}
if (measurement_lte_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_parseFromJSON() failed: Expected measurement_lte_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
measurement_nr_list = cJSON_GetObjectItemCaseSensitive(mdt_configurationJSON, "measurementNrList");
if (measurement_nr_list) {
@ -542,12 +547,17 @@ OpenAPI_mdt_configuration_t *OpenAPI_mdt_configuration_parseFromJSON(cJSON *mdt_
}
localEnum = OpenAPI_measurement_nr_for_mdt_FromString(measurement_nr_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_measurement_nr_for_mdt_FromString(measurement_nr_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"measurement_nr_list\" is not supported. Ignoring it ...",
measurement_nr_list_local->valuestring);
} else {
OpenAPI_list_add(measurement_nr_listList, (void *)localEnum);
}
}
if (measurement_nr_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_parseFromJSON() failed: Expected measurement_nr_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
sensor_measurement_list = cJSON_GetObjectItemCaseSensitive(mdt_configurationJSON, "sensorMeasurementList");
if (sensor_measurement_list) {
@ -567,12 +577,17 @@ OpenAPI_mdt_configuration_t *OpenAPI_mdt_configuration_parseFromJSON(cJSON *mdt_
}
localEnum = OpenAPI_sensor_measurement_FromString(sensor_measurement_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_sensor_measurement_FromString(sensor_measurement_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"sensor_measurement_list\" is not supported. Ignoring it ...",
sensor_measurement_list_local->valuestring);
} else {
OpenAPI_list_add(sensor_measurement_listList, (void *)localEnum);
}
}
if (sensor_measurement_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_parseFromJSON() failed: Expected sensor_measurement_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
reporting_trigger_list = cJSON_GetObjectItemCaseSensitive(mdt_configurationJSON, "reportingTriggerList");
if (reporting_trigger_list) {
@ -592,12 +607,17 @@ OpenAPI_mdt_configuration_t *OpenAPI_mdt_configuration_parseFromJSON(cJSON *mdt_
}
localEnum = OpenAPI_reporting_trigger_FromString(reporting_trigger_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_reporting_trigger_FromString(reporting_trigger_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"reporting_trigger_list\" is not supported. Ignoring it ...",
reporting_trigger_list_local->valuestring);
} else {
OpenAPI_list_add(reporting_trigger_listList, (void *)localEnum);
}
}
if (reporting_trigger_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_parseFromJSON() failed: Expected reporting_trigger_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
report_interval = cJSON_GetObjectItemCaseSensitive(mdt_configurationJSON, "reportInterval");
if (report_interval) {
@ -676,12 +696,17 @@ OpenAPI_mdt_configuration_t *OpenAPI_mdt_configuration_parseFromJSON(cJSON *mdt_
}
localEnum = OpenAPI_event_for_mdt_FromString(event_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_event_for_mdt_FromString(event_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"event_list\" is not supported. Ignoring it ...",
event_list_local->valuestring);
} else {
OpenAPI_list_add(event_listList, (void *)localEnum);
}
}
if (event_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_parseFromJSON() failed: Expected event_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
logging_interval = cJSON_GetObjectItemCaseSensitive(mdt_configurationJSON, "loggingInterval");
if (logging_interval) {
@ -746,12 +771,17 @@ OpenAPI_mdt_configuration_t *OpenAPI_mdt_configuration_parseFromJSON(cJSON *mdt_
}
localEnum = OpenAPI_positioning_method_mdt_FromString(add_positioning_method_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_positioning_method_mdt_FromString(add_positioning_method_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"add_positioning_method_list\" is not supported. Ignoring it ...",
add_positioning_method_list_local->valuestring);
} else {
OpenAPI_list_add(add_positioning_method_listList, (void *)localEnum);
}
}
if (add_positioning_method_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_parseFromJSON() failed: Expected add_positioning_method_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
collection_period_rmm_lte = cJSON_GetObjectItemCaseSensitive(mdt_configurationJSON, "collectionPeriodRmmLte");
if (collection_period_rmm_lte) {

View File

@ -517,12 +517,17 @@ OpenAPI_mdt_configuration_1_t *OpenAPI_mdt_configuration_1_parseFromJSON(cJSON *
}
localEnum = OpenAPI_measurement_lte_for_mdt_FromString(measurement_lte_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_measurement_lte_for_mdt_FromString(measurement_lte_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"measurement_lte_list\" is not supported. Ignoring it ...",
measurement_lte_list_local->valuestring);
} else {
OpenAPI_list_add(measurement_lte_listList, (void *)localEnum);
}
}
if (measurement_lte_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_1_parseFromJSON() failed: Expected measurement_lte_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
measurement_nr_list = cJSON_GetObjectItemCaseSensitive(mdt_configuration_1JSON, "measurementNrList");
if (measurement_nr_list) {
@ -542,12 +547,17 @@ OpenAPI_mdt_configuration_1_t *OpenAPI_mdt_configuration_1_parseFromJSON(cJSON *
}
localEnum = OpenAPI_measurement_nr_for_mdt_FromString(measurement_nr_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_measurement_nr_for_mdt_FromString(measurement_nr_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"measurement_nr_list\" is not supported. Ignoring it ...",
measurement_nr_list_local->valuestring);
} else {
OpenAPI_list_add(measurement_nr_listList, (void *)localEnum);
}
}
if (measurement_nr_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_1_parseFromJSON() failed: Expected measurement_nr_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
sensor_measurement_list = cJSON_GetObjectItemCaseSensitive(mdt_configuration_1JSON, "sensorMeasurementList");
if (sensor_measurement_list) {
@ -567,12 +577,17 @@ OpenAPI_mdt_configuration_1_t *OpenAPI_mdt_configuration_1_parseFromJSON(cJSON *
}
localEnum = OpenAPI_sensor_measurement_FromString(sensor_measurement_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_sensor_measurement_FromString(sensor_measurement_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"sensor_measurement_list\" is not supported. Ignoring it ...",
sensor_measurement_list_local->valuestring);
} else {
OpenAPI_list_add(sensor_measurement_listList, (void *)localEnum);
}
}
if (sensor_measurement_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_1_parseFromJSON() failed: Expected sensor_measurement_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
reporting_trigger_list = cJSON_GetObjectItemCaseSensitive(mdt_configuration_1JSON, "reportingTriggerList");
if (reporting_trigger_list) {
@ -592,12 +607,17 @@ OpenAPI_mdt_configuration_1_t *OpenAPI_mdt_configuration_1_parseFromJSON(cJSON *
}
localEnum = OpenAPI_reporting_trigger_FromString(reporting_trigger_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_reporting_trigger_FromString(reporting_trigger_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"reporting_trigger_list\" is not supported. Ignoring it ...",
reporting_trigger_list_local->valuestring);
} else {
OpenAPI_list_add(reporting_trigger_listList, (void *)localEnum);
}
}
if (reporting_trigger_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_1_parseFromJSON() failed: Expected reporting_trigger_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
report_interval = cJSON_GetObjectItemCaseSensitive(mdt_configuration_1JSON, "reportInterval");
if (report_interval) {
@ -676,12 +696,17 @@ OpenAPI_mdt_configuration_1_t *OpenAPI_mdt_configuration_1_parseFromJSON(cJSON *
}
localEnum = OpenAPI_event_for_mdt_FromString(event_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_event_for_mdt_FromString(event_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"event_list\" is not supported. Ignoring it ...",
event_list_local->valuestring);
} else {
OpenAPI_list_add(event_listList, (void *)localEnum);
}
}
if (event_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_1_parseFromJSON() failed: Expected event_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
logging_interval = cJSON_GetObjectItemCaseSensitive(mdt_configuration_1JSON, "loggingInterval");
if (logging_interval) {
@ -746,12 +771,17 @@ OpenAPI_mdt_configuration_1_t *OpenAPI_mdt_configuration_1_parseFromJSON(cJSON *
}
localEnum = OpenAPI_positioning_method_mdt_FromString(add_positioning_method_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_positioning_method_mdt_FromString(add_positioning_method_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"add_positioning_method_list\" is not supported. Ignoring it ...",
add_positioning_method_list_local->valuestring);
} else {
OpenAPI_list_add(add_positioning_method_listList, (void *)localEnum);
}
}
if (add_positioning_method_listList->count == 0) {
ogs_error("OpenAPI_mdt_configuration_1_parseFromJSON() failed: Expected add_positioning_method_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
collection_period_rmm_lte = cJSON_GetObjectItemCaseSensitive(mdt_configuration_1JSON, "collectionPeriodRmmLte");
if (collection_period_rmm_lte) {

View File

@ -162,12 +162,17 @@ OpenAPI_mfaf_info_t *OpenAPI_mfaf_info_parseFromJSON(cJSON *mfaf_infoJSON)
}
localEnum = OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_nf_type_list\" is not supported. Ignoring it ...",
serving_nf_type_list_local->valuestring);
} else {
OpenAPI_list_add(serving_nf_type_listList, (void *)localEnum);
}
}
if (serving_nf_type_listList->count == 0) {
ogs_error("OpenAPI_mfaf_info_parseFromJSON() failed: Expected serving_nf_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_nf_set_id_list = cJSON_GetObjectItemCaseSensitive(mfaf_infoJSON, "servingNfSetIdList");
if (serving_nf_set_id_list) {

View File

@ -256,12 +256,17 @@ OpenAPI_model_5_gvn_group_data_t *OpenAPI_model_5_gvn_group_data_parseFromJSON(c
}
localEnum = OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"pdu_session_types\" is not supported. Ignoring it ...",
pdu_session_types_local->valuestring);
} else {
OpenAPI_list_add(pdu_session_typesList, (void *)localEnum);
}
}
if (pdu_session_typesList->count == 0) {
ogs_error("OpenAPI_model_5_gvn_group_data_parseFromJSON() failed: Expected pdu_session_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
app_descriptors = cJSON_GetObjectItemCaseSensitive(model_5_gvn_group_dataJSON, "appDescriptors");
if (app_descriptors) {

View File

@ -257,12 +257,17 @@ OpenAPI_nef_cond_t *OpenAPI_nef_cond_parseFromJSON(cJSON *nef_condJSON)
}
localEnum = OpenAPI_af_event_FromString(af_events_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_af_event_FromString(af_events_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"af_events\" is not supported. Ignoring it ...",
af_events_local->valuestring);
} else {
OpenAPI_list_add(af_eventsList, (void *)localEnum);
}
}
if (af_eventsList->count == 0) {
ogs_error("OpenAPI_nef_cond_parseFromJSON() failed: Expected af_eventsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
snssai_list = cJSON_GetObjectItemCaseSensitive(nef_condJSON, "snssaiList");
if (snssai_list) {

View File

@ -2617,12 +2617,17 @@ OpenAPI_nf_profile_t *OpenAPI_nf_profile_parseFromJSON(cJSON *nf_profileJSON)
}
localEnum = OpenAPI_nf_type_FromString(allowed_nf_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(allowed_nf_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"allowed_nf_types\" is not supported. Ignoring it ...",
allowed_nf_types_local->valuestring);
} else {
OpenAPI_list_add(allowed_nf_typesList, (void *)localEnum);
}
}
if (allowed_nf_typesList->count == 0) {
ogs_error("OpenAPI_nf_profile_parseFromJSON() failed: Expected allowed_nf_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
allowed_nf_domains = cJSON_GetObjectItemCaseSensitive(nf_profileJSON, "allowedNfDomains");
if (allowed_nf_domains) {

View File

@ -880,12 +880,17 @@ OpenAPI_nf_service_t *OpenAPI_nf_service_parseFromJSON(cJSON *nf_serviceJSON)
}
localEnum = OpenAPI_nf_type_FromString(allowed_nf_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(allowed_nf_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"allowed_nf_types\" is not supported. Ignoring it ...",
allowed_nf_types_local->valuestring);
} else {
OpenAPI_list_add(allowed_nf_typesList, (void *)localEnum);
}
}
if (allowed_nf_typesList->count == 0) {
ogs_error("OpenAPI_nf_service_parseFromJSON() failed: Expected allowed_nf_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
allowed_nf_domains = cJSON_GetObjectItemCaseSensitive(nf_serviceJSON, "allowedNfDomains");
if (allowed_nf_domains) {

View File

@ -191,12 +191,17 @@ OpenAPI_non_ue_n2_info_subscription_create_data_t *OpenAPI_non_ue_n2_info_subscr
}
localEnum = OpenAPI_access_type_FromString(an_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(an_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"an_type_list\" is not supported. Ignoring it ...",
an_type_list_local->valuestring);
} else {
OpenAPI_list_add(an_type_listList, (void *)localEnum);
}
}
if (an_type_listList->count == 0) {
ogs_error("OpenAPI_non_ue_n2_info_subscription_create_data_parseFromJSON() failed: Expected an_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
n2_information_class = cJSON_GetObjectItemCaseSensitive(non_ue_n2_info_subscription_create_dataJSON, "n2InformationClass");
if (!n2_information_class) {

View File

@ -281,12 +281,17 @@ OpenAPI_nrf_info_served_lmf_info_value_t *OpenAPI_nrf_info_served_lmf_info_value
}
localEnum = OpenAPI_access_type_FromString(serving_access_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(serving_access_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_access_types\" is not supported. Ignoring it ...",
serving_access_types_local->valuestring);
} else {
OpenAPI_list_add(serving_access_typesList, (void *)localEnum);
}
}
if (serving_access_typesList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_lmf_info_value_parseFromJSON() failed: Expected serving_access_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_an_node_types = cJSON_GetObjectItemCaseSensitive(nrf_info_served_lmf_info_valueJSON, "servingAnNodeTypes");
if (serving_an_node_types) {
@ -306,12 +311,17 @@ OpenAPI_nrf_info_served_lmf_info_value_t *OpenAPI_nrf_info_served_lmf_info_value
}
localEnum = OpenAPI_an_node_type_FromString(serving_an_node_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_an_node_type_FromString(serving_an_node_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_an_node_types\" is not supported. Ignoring it ...",
serving_an_node_types_local->valuestring);
} else {
OpenAPI_list_add(serving_an_node_typesList, (void *)localEnum);
}
}
if (serving_an_node_typesList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_lmf_info_value_parseFromJSON() failed: Expected serving_an_node_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_rat_types = cJSON_GetObjectItemCaseSensitive(nrf_info_served_lmf_info_valueJSON, "servingRatTypes");
if (serving_rat_types) {
@ -331,12 +341,17 @@ OpenAPI_nrf_info_served_lmf_info_value_t *OpenAPI_nrf_info_served_lmf_info_value
}
localEnum = OpenAPI_rat_type_FromString(serving_rat_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(serving_rat_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_rat_types\" is not supported. Ignoring it ...",
serving_rat_types_local->valuestring);
} else {
OpenAPI_list_add(serving_rat_typesList, (void *)localEnum);
}
}
if (serving_rat_typesList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_lmf_info_value_parseFromJSON() failed: Expected serving_rat_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
tai_list = cJSON_GetObjectItemCaseSensitive(nrf_info_served_lmf_info_valueJSON, "taiList");
if (tai_list) {

View File

@ -410,12 +410,17 @@ OpenAPI_nrf_info_served_nwdaf_info_value_t *OpenAPI_nrf_info_served_nwdaf_info_v
}
localEnum = OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_nf_type_list\" is not supported. Ignoring it ...",
serving_nf_type_list_local->valuestring);
} else {
OpenAPI_list_add(serving_nf_type_listList, (void *)localEnum);
}
}
if (serving_nf_type_listList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_nwdaf_info_value_parseFromJSON() failed: Expected serving_nf_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
ml_analytics_list = cJSON_GetObjectItemCaseSensitive(nrf_info_served_nwdaf_info_valueJSON, "mlAnalyticsList");
if (ml_analytics_list) {

View File

@ -290,12 +290,17 @@ OpenAPI_nrf_info_served_pcscf_info_list_value_value_t *OpenAPI_nrf_info_served_p
}
localEnum = OpenAPI_access_type_FromString(access_type_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_type_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_type\" is not supported. Ignoring it ...",
access_type_local->valuestring);
} else {
OpenAPI_list_add(access_typeList, (void *)localEnum);
}
}
if (access_typeList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_pcscf_info_list_value_value_parseFromJSON() failed: Expected access_typeList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
dnn_list = cJSON_GetObjectItemCaseSensitive(nrf_info_served_pcscf_info_list_value_valueJSON, "dnnList");
if (dnn_list) {

View File

@ -657,12 +657,17 @@ OpenAPI_nrf_info_served_scp_info_list_value_t *OpenAPI_nrf_info_served_scp_info_
}
localEnum = OpenAPI_scp_capability_FromString(scp_capabilities_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_scp_capability_FromString(scp_capabilities_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"scp_capabilities\" is not supported. Ignoring it ...",
scp_capabilities_local->valuestring);
} else {
OpenAPI_list_add(scp_capabilitiesList, (void *)localEnum);
}
}
if (scp_capabilitiesList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_scp_info_list_value_parseFromJSON() failed: Expected scp_capabilitiesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
nrf_info_served_scp_info_list_value_local_var = OpenAPI_nrf_info_served_scp_info_list_value_create (
scp_domain_info_list ? scp_domain_info_listList : NULL,

View File

@ -398,12 +398,17 @@ OpenAPI_nrf_info_served_smf_info_value_t *OpenAPI_nrf_info_served_smf_info_value
}
localEnum = OpenAPI_access_type_FromString(access_type_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_type_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_type\" is not supported. Ignoring it ...",
access_type_local->valuestring);
} else {
OpenAPI_list_add(access_typeList, (void *)localEnum);
}
}
if (access_typeList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_smf_info_value_parseFromJSON() failed: Expected access_typeList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
priority = cJSON_GetObjectItemCaseSensitive(nrf_info_served_smf_info_valueJSON, "priority");
if (priority) {

View File

@ -285,12 +285,17 @@ OpenAPI_nrf_info_served_udr_info_value_t *OpenAPI_nrf_info_served_udr_info_value
}
localEnum = OpenAPI_data_set_id_FromString(supported_data_sets_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_data_set_id_FromString(supported_data_sets_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"supported_data_sets\" is not supported. Ignoring it ...",
supported_data_sets_local->valuestring);
} else {
OpenAPI_list_add(supported_data_setsList, (void *)localEnum);
}
}
if (supported_data_setsList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_udr_info_value_parseFromJSON() failed: Expected supported_data_setsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
shared_data_id_ranges = cJSON_GetObjectItemCaseSensitive(nrf_info_served_udr_info_valueJSON, "sharedDataIdRanges");
if (shared_data_id_ranges) {

View File

@ -467,12 +467,17 @@ OpenAPI_nrf_info_served_upf_info_value_t *OpenAPI_nrf_info_served_upf_info_value
}
localEnum = OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"pdu_session_types\" is not supported. Ignoring it ...",
pdu_session_types_local->valuestring);
} else {
OpenAPI_list_add(pdu_session_typesList, (void *)localEnum);
}
}
if (pdu_session_typesList->count == 0) {
ogs_error("OpenAPI_nrf_info_served_upf_info_value_parseFromJSON() failed: Expected pdu_session_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
atsss_capability = cJSON_GetObjectItemCaseSensitive(nrf_info_served_upf_info_valueJSON, "atsssCapability");
if (atsss_capability) {

View File

@ -381,12 +381,17 @@ OpenAPI_nwdaf_cond_t *OpenAPI_nwdaf_cond_parseFromJSON(cJSON *nwdaf_condJSON)
}
localEnum = OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_nf_type_list\" is not supported. Ignoring it ...",
serving_nf_type_list_local->valuestring);
} else {
OpenAPI_list_add(serving_nf_type_listList, (void *)localEnum);
}
}
if (serving_nf_type_listList->count == 0) {
ogs_error("OpenAPI_nwdaf_cond_parseFromJSON() failed: Expected serving_nf_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serving_nf_set_id_list = cJSON_GetObjectItemCaseSensitive(nwdaf_condJSON, "servingNfSetIdList");
if (serving_nf_set_id_list) {

View File

@ -410,12 +410,17 @@ OpenAPI_nwdaf_info_t *OpenAPI_nwdaf_info_parseFromJSON(cJSON *nwdaf_infoJSON)
}
localEnum = OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(serving_nf_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"serving_nf_type_list\" is not supported. Ignoring it ...",
serving_nf_type_list_local->valuestring);
} else {
OpenAPI_list_add(serving_nf_type_listList, (void *)localEnum);
}
}
if (serving_nf_type_listList->count == 0) {
ogs_error("OpenAPI_nwdaf_info_parseFromJSON() failed: Expected serving_nf_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
ml_analytics_list = cJSON_GetObjectItemCaseSensitive(nwdaf_infoJSON, "mlAnalyticsList");
if (ml_analytics_list) {

View File

@ -266,12 +266,17 @@ OpenAPI_partial_success_report_t *OpenAPI_partial_success_report_parseFromJSON(c
}
localEnum = OpenAPI_policy_decision_failure_code_FromString(policy_dec_failure_reports_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_decision_failure_code_FromString(policy_dec_failure_reports_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"policy_dec_failure_reports\" is not supported. Ignoring it ...",
policy_dec_failure_reports_local->valuestring);
} else {
OpenAPI_list_add(policy_dec_failure_reportsList, (void *)localEnum);
}
}
if (policy_dec_failure_reportsList->count == 0) {
ogs_error("OpenAPI_partial_success_report_parseFromJSON() failed: Expected policy_dec_failure_reportsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
invalid_policy_decs = cJSON_GetObjectItemCaseSensitive(partial_success_reportJSON, "invalidPolicyDecs");
if (invalid_policy_decs) {

View File

@ -290,12 +290,17 @@ OpenAPI_pcscf_info_t *OpenAPI_pcscf_info_parseFromJSON(cJSON *pcscf_infoJSON)
}
localEnum = OpenAPI_access_type_FromString(access_type_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_type_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_type\" is not supported. Ignoring it ...",
access_type_local->valuestring);
} else {
OpenAPI_list_add(access_typeList, (void *)localEnum);
}
}
if (access_typeList->count == 0) {
ogs_error("OpenAPI_pcscf_info_parseFromJSON() failed: Expected access_typeList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
dnn_list = cJSON_GetObjectItemCaseSensitive(pcscf_infoJSON, "dnnList");
if (dnn_list) {

View File

@ -103,12 +103,17 @@ OpenAPI_pdu_session_types_t *OpenAPI_pdu_session_types_parseFromJSON(cJSON *pdu_
}
localEnum = OpenAPI_pdu_session_type_FromString(allowed_session_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_pdu_session_type_FromString(allowed_session_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"allowed_session_types\" is not supported. Ignoring it ...",
allowed_session_types_local->valuestring);
} else {
OpenAPI_list_add(allowed_session_typesList, (void *)localEnum);
}
}
if (allowed_session_typesList->count == 0) {
ogs_error("OpenAPI_pdu_session_types_parseFromJSON() failed: Expected allowed_session_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
pdu_session_types_local_var = OpenAPI_pdu_session_types_create (
default_session_type ? default_session_typeVariable : 0,

View File

@ -103,12 +103,17 @@ OpenAPI_pdu_session_types_1_t *OpenAPI_pdu_session_types_1_parseFromJSON(cJSON *
}
localEnum = OpenAPI_pdu_session_type_FromString(allowed_session_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_pdu_session_type_FromString(allowed_session_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"allowed_session_types\" is not supported. Ignoring it ...",
allowed_session_types_local->valuestring);
} else {
OpenAPI_list_add(allowed_session_typesList, (void *)localEnum);
}
}
if (allowed_session_typesList->count == 0) {
ogs_error("OpenAPI_pdu_session_types_1_parseFromJSON() failed: Expected allowed_session_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
pdu_session_types_1_local_var = OpenAPI_pdu_session_types_1_create (
default_session_type ? default_session_typeVariable : 0,

View File

@ -197,12 +197,17 @@ OpenAPI_plmn_restriction_t *OpenAPI_plmn_restriction_parseFromJSON(cJSON *plmn_r
}
localEnum = OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_restrictions\" is not supported. Ignoring it ...",
rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(rat_restrictionsList, (void *)localEnum);
}
}
if (rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_parseFromJSON() failed: Expected rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
forbidden_areas = cJSON_GetObjectItemCaseSensitive(plmn_restrictionJSON, "forbiddenAreas");
if (forbidden_areas) {
@ -255,12 +260,17 @@ OpenAPI_plmn_restriction_t *OpenAPI_plmn_restriction_parseFromJSON(cJSON *plmn_r
}
localEnum = OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"core_network_type_restrictions\" is not supported. Ignoring it ...",
core_network_type_restrictions_local->valuestring);
} else {
OpenAPI_list_add(core_network_type_restrictionsList, (void *)localEnum);
}
}
if (core_network_type_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_parseFromJSON() failed: Expected core_network_type_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
primary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(plmn_restrictionJSON, "primaryRatRestrictions");
if (primary_rat_restrictions) {
@ -280,12 +290,17 @@ OpenAPI_plmn_restriction_t *OpenAPI_plmn_restriction_parseFromJSON(cJSON *plmn_r
}
localEnum = OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"primary_rat_restrictions\" is not supported. Ignoring it ...",
primary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(primary_rat_restrictionsList, (void *)localEnum);
}
}
if (primary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_parseFromJSON() failed: Expected primary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
secondary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(plmn_restrictionJSON, "secondaryRatRestrictions");
if (secondary_rat_restrictions) {
@ -305,12 +320,17 @@ OpenAPI_plmn_restriction_t *OpenAPI_plmn_restriction_parseFromJSON(cJSON *plmn_r
}
localEnum = OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"secondary_rat_restrictions\" is not supported. Ignoring it ...",
secondary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(secondary_rat_restrictionsList, (void *)localEnum);
}
}
if (secondary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_parseFromJSON() failed: Expected secondary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
plmn_restriction_local_var = OpenAPI_plmn_restriction_create (
rat_restrictions ? rat_restrictionsList : NULL,

View File

@ -197,12 +197,17 @@ OpenAPI_plmn_restriction_1_t *OpenAPI_plmn_restriction_1_parseFromJSON(cJSON *pl
}
localEnum = OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_restrictions\" is not supported. Ignoring it ...",
rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(rat_restrictionsList, (void *)localEnum);
}
}
if (rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_1_parseFromJSON() failed: Expected rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
forbidden_areas = cJSON_GetObjectItemCaseSensitive(plmn_restriction_1JSON, "forbiddenAreas");
if (forbidden_areas) {
@ -255,12 +260,17 @@ OpenAPI_plmn_restriction_1_t *OpenAPI_plmn_restriction_1_parseFromJSON(cJSON *pl
}
localEnum = OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_core_network_type_FromString(core_network_type_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"core_network_type_restrictions\" is not supported. Ignoring it ...",
core_network_type_restrictions_local->valuestring);
} else {
OpenAPI_list_add(core_network_type_restrictionsList, (void *)localEnum);
}
}
if (core_network_type_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_1_parseFromJSON() failed: Expected core_network_type_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
primary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(plmn_restriction_1JSON, "primaryRatRestrictions");
if (primary_rat_restrictions) {
@ -280,12 +290,17 @@ OpenAPI_plmn_restriction_1_t *OpenAPI_plmn_restriction_1_parseFromJSON(cJSON *pl
}
localEnum = OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(primary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"primary_rat_restrictions\" is not supported. Ignoring it ...",
primary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(primary_rat_restrictionsList, (void *)localEnum);
}
}
if (primary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_1_parseFromJSON() failed: Expected primary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
secondary_rat_restrictions = cJSON_GetObjectItemCaseSensitive(plmn_restriction_1JSON, "secondaryRatRestrictions");
if (secondary_rat_restrictions) {
@ -305,12 +320,17 @@ OpenAPI_plmn_restriction_1_t *OpenAPI_plmn_restriction_1_parseFromJSON(cJSON *pl
}
localEnum = OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(secondary_rat_restrictions_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"secondary_rat_restrictions\" is not supported. Ignoring it ...",
secondary_rat_restrictions_local->valuestring);
} else {
OpenAPI_list_add(secondary_rat_restrictionsList, (void *)localEnum);
}
}
if (secondary_rat_restrictionsList->count == 0) {
ogs_error("OpenAPI_plmn_restriction_1_parseFromJSON() failed: Expected secondary_rat_restrictionsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
plmn_restriction_1_local_var = OpenAPI_plmn_restriction_1_create (
rat_restrictions ? rat_restrictionsList : NULL,

View File

@ -405,12 +405,17 @@ OpenAPI_policy_association_t *OpenAPI_policy_association_parseFromJSON(cJSON *po
}
localEnum = OpenAPI_request_trigger_FromString(triggers_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_request_trigger_FromString(triggers_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"triggers\" is not supported. Ignoring it ...",
triggers_local->valuestring);
} else {
OpenAPI_list_add(triggersList, (void *)localEnum);
}
}
if (triggersList->count == 0) {
ogs_error("OpenAPI_policy_association_parseFromJSON() failed: Expected triggersList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serv_area_res = cJSON_GetObjectItemCaseSensitive(policy_associationJSON, "servAreaRes");
if (serv_area_res) {

View File

@ -759,12 +759,17 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
}
localEnum = OpenAPI_access_type_FromString(access_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_types\" is not supported. Ignoring it ...",
access_types_local->valuestring);
} else {
OpenAPI_list_add(access_typesList, (void *)localEnum);
}
}
if (access_typesList->count == 0) {
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed: Expected access_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
pei = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "pei");
if (pei) {
@ -827,12 +832,17 @@ OpenAPI_policy_association_request_t *OpenAPI_policy_association_request_parseFr
}
localEnum = OpenAPI_rat_type_FromString(rat_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_types\" is not supported. Ignoring it ...",
rat_types_local->valuestring);
} else {
OpenAPI_list_add(rat_typesList, (void *)localEnum);
}
}
if (rat_typesList->count == 0) {
ogs_error("OpenAPI_policy_association_request_parseFromJSON() failed: Expected rat_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
group_ids = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "groupIds");
if (group_ids) {

View File

@ -673,12 +673,17 @@ OpenAPI_policy_association_update_request_t *OpenAPI_policy_association_update_r
}
localEnum = OpenAPI_request_trigger_FromString(triggers_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_request_trigger_FromString(triggers_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"triggers\" is not supported. Ignoring it ...",
triggers_local->valuestring);
} else {
OpenAPI_list_add(triggersList, (void *)localEnum);
}
}
if (triggersList->count == 0) {
ogs_error("OpenAPI_policy_association_update_request_parseFromJSON() failed: Expected triggersList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
serv_area_res = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "servAreaRes");
if (serv_area_res) {
@ -875,12 +880,17 @@ OpenAPI_policy_association_update_request_t *OpenAPI_policy_association_update_r
}
localEnum = OpenAPI_access_type_FromString(access_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_types\" is not supported. Ignoring it ...",
access_types_local->valuestring);
} else {
OpenAPI_list_add(access_typesList, (void *)localEnum);
}
}
if (access_typesList->count == 0) {
ogs_error("OpenAPI_policy_association_update_request_parseFromJSON() failed: Expected access_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
rat_types = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "ratTypes");
if (rat_types) {
@ -900,12 +910,17 @@ OpenAPI_policy_association_update_request_t *OpenAPI_policy_association_update_r
}
localEnum = OpenAPI_rat_type_FromString(rat_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(rat_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rat_types\" is not supported. Ignoring it ...",
rat_types_local->valuestring);
} else {
OpenAPI_list_add(rat_typesList, (void *)localEnum);
}
}
if (rat_typesList->count == 0) {
ogs_error("OpenAPI_policy_association_update_request_parseFromJSON() failed: Expected rat_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
n3g_allowed_snssais = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "n3gAllowedSnssais");
if (n3g_allowed_snssais) {

View File

@ -400,12 +400,17 @@ OpenAPI_policy_update_t *OpenAPI_policy_update_parseFromJSON(cJSON *policy_updat
}
localEnum = OpenAPI_request_trigger_FromString(triggers_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_request_trigger_FromString(triggers_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"triggers\" is not supported. Ignoring it ...",
triggers_local->valuestring);
} else {
OpenAPI_list_add(triggersList, (void *)localEnum);
}
}
if (triggersList->count == 0) {
ogs_error("OpenAPI_policy_update_parseFromJSON() failed: Expected triggersList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
}
serv_area_res = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "servAreaRes");

View File

@ -117,12 +117,17 @@ OpenAPI_pro_se_allowed_plmn_t *OpenAPI_pro_se_allowed_plmn_parseFromJSON(cJSON *
}
localEnum = OpenAPI_prose_direct_allowed_FromString(prose_direct_allowed_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_prose_direct_allowed_FromString(prose_direct_allowed_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"prose_direct_allowed\" is not supported. Ignoring it ...",
prose_direct_allowed_local->valuestring);
} else {
OpenAPI_list_add(prose_direct_allowedList, (void *)localEnum);
}
}
if (prose_direct_allowedList->count == 0) {
ogs_error("OpenAPI_pro_se_allowed_plmn_parseFromJSON() failed: Expected prose_direct_allowedList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
pro_se_allowed_plmn_local_var = OpenAPI_pro_se_allowed_plmn_create (
visited_plmn_local_nonprim,

View File

@ -138,12 +138,17 @@ OpenAPI_protection_policy_t *OpenAPI_protection_policy_parseFromJSON(cJSON *prot
}
localEnum = OpenAPI_ie_type_FromString(data_type_enc_policy_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_ie_type_FromString(data_type_enc_policy_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"data_type_enc_policy\" is not supported. Ignoring it ...",
data_type_enc_policy_local->valuestring);
} else {
OpenAPI_list_add(data_type_enc_policyList, (void *)localEnum);
}
}
if (data_type_enc_policyList->count == 0) {
ogs_error("OpenAPI_protection_policy_parseFromJSON() failed: Expected data_type_enc_policyList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
protection_policy_local_var = OpenAPI_protection_policy_create (
api_ie_mapping_listList,

View File

@ -287,11 +287,16 @@ OpenAPI_qos_monitoring_data_t *OpenAPI_qos_monitoring_data_parseFromJSON(cJSON *
}
localEnum = OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_requested_qos_monitoring_parameter_FromString(req_qos_mon_params_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_qos_mon_params\" is not supported. Ignoring it ...",
req_qos_mon_params_local->valuestring);
} else {
OpenAPI_list_add(req_qos_mon_paramsList, (void *)localEnum);
}
}
if (req_qos_mon_paramsList->count == 0) {
ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed: Expected req_qos_mon_paramsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
rep_freqs = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "repFreqs");
if (!rep_freqs) {
@ -314,11 +319,16 @@ OpenAPI_qos_monitoring_data_t *OpenAPI_qos_monitoring_data_parseFromJSON(cJSON *
}
localEnum = OpenAPI_reporting_frequency_FromString(rep_freqs_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_reporting_frequency_FromString(rep_freqs_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rep_freqs\" is not supported. Ignoring it ...",
rep_freqs_local->valuestring);
} else {
OpenAPI_list_add(rep_freqsList, (void *)localEnum);
}
}
if (rep_freqsList->count == 0) {
ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed: Expected rep_freqsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
rep_thresh_dl = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "repThreshDl");
if (rep_thresh_dl) {

View File

@ -204,11 +204,16 @@ OpenAPI_registration_location_info_t *OpenAPI_registration_location_info_parseFr
}
localEnum = OpenAPI_access_type_FromString(access_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_type_list\" is not supported. Ignoring it ...",
access_type_list_local->valuestring);
} else {
OpenAPI_list_add(access_type_listList, (void *)localEnum);
}
}
if (access_type_listList->count == 0) {
ogs_error("OpenAPI_registration_location_info_parseFromJSON() failed: Expected access_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
registration_location_info_local_var = OpenAPI_registration_location_info_create (
ogs_strdup(amf_instance_id->valuestring),

View File

@ -238,12 +238,17 @@ OpenAPI_reporting_information_t *OpenAPI_reporting_information_parseFromJSON(cJS
}
localEnum = OpenAPI_partitioning_criteria_FromString(partition_criteria_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_partitioning_criteria_FromString(partition_criteria_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"partition_criteria\" is not supported. Ignoring it ...",
partition_criteria_local->valuestring);
} else {
OpenAPI_list_add(partition_criteriaList, (void *)localEnum);
}
}
if (partition_criteriaList->count == 0) {
ogs_error("OpenAPI_reporting_information_parseFromJSON() failed: Expected partition_criteriaList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
grp_rep_time = cJSON_GetObjectItemCaseSensitive(reporting_informationJSON, "grpRepTime");
if (grp_rep_time) {

View File

@ -138,11 +138,16 @@ OpenAPI_requested_rule_data_t *OpenAPI_requested_rule_data_parseFromJSON(cJSON *
}
localEnum = OpenAPI_requested_rule_data_type_FromString(req_data_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_requested_rule_data_type_FromString(req_data_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_data\" is not supported. Ignoring it ...",
req_data_local->valuestring);
} else {
OpenAPI_list_add(req_dataList, (void *)localEnum);
}
}
if (req_dataList->count == 0) {
ogs_error("OpenAPI_requested_rule_data_parseFromJSON() failed: Expected req_dataList to not be empty (after ignoring unsupported enum values).");
goto end;
}
requested_rule_data_local_var = OpenAPI_requested_rule_data_create (
ref_pcc_rule_idsList,

View File

@ -133,12 +133,17 @@ OpenAPI_scp_domain_cond_t *OpenAPI_scp_domain_cond_parseFromJSON(cJSON *scp_doma
}
localEnum = OpenAPI_nf_type_FromString(nf_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_nf_type_FromString(nf_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"nf_type_list\" is not supported. Ignoring it ...",
nf_type_list_local->valuestring);
} else {
OpenAPI_list_add(nf_type_listList, (void *)localEnum);
}
}
if (nf_type_listList->count == 0) {
ogs_error("OpenAPI_scp_domain_cond_parseFromJSON() failed: Expected nf_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
scp_domain_cond_local_var = OpenAPI_scp_domain_cond_create (
scp_domainsList,

View File

@ -657,12 +657,17 @@ OpenAPI_scp_info_t *OpenAPI_scp_info_parseFromJSON(cJSON *scp_infoJSON)
}
localEnum = OpenAPI_scp_capability_FromString(scp_capabilities_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_scp_capability_FromString(scp_capabilities_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"scp_capabilities\" is not supported. Ignoring it ...",
scp_capabilities_local->valuestring);
} else {
OpenAPI_list_add(scp_capabilitiesList, (void *)localEnum);
}
}
if (scp_capabilitiesList->count == 0) {
ogs_error("OpenAPI_scp_info_parseFromJSON() failed: Expected scp_capabilitiesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
scp_info_local_var = OpenAPI_scp_info_create (
scp_domain_info_list ? scp_domain_info_listList : NULL,

View File

@ -263,11 +263,16 @@ OpenAPI_sec_negotiate_req_data_t *OpenAPI_sec_negotiate_req_data_parseFromJSON(c
}
localEnum = OpenAPI_security_capability_FromString(supported_sec_capability_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_security_capability_FromString(supported_sec_capability_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"supported_sec_capability_list\" is not supported. Ignoring it ...",
supported_sec_capability_list_local->valuestring);
} else {
OpenAPI_list_add(supported_sec_capability_listList, (void *)localEnum);
}
}
if (supported_sec_capability_listList->count == 0) {
ogs_error("OpenAPI_sec_negotiate_req_data_parseFromJSON() failed: Expected supported_sec_capability_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
_3_gpp_sbi_target_api_root_supported = cJSON_GetObjectItemCaseSensitive(sec_negotiate_req_dataJSON, "3GppSbiTargetApiRootSupported");
if (_3_gpp_sbi_target_api_root_supported) {

View File

@ -177,12 +177,17 @@ OpenAPI_session_rule_report_t *OpenAPI_session_rule_report_parseFromJSON(cJSON *
}
localEnum = OpenAPI_policy_decision_failure_code_FromString(policy_dec_failure_reports_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_decision_failure_code_FromString(policy_dec_failure_reports_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"policy_dec_failure_reports\" is not supported. Ignoring it ...",
policy_dec_failure_reports_local->valuestring);
} else {
OpenAPI_list_add(policy_dec_failure_reportsList, (void *)localEnum);
}
}
if (policy_dec_failure_reportsList->count == 0) {
ogs_error("OpenAPI_session_rule_report_parseFromJSON() failed: Expected policy_dec_failure_reportsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
session_rule_report_local_var = OpenAPI_session_rule_report_create (
rule_idsList,

View File

@ -1158,12 +1158,17 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
}
localEnum = OpenAPI_policy_control_request_trigger_FromString(policy_ctrl_req_triggers_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_control_request_trigger_FromString(policy_ctrl_req_triggers_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"policy_ctrl_req_triggers\" is not supported. Ignoring it ...",
policy_ctrl_req_triggers_local->valuestring);
} else {
OpenAPI_list_add(policy_ctrl_req_triggersList, (void *)localEnum);
}
}
if (policy_ctrl_req_triggersList->count == 0) {
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed: Expected policy_ctrl_req_triggersList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
}
last_req_rule_data = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "lastReqRuleData");

View File

@ -1154,12 +1154,17 @@ OpenAPI_sm_policy_update_context_data_t *OpenAPI_sm_policy_update_context_data_p
}
localEnum = OpenAPI_policy_control_request_trigger_FromString(rep_policy_ctrl_req_triggers_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_control_request_trigger_FromString(rep_policy_ctrl_req_triggers_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"rep_policy_ctrl_req_triggers\" is not supported. Ignoring it ...",
rep_policy_ctrl_req_triggers_local->valuestring);
} else {
OpenAPI_list_add(rep_policy_ctrl_req_triggersList, (void *)localEnum);
}
}
if (rep_policy_ctrl_req_triggersList->count == 0) {
ogs_error("OpenAPI_sm_policy_update_context_data_parseFromJSON() failed: Expected rep_policy_ctrl_req_triggersList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
acc_net_ch_ids = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "accNetChIds");
if (acc_net_ch_ids) {
@ -1722,12 +1727,17 @@ OpenAPI_sm_policy_update_context_data_t *OpenAPI_sm_policy_update_context_data_p
}
localEnum = OpenAPI_policy_decision_failure_code_FromString(policy_dec_failure_reports_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_decision_failure_code_FromString(policy_dec_failure_reports_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"policy_dec_failure_reports\" is not supported. Ignoring it ...",
policy_dec_failure_reports_local->valuestring);
} else {
OpenAPI_list_add(policy_dec_failure_reportsList, (void *)localEnum);
}
}
if (policy_dec_failure_reportsList->count == 0) {
ogs_error("OpenAPI_sm_policy_update_context_data_parseFromJSON() failed: Expected policy_dec_failure_reportsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
invalid_policy_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "invalidPolicyDecs");
if (invalid_policy_decs) {
@ -1803,12 +1813,17 @@ OpenAPI_sm_policy_update_context_data_t *OpenAPI_sm_policy_update_context_data_p
}
localEnum = OpenAPI_dl_data_delivery_status_FromString(types_of_notif_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_dl_data_delivery_status_FromString(types_of_notif_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"types_of_notif\" is not supported. Ignoring it ...",
types_of_notif_local->valuestring);
} else {
OpenAPI_list_add(types_of_notifList, (void *)localEnum);
}
}
if (types_of_notifList->count == 0) {
ogs_error("OpenAPI_sm_policy_update_context_data_parseFromJSON() failed: Expected types_of_notifList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
inter_grp_ids = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "interGrpIds");
if (inter_grp_ids) {

View File

@ -398,12 +398,17 @@ OpenAPI_smf_info_t *OpenAPI_smf_info_parseFromJSON(cJSON *smf_infoJSON)
}
localEnum = OpenAPI_access_type_FromString(access_type_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_access_type_FromString(access_type_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"access_type\" is not supported. Ignoring it ...",
access_type_local->valuestring);
} else {
OpenAPI_list_add(access_typeList, (void *)localEnum);
}
}
if (access_typeList->count == 0) {
ogs_error("OpenAPI_smf_info_parseFromJSON() failed: Expected access_typeList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
priority = cJSON_GetObjectItemCaseSensitive(smf_infoJSON, "priority");
if (priority) {

View File

@ -107,12 +107,17 @@ OpenAPI_ssc_modes_t *OpenAPI_ssc_modes_parseFromJSON(cJSON *ssc_modesJSON)
}
localEnum = OpenAPI_ssc_mode_FromString(allowed_ssc_modes_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_ssc_mode_FromString(allowed_ssc_modes_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"allowed_ssc_modes\" is not supported. Ignoring it ...",
allowed_ssc_modes_local->valuestring);
} else {
OpenAPI_list_add(allowed_ssc_modesList, (void *)localEnum);
}
}
if (allowed_ssc_modesList->count == 0) {
ogs_error("OpenAPI_ssc_modes_parseFromJSON() failed: Expected allowed_ssc_modesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
ssc_modes_local_var = OpenAPI_ssc_modes_create (
default_ssc_modeVariable,

View File

@ -107,12 +107,17 @@ OpenAPI_ssc_modes_1_t *OpenAPI_ssc_modes_1_parseFromJSON(cJSON *ssc_modes_1JSON)
}
localEnum = OpenAPI_ssc_mode_FromString(allowed_ssc_modes_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_ssc_mode_FromString(allowed_ssc_modes_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"allowed_ssc_modes\" is not supported. Ignoring it ...",
allowed_ssc_modes_local->valuestring);
} else {
OpenAPI_list_add(allowed_ssc_modesList, (void *)localEnum);
}
}
if (allowed_ssc_modesList->count == 0) {
ogs_error("OpenAPI_ssc_modes_1_parseFromJSON() failed: Expected allowed_ssc_modesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
ssc_modes_1_local_var = OpenAPI_ssc_modes_1_create (
default_ssc_modeVariable,

View File

@ -501,12 +501,17 @@ OpenAPI_subscription_data_t *OpenAPI_subscription_data_parseFromJSON(cJSON *subs
}
localEnum = OpenAPI_notification_event_type_FromString(req_notif_events_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_notification_event_type_FromString(req_notif_events_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"req_notif_events\" is not supported. Ignoring it ...",
req_notif_events_local->valuestring);
} else {
OpenAPI_list_add(req_notif_eventsList, (void *)localEnum);
}
}
if (req_notif_eventsList->count == 0) {
ogs_error("OpenAPI_subscription_data_parseFromJSON() failed: Expected req_notif_eventsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
plmn_id = cJSON_GetObjectItemCaseSensitive(subscription_dataJSON, "plmnId");
if (plmn_id) {

View File

@ -196,12 +196,17 @@ OpenAPI_trust_af_info_t *OpenAPI_trust_af_info_parseFromJSON(cJSON *trust_af_inf
}
localEnum = OpenAPI_af_event_FromString(af_events_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_af_event_FromString(af_events_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"af_events\" is not supported. Ignoring it ...",
af_events_local->valuestring);
} else {
OpenAPI_list_add(af_eventsList, (void *)localEnum);
}
}
if (af_eventsList->count == 0) {
ogs_error("OpenAPI_trust_af_info_parseFromJSON() failed: Expected af_eventsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
app_ids = cJSON_GetObjectItemCaseSensitive(trust_af_infoJSON, "appIds");
if (app_ids) {

View File

@ -285,12 +285,17 @@ OpenAPI_udr_info_t *OpenAPI_udr_info_parseFromJSON(cJSON *udr_infoJSON)
}
localEnum = OpenAPI_data_set_id_FromString(supported_data_sets_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_data_set_id_FromString(supported_data_sets_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"supported_data_sets\" is not supported. Ignoring it ...",
supported_data_sets_local->valuestring);
} else {
OpenAPI_list_add(supported_data_setsList, (void *)localEnum);
}
}
if (supported_data_setsList->count == 0) {
ogs_error("OpenAPI_udr_info_parseFromJSON() failed: Expected supported_data_setsList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
shared_data_id_ranges = cJSON_GetObjectItemCaseSensitive(udr_infoJSON, "sharedDataIdRanges");
if (shared_data_id_ranges) {

View File

@ -1774,12 +1774,17 @@ OpenAPI_ue_context_t *OpenAPI_ue_context_parseFromJSON(cJSON *ue_contextJSON)
}
localEnum = OpenAPI_policy_req_trigger_FromString(am_policy_req_trigger_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_req_trigger_FromString(am_policy_req_trigger_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"am_policy_req_trigger_list\" is not supported. Ignoring it ...",
am_policy_req_trigger_list_local->valuestring);
} else {
OpenAPI_list_add(am_policy_req_trigger_listList, (void *)localEnum);
}
}
if (am_policy_req_trigger_listList->count == 0) {
ogs_error("OpenAPI_ue_context_parseFromJSON() failed: Expected am_policy_req_trigger_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
pcf_ue_policy_uri = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "pcfUePolicyUri");
if (pcf_ue_policy_uri) {
@ -1807,12 +1812,17 @@ OpenAPI_ue_context_t *OpenAPI_ue_context_parseFromJSON(cJSON *ue_contextJSON)
}
localEnum = OpenAPI_policy_req_trigger_FromString(ue_policy_req_trigger_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_policy_req_trigger_FromString(ue_policy_req_trigger_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"ue_policy_req_trigger_list\" is not supported. Ignoring it ...",
ue_policy_req_trigger_list_local->valuestring);
} else {
OpenAPI_list_add(ue_policy_req_trigger_listList, (void *)localEnum);
}
}
if (ue_policy_req_trigger_listList->count == 0) {
ogs_error("OpenAPI_ue_context_parseFromJSON() failed: Expected ue_policy_req_trigger_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
hpcf_id = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "hpcfId");
if (hpcf_id) {
@ -1848,12 +1858,17 @@ OpenAPI_ue_context_t *OpenAPI_ue_context_parseFromJSON(cJSON *ue_contextJSON)
}
localEnum = OpenAPI_rat_type_FromString(restricted_rat_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(restricted_rat_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"restricted_rat_list\" is not supported. Ignoring it ...",
restricted_rat_list_local->valuestring);
} else {
OpenAPI_list_add(restricted_rat_listList, (void *)localEnum);
}
}
if (restricted_rat_listList->count == 0) {
ogs_error("OpenAPI_ue_context_parseFromJSON() failed: Expected restricted_rat_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
forbidden_area_list = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "forbiddenAreaList");
if (forbidden_area_list) {
@ -1906,12 +1921,17 @@ OpenAPI_ue_context_t *OpenAPI_ue_context_parseFromJSON(cJSON *ue_contextJSON)
}
localEnum = OpenAPI_core_network_type_FromString(restricted_core_nw_type_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_core_network_type_FromString(restricted_core_nw_type_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"restricted_core_nw_type_list\" is not supported. Ignoring it ...",
restricted_core_nw_type_list_local->valuestring);
} else {
OpenAPI_list_add(restricted_core_nw_type_listList, (void *)localEnum);
}
}
if (restricted_core_nw_type_listList->count == 0) {
ogs_error("OpenAPI_ue_context_parseFromJSON() failed: Expected restricted_core_nw_type_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
event_subscription_list = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "eventSubscriptionList");
if (event_subscription_list) {
@ -2100,12 +2120,17 @@ OpenAPI_ue_context_t *OpenAPI_ue_context_parseFromJSON(cJSON *ue_contextJSON)
}
localEnum = OpenAPI_rat_type_FromString(restricted_primary_rat_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(restricted_primary_rat_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"restricted_primary_rat_list\" is not supported. Ignoring it ...",
restricted_primary_rat_list_local->valuestring);
} else {
OpenAPI_list_add(restricted_primary_rat_listList, (void *)localEnum);
}
}
if (restricted_primary_rat_listList->count == 0) {
ogs_error("OpenAPI_ue_context_parseFromJSON() failed: Expected restricted_primary_rat_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
restricted_secondary_rat_list = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "restrictedSecondaryRatList");
if (restricted_secondary_rat_list) {
@ -2125,12 +2150,17 @@ OpenAPI_ue_context_t *OpenAPI_ue_context_parseFromJSON(cJSON *ue_contextJSON)
}
localEnum = OpenAPI_rat_type_FromString(restricted_secondary_rat_list_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_rat_type_FromString(restricted_secondary_rat_list_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"restricted_secondary_rat_list\" is not supported. Ignoring it ...",
restricted_secondary_rat_list_local->valuestring);
} else {
OpenAPI_list_add(restricted_secondary_rat_listList, (void *)localEnum);
}
}
if (restricted_secondary_rat_listList->count == 0) {
ogs_error("OpenAPI_ue_context_parseFromJSON() failed: Expected restricted_secondary_rat_listList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
v2x_context = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "v2xContext");
if (v2x_context) {

View File

@ -467,12 +467,17 @@ OpenAPI_upf_info_t *OpenAPI_upf_info_parseFromJSON(cJSON *upf_infoJSON)
}
localEnum = OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_pdu_session_type_FromString(pdu_session_types_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"pdu_session_types\" is not supported. Ignoring it ...",
pdu_session_types_local->valuestring);
} else {
OpenAPI_list_add(pdu_session_typesList, (void *)localEnum);
}
}
if (pdu_session_typesList->count == 0) {
ogs_error("OpenAPI_upf_info_parseFromJSON() failed: Expected pdu_session_typesList to not be empty (after ignoring unsupported enum values).");
goto end;
}
}
atsss_capability = cJSON_GetObjectItemCaseSensitive(upf_infoJSON, "atsssCapability");
if (atsss_capability) {

View File

@ -789,10 +789,11 @@ OpenAPI_{{classname}}_t *OpenAPI_{{classname}}_parseFromJSON(cJSON *{{classname}
}
localEnum = OpenAPI_{{{complexType}}}_FromString({{{name}}}_local->valuestring);
if (!localEnum) {
ogs_error("OpenAPI_{{{complexType}}}_FromString({{{name}}}_local->valuestring) failed");
goto end;
}
ogs_info("Enum value \"%s\" for field \"{{{name}}}\" is not supported. Ignoring it ...",
{{{name}}}_local->valuestring);
} else {
OpenAPI_list_add({{{name}}}List, (void *)localEnum);
}
{{/isEnum}}
{{^isEnum}}
{{#isPrimitiveType}}
@ -857,6 +858,12 @@ OpenAPI_{{classname}}_t *OpenAPI_{{classname}}_parseFromJSON(cJSON *{{classname}
{{/items}}
{{/isEnum}}
}
{{#isEnum}}
if ({{{name}}}List->count == 0) {
ogs_error("OpenAPI_{{classname}}_parseFromJSON() failed: Expected {{{name}}}List to not be empty (after ignoring unsupported enum values).");
goto end;
}
{{/isEnum}}
{{/isArray}}
{{#isMap}}
cJSON *{{{name}}}_local_map = NULL;