mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
SBI updated
- openapi-generator version 5.2.0 - add priority/capacity/load in NFProfile/NFService - add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -15,6 +15,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_create(
|
|||
char *group_id,
|
||||
char *gpsi,
|
||||
char *pei,
|
||||
bool is_any_ue,
|
||||
int any_ue,
|
||||
OpenAPI_amf_event_mode_t *options,
|
||||
OpenAPI_nf_type_e source_nf_type
|
||||
|
|
@ -34,6 +35,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_create(
|
|||
amf_event_subscription_local_var->group_id = group_id;
|
||||
amf_event_subscription_local_var->gpsi = gpsi;
|
||||
amf_event_subscription_local_var->pei = pei;
|
||||
amf_event_subscription_local_var->is_any_ue = is_any_ue;
|
||||
amf_event_subscription_local_var->any_ue = any_ue;
|
||||
amf_event_subscription_local_var->options = options;
|
||||
amf_event_subscription_local_var->source_nf_type = source_nf_type;
|
||||
|
|
@ -149,7 +151,7 @@ cJSON *OpenAPI_amf_event_subscription_convertToJSON(OpenAPI_amf_event_subscripti
|
|||
}
|
||||
}
|
||||
|
||||
if (amf_event_subscription->any_ue) {
|
||||
if (amf_event_subscription->is_any_ue) {
|
||||
if (cJSON_AddBoolToObject(item, "anyUE", amf_event_subscription->any_ue) == NULL) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_convertToJSON() failed [any_ue]");
|
||||
goto end;
|
||||
|
|
@ -190,7 +192,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
}
|
||||
|
||||
OpenAPI_list_t *event_listList;
|
||||
|
||||
cJSON *event_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(event_list)){
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [event_list]");
|
||||
|
|
@ -215,7 +216,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(event_notify_uri)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [event_notify_uri]");
|
||||
goto end;
|
||||
|
|
@ -227,7 +227,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(notify_correlation_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [notify_correlation_id]");
|
||||
goto end;
|
||||
|
|
@ -239,7 +238,6 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(nf_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [nf_id]");
|
||||
goto end;
|
||||
|
|
@ -247,7 +245,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *subs_change_notify_uri = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "subsChangeNotifyUri");
|
||||
|
||||
if (subs_change_notify_uri) {
|
||||
if (subs_change_notify_uri) {
|
||||
if (!cJSON_IsString(subs_change_notify_uri)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [subs_change_notify_uri]");
|
||||
goto end;
|
||||
|
|
@ -256,7 +254,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *subs_change_notify_correlation_id = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "subsChangeNotifyCorrelationId");
|
||||
|
||||
if (subs_change_notify_correlation_id) {
|
||||
if (subs_change_notify_correlation_id) {
|
||||
if (!cJSON_IsString(subs_change_notify_correlation_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [subs_change_notify_correlation_id]");
|
||||
goto end;
|
||||
|
|
@ -265,7 +263,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *supi = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "supi");
|
||||
|
||||
if (supi) {
|
||||
if (supi) {
|
||||
if (!cJSON_IsString(supi)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [supi]");
|
||||
goto end;
|
||||
|
|
@ -274,7 +272,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *group_id = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "groupId");
|
||||
|
||||
if (group_id) {
|
||||
if (group_id) {
|
||||
if (!cJSON_IsString(group_id)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [group_id]");
|
||||
goto end;
|
||||
|
|
@ -283,7 +281,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *gpsi = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "gpsi");
|
||||
|
||||
if (gpsi) {
|
||||
if (gpsi) {
|
||||
if (!cJSON_IsString(gpsi)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [gpsi]");
|
||||
goto end;
|
||||
|
|
@ -292,7 +290,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *pei = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "pei");
|
||||
|
||||
if (pei) {
|
||||
if (pei) {
|
||||
if (!cJSON_IsString(pei)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [pei]");
|
||||
goto end;
|
||||
|
|
@ -301,7 +299,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
|
||||
cJSON *any_ue = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "anyUE");
|
||||
|
||||
if (any_ue) {
|
||||
if (any_ue) {
|
||||
if (!cJSON_IsBool(any_ue)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [any_ue]");
|
||||
goto end;
|
||||
|
|
@ -311,14 +309,14 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
cJSON *options = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "options");
|
||||
|
||||
OpenAPI_amf_event_mode_t *options_local_nonprim = NULL;
|
||||
if (options) {
|
||||
if (options) {
|
||||
options_local_nonprim = OpenAPI_amf_event_mode_parseFromJSON(options);
|
||||
}
|
||||
|
||||
cJSON *source_nf_type = cJSON_GetObjectItemCaseSensitive(amf_event_subscriptionJSON, "sourceNfType");
|
||||
|
||||
OpenAPI_nf_type_e source_nf_typeVariable;
|
||||
if (source_nf_type) {
|
||||
if (source_nf_type) {
|
||||
if (!cJSON_IsString(source_nf_type)) {
|
||||
ogs_error("OpenAPI_amf_event_subscription_parseFromJSON() failed [source_nf_type]");
|
||||
goto end;
|
||||
|
|
@ -337,6 +335,7 @@ OpenAPI_amf_event_subscription_t *OpenAPI_amf_event_subscription_parseFromJSON(c
|
|||
group_id ? ogs_strdup_or_assert(group_id->valuestring) : NULL,
|
||||
gpsi ? ogs_strdup_or_assert(gpsi->valuestring) : NULL,
|
||||
pei ? ogs_strdup_or_assert(pei->valuestring) : NULL,
|
||||
any_ue ? true : false,
|
||||
any_ue ? any_ue->valueint : 0,
|
||||
options ? options_local_nonprim : NULL,
|
||||
source_nf_type ? source_nf_typeVariable : 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue