Changes of Revision 477

open5gs_2.6.6.2.cb114.202310102026.dsc Deleted
x
 
1
@@ -1,38 +0,0 @@
2
-Format: 3.0 (native)
3
-Source: open5gs
4
-Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg
5
-Architecture: any
6
-Version: 2.6.6.2.cb114.202310102026
7
-Maintainer: Harald Welte <laforge@gnumonks.org>
8
-Uploaders: Sukchan Lee <acetcom@gmail.com>
9
-Homepage: https://open5gs.org
10
-Standards-Version: 4.3.0
11
-Vcs-Browser: https://github.com/open5gs/open5gs
12
-Vcs-Git: git://github.com/open5gs/open5gs
13
-Build-Depends: debhelper (>= 11), git, pkg-config, meson (>= 0.43.0), cmake, flex, bison, libgnutls28-dev, libgcrypt-dev, libssl-dev, libidn11-dev, libmongoc-dev, libbson-dev, libsctp-dev, libyaml-dev, libmicrohttpd-dev, libcurl4-gnutls-dev, libnghttp2-dev, libtins-dev, libtalloc-dev
14
-Package-List:
15
- open5gs deb net optional arch=any
16
- open5gs-amf deb net optional arch=any
17
- open5gs-ausf deb net optional arch=any
18
- open5gs-bsf deb net optional arch=any
19
- open5gs-common deb net optional arch=any
20
- open5gs-dbg deb net optional arch=any
21
- open5gs-hss deb net optional arch=any
22
- open5gs-mme deb net optional arch=any
23
- open5gs-nrf deb net optional arch=any
24
- open5gs-nssf deb net optional arch=any
25
- open5gs-pcf deb net optional arch=any
26
- open5gs-pcrf deb net optional arch=any
27
- open5gs-scp deb net optional arch=any
28
- open5gs-sgwc deb net optional arch=any
29
- open5gs-sgwu deb net optional arch=any
30
- open5gs-smf deb net optional arch=any
31
- open5gs-udm deb net optional arch=any
32
- open5gs-udr deb net optional arch=any
33
- open5gs-upf deb net optional arch=any
34
-Checksums-Sha1:
35
- 0145e54f309aab6a299daf27f589215feaa2d278 14419308 open5gs_2.6.6.2.cb114.202310102026.tar.xz
36
-Checksums-Sha256:
37
- 1c655ccc1756c2b3e4c7a0d8b053826ab2ed7cfc742ffdbecd2cdd02bcfd1939 14419308 open5gs_2.6.6.2.cb114.202310102026.tar.xz
38
-Files:
39
- faf03b6757ed67ecdc5ad0f80a85731a 14419308 open5gs_2.6.6.2.cb114.202310102026.tar.xz
40
open5gs_2.6.6.7.77a62.202310112026.dsc Added
40
 
1
@@ -0,0 +1,38 @@
2
+Format: 3.0 (native)
3
+Source: open5gs
4
+Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg
5
+Architecture: any
6
+Version: 2.6.6.7.77a62.202310112026
7
+Maintainer: Harald Welte <laforge@gnumonks.org>
8
+Uploaders: Sukchan Lee <acetcom@gmail.com>
9
+Homepage: https://open5gs.org
10
+Standards-Version: 4.3.0
11
+Vcs-Browser: https://github.com/open5gs/open5gs
12
+Vcs-Git: git://github.com/open5gs/open5gs
13
+Build-Depends: debhelper (>= 11), git, pkg-config, meson (>= 0.43.0), cmake, flex, bison, libgnutls28-dev, libgcrypt-dev, libssl-dev, libidn11-dev, libmongoc-dev, libbson-dev, libsctp-dev, libyaml-dev, libmicrohttpd-dev, libcurl4-gnutls-dev, libnghttp2-dev, libtins-dev, libtalloc-dev
14
+Package-List:
15
+ open5gs deb net optional arch=any
16
+ open5gs-amf deb net optional arch=any
17
+ open5gs-ausf deb net optional arch=any
18
+ open5gs-bsf deb net optional arch=any
19
+ open5gs-common deb net optional arch=any
20
+ open5gs-dbg deb net optional arch=any
21
+ open5gs-hss deb net optional arch=any
22
+ open5gs-mme deb net optional arch=any
23
+ open5gs-nrf deb net optional arch=any
24
+ open5gs-nssf deb net optional arch=any
25
+ open5gs-pcf deb net optional arch=any
26
+ open5gs-pcrf deb net optional arch=any
27
+ open5gs-scp deb net optional arch=any
28
+ open5gs-sgwc deb net optional arch=any
29
+ open5gs-sgwu deb net optional arch=any
30
+ open5gs-smf deb net optional arch=any
31
+ open5gs-udm deb net optional arch=any
32
+ open5gs-udr deb net optional arch=any
33
+ open5gs-upf deb net optional arch=any
34
+Checksums-Sha1:
35
+ f3cb0bf1b04ab37382f9dd24da56fc86c523a39e 14426100 open5gs_2.6.6.7.77a62.202310112026.tar.xz
36
+Checksums-Sha256:
37
+ 9ada09ae7dab7d3b5549b873f5b86bfeec094b42b0a479ce1cbc699703789952 14426100 open5gs_2.6.6.7.77a62.202310112026.tar.xz
38
+Files:
39
+ 1cf8070a6fa26ae4f427c18166985ea1 14426100 open5gs_2.6.6.7.77a62.202310112026.tar.xz
40
open5gs_2.6.6.2.cb114.202310102026.tar.xz/.tarball-version -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/.tarball-version Changed
4
 
1
@@ -1 +1 @@
2
-2.6.6.2-cb114.202310102026
3
+2.6.6.7-77a62.202310112026
4
open5gs_2.6.6.2.cb114.202310102026.tar.xz/debian/changelog -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/debian/changelog Changed
12
 
1
@@ -1,8 +1,8 @@
2
-open5gs (2.6.6.2.cb114.202310102026) unstable; urgency=medium
3
+open5gs (2.6.6.7.77a62.202310112026) unstable; urgency=medium
4
 
5
   * Automatically generated changelog entry for building the Osmocom nightly feed
6
 
7
- -- Osmocom OBS scripts <info@osmocom.org>  Tue, 10 Oct 2023 20:27:55 +0000
8
+ -- Osmocom OBS scripts <info@osmocom.org>  Wed, 11 Oct 2023 20:29:13 +0000
9
 
10
 open5gs (2.6.6) unstable; urgency=medium
11
 
12
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.c Changed
228
 
1
@@ -11,13 +11,16 @@
2
     OpenAPI_list_t *internal_group_ids,
3
     OpenAPI_list_t* shared_vn_group_data_ids,
4
     OpenAPI_ambr_rm_t *subscribed_ue_ambr,
5
+    bool is_nssai_null,
6
     OpenAPI_nssai_t *nssai,
7
     OpenAPI_set_t *rat_restrictions,
8
     OpenAPI_list_t *forbidden_areas,
9
     OpenAPI_service_area_restriction_t *service_area_restriction,
10
     OpenAPI_list_t *core_network_type_restrictions,
11
+    bool is_rfsp_index_null,
12
     bool is_rfsp_index,
13
     int rfsp_index,
14
+    bool is_subs_reg_timer_null,
15
     bool is_subs_reg_timer,
16
     int subs_reg_timer,
17
     bool is_ue_usage_type,
18
@@ -26,6 +29,7 @@
19
     int mps_priority,
20
     bool is_mcs_priority,
21
     int mcs_priority,
22
+    bool is_active_time_null,
23
     bool is_active_time,
24
     int active_time,
25
     OpenAPI_sor_info_t *sor_info,
26
@@ -45,6 +49,7 @@
27
     int service_gap_time,
28
     OpenAPI_mdt_user_consent_e mdt_user_consent,
29
     OpenAPI_mdt_configuration_t *mdt_configuration,
30
+    bool is_trace_data_null,
31
     OpenAPI_trace_data_t *trace_data,
32
     OpenAPI_cag_data_t *cag_data,
33
     char *stn_sr,
34
@@ -83,13 +88,16 @@
35
     access_and_mobility_subscription_data_local_var->internal_group_ids = internal_group_ids;
36
     access_and_mobility_subscription_data_local_var->shared_vn_group_data_ids = shared_vn_group_data_ids;
37
     access_and_mobility_subscription_data_local_var->subscribed_ue_ambr = subscribed_ue_ambr;
38
+    access_and_mobility_subscription_data_local_var->is_nssai_null = is_nssai_null;
39
     access_and_mobility_subscription_data_local_var->nssai = nssai;
40
     access_and_mobility_subscription_data_local_var->rat_restrictions = rat_restrictions;
41
     access_and_mobility_subscription_data_local_var->forbidden_areas = forbidden_areas;
42
     access_and_mobility_subscription_data_local_var->service_area_restriction = service_area_restriction;
43
     access_and_mobility_subscription_data_local_var->core_network_type_restrictions = core_network_type_restrictions;
44
+    access_and_mobility_subscription_data_local_var->is_rfsp_index_null = is_rfsp_index_null;
45
     access_and_mobility_subscription_data_local_var->is_rfsp_index = is_rfsp_index;
46
     access_and_mobility_subscription_data_local_var->rfsp_index = rfsp_index;
47
+    access_and_mobility_subscription_data_local_var->is_subs_reg_timer_null = is_subs_reg_timer_null;
48
     access_and_mobility_subscription_data_local_var->is_subs_reg_timer = is_subs_reg_timer;
49
     access_and_mobility_subscription_data_local_var->subs_reg_timer = subs_reg_timer;
50
     access_and_mobility_subscription_data_local_var->is_ue_usage_type = is_ue_usage_type;
51
@@ -98,6 +106,7 @@
52
     access_and_mobility_subscription_data_local_var->mps_priority = mps_priority;
53
     access_and_mobility_subscription_data_local_var->is_mcs_priority = is_mcs_priority;
54
     access_and_mobility_subscription_data_local_var->mcs_priority = mcs_priority;
55
+    access_and_mobility_subscription_data_local_var->is_active_time_null = is_active_time_null;
56
     access_and_mobility_subscription_data_local_var->is_active_time = is_active_time;
57
     access_and_mobility_subscription_data_local_var->active_time = active_time;
58
     access_and_mobility_subscription_data_local_var->sor_info = sor_info;
59
@@ -117,6 +126,7 @@
60
     access_and_mobility_subscription_data_local_var->service_gap_time = service_gap_time;
61
     access_and_mobility_subscription_data_local_var->mdt_user_consent = mdt_user_consent;
62
     access_and_mobility_subscription_data_local_var->mdt_configuration = mdt_configuration;
63
+    access_and_mobility_subscription_data_local_var->is_trace_data_null = is_trace_data_null;
64
     access_and_mobility_subscription_data_local_var->trace_data = trace_data;
65
     access_and_mobility_subscription_data_local_var->cag_data = cag_data;
66
     access_and_mobility_subscription_data_local_var->stn_sr = stn_sr;
67
@@ -440,6 +450,11 @@
68
         ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed nssai");
69
         goto end;
70
     }
71
+    } else if (access_and_mobility_subscription_data->is_nssai_null) {
72
+        if (cJSON_AddNullToObject(item, "nssai") == NULL) {
73
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed nssai");
74
+            goto end;
75
+        }
76
     }
77
 
78
     if (access_and_mobility_subscription_data->rat_restrictions != OpenAPI_rat_type_NULL) {
79
@@ -504,6 +519,11 @@
80
         ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed rfsp_index");
81
         goto end;
82
     }
83
+    } else if (access_and_mobility_subscription_data->is_rfsp_index_null) {
84
+        if (cJSON_AddNullToObject(item, "rfspIndex") == NULL) {
85
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed rfsp_index");
86
+            goto end;
87
+        }
88
     }
89
 
90
     if (access_and_mobility_subscription_data->is_subs_reg_timer) {
91
@@ -511,6 +531,11 @@
92
         ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed subs_reg_timer");
93
         goto end;
94
     }
95
+    } else if (access_and_mobility_subscription_data->is_subs_reg_timer_null) {
96
+        if (cJSON_AddNullToObject(item, "subsRegTimer") == NULL) {
97
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed subs_reg_timer");
98
+            goto end;
99
+        }
100
     }
101
 
102
     if (access_and_mobility_subscription_data->is_ue_usage_type) {
103
@@ -539,6 +564,11 @@
104
         ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed active_time");
105
         goto end;
106
     }
107
+    } else if (access_and_mobility_subscription_data->is_active_time_null) {
108
+        if (cJSON_AddNullToObject(item, "activeTime") == NULL) {
109
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed active_time");
110
+            goto end;
111
+        }
112
     }
113
 
114
     if (access_and_mobility_subscription_data->sor_info) {
115
@@ -682,6 +712,11 @@
116
         ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed trace_data");
117
         goto end;
118
     }
119
+    } else if (access_and_mobility_subscription_data->is_trace_data_null) {
120
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
121
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_convertToJSON() failed trace_data");
122
+            goto end;
123
+        }
124
     }
125
 
126
     if (access_and_mobility_subscription_data->cag_data) {
127
@@ -1124,12 +1159,14 @@
128
 
129
     nssai = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "nssai");
130
     if (nssai) {
131
+    if (!cJSON_IsNull(nssai)) {
132
     nssai_local_nonprim = OpenAPI_nssai_parseFromJSON(nssai);
133
     if (!nssai_local_nonprim) {
134
         ogs_error("OpenAPI_nssai_parseFromJSON failed nssai");
135
         goto end;
136
     }
137
     }
138
+    }
139
 
140
     rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "ratRestrictions");
141
     if (rat_restrictions) {
142
@@ -1216,19 +1253,23 @@
143
 
144
     rfsp_index = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "rfspIndex");
145
     if (rfsp_index) {
146
+    if (!cJSON_IsNull(rfsp_index)) {
147
     if (!cJSON_IsNumber(rfsp_index)) {
148
         ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed rfsp_index");
149
         goto end;
150
     }
151
     }
152
+    }
153
 
154
     subs_reg_timer = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "subsRegTimer");
155
     if (subs_reg_timer) {
156
+    if (!cJSON_IsNull(subs_reg_timer)) {
157
     if (!cJSON_IsNumber(subs_reg_timer)) {
158
         ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed subs_reg_timer");
159
         goto end;
160
     }
161
     }
162
+    }
163
 
164
     ue_usage_type = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "ueUsageType");
165
     if (ue_usage_type) {
166
@@ -1256,11 +1297,13 @@
167
 
168
     active_time = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "activeTime");
169
     if (active_time) {
170
+    if (!cJSON_IsNull(active_time)) {
171
     if (!cJSON_IsNumber(active_time)) {
172
         ogs_error("OpenAPI_access_and_mobility_subscription_data_parseFromJSON() failed active_time");
173
         goto end;
174
     }
175
     }
176
+    }
177
 
178
     sor_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "sorInfo");
179
     if (sor_info) {
180
@@ -1416,12 +1459,14 @@
181
 
182
     trace_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "traceData");
183
     if (trace_data) {
184
+    if (!cJSON_IsNull(trace_data)) {
185
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
186
     if (!trace_data_local_nonprim) {
187
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
188
         goto end;
189
     }
190
     }
191
+    }
192
 
193
     cag_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_dataJSON, "cagData");
194
     if (cag_data) {
195
@@ -1720,13 +1765,16 @@
196
         internal_group_ids ? internal_group_idsList : NULL,
197
         shared_vn_group_data_ids ? shared_vn_group_data_idsList : NULL,
198
         subscribed_ue_ambr ? subscribed_ue_ambr_local_nonprim : NULL,
199
+        nssai && cJSON_IsNull(nssai) ? true : false,
200
         nssai ? nssai_local_nonprim : NULL,
201
         rat_restrictions ? rat_restrictionsList : NULL,
202
         forbidden_areas ? forbidden_areasList : NULL,
203
         service_area_restriction ? service_area_restriction_local_nonprim : NULL,
204
         core_network_type_restrictions ? core_network_type_restrictionsList : NULL,
205
+        rfsp_index && cJSON_IsNull(rfsp_index) ? true : false,
206
         rfsp_index ? true : false,
207
         rfsp_index ? rfsp_index->valuedouble : 0,
208
+        subs_reg_timer && cJSON_IsNull(subs_reg_timer) ? true : false,
209
         subs_reg_timer ? true : false,
210
         subs_reg_timer ? subs_reg_timer->valuedouble : 0,
211
         ue_usage_type ? true : false,
212
@@ -1735,6 +1783,7 @@
213
         mps_priority ? mps_priority->valueint : 0,
214
         mcs_priority ? true : false,
215
         mcs_priority ? mcs_priority->valueint : 0,
216
+        active_time && cJSON_IsNull(active_time) ? true : false,
217
         active_time ? true : false,
218
         active_time ? active_time->valuedouble : 0,
219
         sor_info ? sor_info_local_nonprim : NULL,
220
@@ -1754,6 +1803,7 @@
221
         service_gap_time ? service_gap_time->valuedouble : 0,
222
         mdt_user_consent ? mdt_user_consentVariable : 0,
223
         mdt_configuration ? mdt_configuration_local_nonprim : NULL,
224
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
225
         trace_data ? trace_data_local_nonprim : NULL,
226
         cag_data ? cag_data_local_nonprim : NULL,
227
         stn_sr && !cJSON_IsNull(stn_sr) ? ogs_strdup(stn_sr->valuestring) : NULL,
228
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data.h Changed
67
 
1
@@ -50,13 +50,16 @@
2
     OpenAPI_list_t *internal_group_ids;
3
     OpenAPI_list_t* shared_vn_group_data_ids;
4
     struct OpenAPI_ambr_rm_s *subscribed_ue_ambr;
5
+    bool is_nssai_null;
6
     struct OpenAPI_nssai_s *nssai;
7
     OpenAPI_set_t *rat_restrictions;
8
     OpenAPI_list_t *forbidden_areas;
9
     struct OpenAPI_service_area_restriction_s *service_area_restriction;
10
     OpenAPI_list_t *core_network_type_restrictions;
11
+    bool is_rfsp_index_null;
12
     bool is_rfsp_index;
13
     int rfsp_index;
14
+    bool is_subs_reg_timer_null;
15
     bool is_subs_reg_timer;
16
     int subs_reg_timer;
17
     bool is_ue_usage_type;
18
@@ -65,6 +68,7 @@
19
     int mps_priority;
20
     bool is_mcs_priority;
21
     int mcs_priority;
22
+    bool is_active_time_null;
23
     bool is_active_time;
24
     int active_time;
25
     struct OpenAPI_sor_info_s *sor_info;
26
@@ -84,6 +88,7 @@
27
     int service_gap_time;
28
     OpenAPI_mdt_user_consent_e mdt_user_consent;
29
     struct OpenAPI_mdt_configuration_s *mdt_configuration;
30
+    bool is_trace_data_null;
31
     struct OpenAPI_trace_data_s *trace_data;
32
     struct OpenAPI_cag_data_s *cag_data;
33
     char *stn_sr;
34
@@ -120,13 +125,16 @@
35
     OpenAPI_list_t *internal_group_ids,
36
     OpenAPI_list_t* shared_vn_group_data_ids,
37
     OpenAPI_ambr_rm_t *subscribed_ue_ambr,
38
+    bool is_nssai_null,
39
     OpenAPI_nssai_t *nssai,
40
     OpenAPI_set_t *rat_restrictions,
41
     OpenAPI_list_t *forbidden_areas,
42
     OpenAPI_service_area_restriction_t *service_area_restriction,
43
     OpenAPI_list_t *core_network_type_restrictions,
44
+    bool is_rfsp_index_null,
45
     bool is_rfsp_index,
46
     int rfsp_index,
47
+    bool is_subs_reg_timer_null,
48
     bool is_subs_reg_timer,
49
     int subs_reg_timer,
50
     bool is_ue_usage_type,
51
@@ -135,6 +143,7 @@
52
     int mps_priority,
53
     bool is_mcs_priority,
54
     int mcs_priority,
55
+    bool is_active_time_null,
56
     bool is_active_time,
57
     int active_time,
58
     OpenAPI_sor_info_t *sor_info,
59
@@ -154,6 +163,7 @@
60
     int service_gap_time,
61
     OpenAPI_mdt_user_consent_e mdt_user_consent,
62
     OpenAPI_mdt_configuration_t *mdt_configuration,
63
+    bool is_trace_data_null,
64
     OpenAPI_trace_data_t *trace_data,
65
     OpenAPI_cag_data_t *cag_data,
66
     char *stn_sr,
67
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.c Changed
228
 
1
@@ -11,13 +11,16 @@
2
     OpenAPI_list_t *internal_group_ids,
3
     OpenAPI_list_t* shared_vn_group_data_ids,
4
     OpenAPI_ambr_rm_t *subscribed_ue_ambr,
5
+    bool is_nssai_null,
6
     OpenAPI_nssai_1_t *nssai,
7
     OpenAPI_set_t *rat_restrictions,
8
     OpenAPI_list_t *forbidden_areas,
9
     OpenAPI_service_area_restriction_1_t *service_area_restriction,
10
     OpenAPI_list_t *core_network_type_restrictions,
11
+    bool is_rfsp_index_null,
12
     bool is_rfsp_index,
13
     int rfsp_index,
14
+    bool is_subs_reg_timer_null,
15
     bool is_subs_reg_timer,
16
     int subs_reg_timer,
17
     bool is_ue_usage_type,
18
@@ -26,6 +29,7 @@
19
     int mps_priority,
20
     bool is_mcs_priority,
21
     int mcs_priority,
22
+    bool is_active_time_null,
23
     bool is_active_time,
24
     int active_time,
25
     OpenAPI_sor_info_1_t *sor_info,
26
@@ -45,6 +49,7 @@
27
     int service_gap_time,
28
     OpenAPI_mdt_user_consent_e mdt_user_consent,
29
     OpenAPI_mdt_configuration_1_t *mdt_configuration,
30
+    bool is_trace_data_null,
31
     OpenAPI_trace_data_t *trace_data,
32
     OpenAPI_cag_data_1_t *cag_data,
33
     char *stn_sr,
34
@@ -83,13 +88,16 @@
35
     access_and_mobility_subscription_data_1_local_var->internal_group_ids = internal_group_ids;
36
     access_and_mobility_subscription_data_1_local_var->shared_vn_group_data_ids = shared_vn_group_data_ids;
37
     access_and_mobility_subscription_data_1_local_var->subscribed_ue_ambr = subscribed_ue_ambr;
38
+    access_and_mobility_subscription_data_1_local_var->is_nssai_null = is_nssai_null;
39
     access_and_mobility_subscription_data_1_local_var->nssai = nssai;
40
     access_and_mobility_subscription_data_1_local_var->rat_restrictions = rat_restrictions;
41
     access_and_mobility_subscription_data_1_local_var->forbidden_areas = forbidden_areas;
42
     access_and_mobility_subscription_data_1_local_var->service_area_restriction = service_area_restriction;
43
     access_and_mobility_subscription_data_1_local_var->core_network_type_restrictions = core_network_type_restrictions;
44
+    access_and_mobility_subscription_data_1_local_var->is_rfsp_index_null = is_rfsp_index_null;
45
     access_and_mobility_subscription_data_1_local_var->is_rfsp_index = is_rfsp_index;
46
     access_and_mobility_subscription_data_1_local_var->rfsp_index = rfsp_index;
47
+    access_and_mobility_subscription_data_1_local_var->is_subs_reg_timer_null = is_subs_reg_timer_null;
48
     access_and_mobility_subscription_data_1_local_var->is_subs_reg_timer = is_subs_reg_timer;
49
     access_and_mobility_subscription_data_1_local_var->subs_reg_timer = subs_reg_timer;
50
     access_and_mobility_subscription_data_1_local_var->is_ue_usage_type = is_ue_usage_type;
51
@@ -98,6 +106,7 @@
52
     access_and_mobility_subscription_data_1_local_var->mps_priority = mps_priority;
53
     access_and_mobility_subscription_data_1_local_var->is_mcs_priority = is_mcs_priority;
54
     access_and_mobility_subscription_data_1_local_var->mcs_priority = mcs_priority;
55
+    access_and_mobility_subscription_data_1_local_var->is_active_time_null = is_active_time_null;
56
     access_and_mobility_subscription_data_1_local_var->is_active_time = is_active_time;
57
     access_and_mobility_subscription_data_1_local_var->active_time = active_time;
58
     access_and_mobility_subscription_data_1_local_var->sor_info = sor_info;
59
@@ -117,6 +126,7 @@
60
     access_and_mobility_subscription_data_1_local_var->service_gap_time = service_gap_time;
61
     access_and_mobility_subscription_data_1_local_var->mdt_user_consent = mdt_user_consent;
62
     access_and_mobility_subscription_data_1_local_var->mdt_configuration = mdt_configuration;
63
+    access_and_mobility_subscription_data_1_local_var->is_trace_data_null = is_trace_data_null;
64
     access_and_mobility_subscription_data_1_local_var->trace_data = trace_data;
65
     access_and_mobility_subscription_data_1_local_var->cag_data = cag_data;
66
     access_and_mobility_subscription_data_1_local_var->stn_sr = stn_sr;
67
@@ -440,6 +450,11 @@
68
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed nssai");
69
         goto end;
70
     }
71
+    } else if (access_and_mobility_subscription_data_1->is_nssai_null) {
72
+        if (cJSON_AddNullToObject(item, "nssai") == NULL) {
73
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed nssai");
74
+            goto end;
75
+        }
76
     }
77
 
78
     if (access_and_mobility_subscription_data_1->rat_restrictions != OpenAPI_rat_type_NULL) {
79
@@ -504,6 +519,11 @@
80
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed rfsp_index");
81
         goto end;
82
     }
83
+    } else if (access_and_mobility_subscription_data_1->is_rfsp_index_null) {
84
+        if (cJSON_AddNullToObject(item, "rfspIndex") == NULL) {
85
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed rfsp_index");
86
+            goto end;
87
+        }
88
     }
89
 
90
     if (access_and_mobility_subscription_data_1->is_subs_reg_timer) {
91
@@ -511,6 +531,11 @@
92
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed subs_reg_timer");
93
         goto end;
94
     }
95
+    } else if (access_and_mobility_subscription_data_1->is_subs_reg_timer_null) {
96
+        if (cJSON_AddNullToObject(item, "subsRegTimer") == NULL) {
97
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed subs_reg_timer");
98
+            goto end;
99
+        }
100
     }
101
 
102
     if (access_and_mobility_subscription_data_1->is_ue_usage_type) {
103
@@ -539,6 +564,11 @@
104
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed active_time");
105
         goto end;
106
     }
107
+    } else if (access_and_mobility_subscription_data_1->is_active_time_null) {
108
+        if (cJSON_AddNullToObject(item, "activeTime") == NULL) {
109
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed active_time");
110
+            goto end;
111
+        }
112
     }
113
 
114
     if (access_and_mobility_subscription_data_1->sor_info) {
115
@@ -682,6 +712,11 @@
116
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed trace_data");
117
         goto end;
118
     }
119
+    } else if (access_and_mobility_subscription_data_1->is_trace_data_null) {
120
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
121
+            ogs_error("OpenAPI_access_and_mobility_subscription_data_1_convertToJSON() failed trace_data");
122
+            goto end;
123
+        }
124
     }
125
 
126
     if (access_and_mobility_subscription_data_1->cag_data) {
127
@@ -1124,12 +1159,14 @@
128
 
129
     nssai = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "nssai");
130
     if (nssai) {
131
+    if (!cJSON_IsNull(nssai)) {
132
     nssai_local_nonprim = OpenAPI_nssai_1_parseFromJSON(nssai);
133
     if (!nssai_local_nonprim) {
134
         ogs_error("OpenAPI_nssai_1_parseFromJSON failed nssai");
135
         goto end;
136
     }
137
     }
138
+    }
139
 
140
     rat_restrictions = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "ratRestrictions");
141
     if (rat_restrictions) {
142
@@ -1216,19 +1253,23 @@
143
 
144
     rfsp_index = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "rfspIndex");
145
     if (rfsp_index) {
146
+    if (!cJSON_IsNull(rfsp_index)) {
147
     if (!cJSON_IsNumber(rfsp_index)) {
148
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed rfsp_index");
149
         goto end;
150
     }
151
     }
152
+    }
153
 
154
     subs_reg_timer = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "subsRegTimer");
155
     if (subs_reg_timer) {
156
+    if (!cJSON_IsNull(subs_reg_timer)) {
157
     if (!cJSON_IsNumber(subs_reg_timer)) {
158
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed subs_reg_timer");
159
         goto end;
160
     }
161
     }
162
+    }
163
 
164
     ue_usage_type = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "ueUsageType");
165
     if (ue_usage_type) {
166
@@ -1256,11 +1297,13 @@
167
 
168
     active_time = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "activeTime");
169
     if (active_time) {
170
+    if (!cJSON_IsNull(active_time)) {
171
     if (!cJSON_IsNumber(active_time)) {
172
         ogs_error("OpenAPI_access_and_mobility_subscription_data_1_parseFromJSON() failed active_time");
173
         goto end;
174
     }
175
     }
176
+    }
177
 
178
     sor_info = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "sorInfo");
179
     if (sor_info) {
180
@@ -1416,12 +1459,14 @@
181
 
182
     trace_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "traceData");
183
     if (trace_data) {
184
+    if (!cJSON_IsNull(trace_data)) {
185
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
186
     if (!trace_data_local_nonprim) {
187
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
188
         goto end;
189
     }
190
     }
191
+    }
192
 
193
     cag_data = cJSON_GetObjectItemCaseSensitive(access_and_mobility_subscription_data_1JSON, "cagData");
194
     if (cag_data) {
195
@@ -1720,13 +1765,16 @@
196
         internal_group_ids ? internal_group_idsList : NULL,
197
         shared_vn_group_data_ids ? shared_vn_group_data_idsList : NULL,
198
         subscribed_ue_ambr ? subscribed_ue_ambr_local_nonprim : NULL,
199
+        nssai && cJSON_IsNull(nssai) ? true : false,
200
         nssai ? nssai_local_nonprim : NULL,
201
         rat_restrictions ? rat_restrictionsList : NULL,
202
         forbidden_areas ? forbidden_areasList : NULL,
203
         service_area_restriction ? service_area_restriction_local_nonprim : NULL,
204
         core_network_type_restrictions ? core_network_type_restrictionsList : NULL,
205
+        rfsp_index && cJSON_IsNull(rfsp_index) ? true : false,
206
         rfsp_index ? true : false,
207
         rfsp_index ? rfsp_index->valuedouble : 0,
208
+        subs_reg_timer && cJSON_IsNull(subs_reg_timer) ? true : false,
209
         subs_reg_timer ? true : false,
210
         subs_reg_timer ? subs_reg_timer->valuedouble : 0,
211
         ue_usage_type ? true : false,
212
@@ -1735,6 +1783,7 @@
213
         mps_priority ? mps_priority->valueint : 0,
214
         mcs_priority ? true : false,
215
         mcs_priority ? mcs_priority->valueint : 0,
216
+        active_time && cJSON_IsNull(active_time) ? true : false,
217
         active_time ? true : false,
218
         active_time ? active_time->valuedouble : 0,
219
         sor_info ? sor_info_local_nonprim : NULL,
220
@@ -1754,6 +1803,7 @@
221
         service_gap_time ? service_gap_time->valuedouble : 0,
222
         mdt_user_consent ? mdt_user_consentVariable : 0,
223
         mdt_configuration ? mdt_configuration_local_nonprim : NULL,
224
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
225
         trace_data ? trace_data_local_nonprim : NULL,
226
         cag_data ? cag_data_local_nonprim : NULL,
227
         stn_sr && !cJSON_IsNull(stn_sr) ? ogs_strdup(stn_sr->valuestring) : NULL,
228
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/access_and_mobility_subscription_data_1.h Changed
67
 
1
@@ -50,13 +50,16 @@
2
     OpenAPI_list_t *internal_group_ids;
3
     OpenAPI_list_t* shared_vn_group_data_ids;
4
     struct OpenAPI_ambr_rm_s *subscribed_ue_ambr;
5
+    bool is_nssai_null;
6
     struct OpenAPI_nssai_1_s *nssai;
7
     OpenAPI_set_t *rat_restrictions;
8
     OpenAPI_list_t *forbidden_areas;
9
     struct OpenAPI_service_area_restriction_1_s *service_area_restriction;
10
     OpenAPI_list_t *core_network_type_restrictions;
11
+    bool is_rfsp_index_null;
12
     bool is_rfsp_index;
13
     int rfsp_index;
14
+    bool is_subs_reg_timer_null;
15
     bool is_subs_reg_timer;
16
     int subs_reg_timer;
17
     bool is_ue_usage_type;
18
@@ -65,6 +68,7 @@
19
     int mps_priority;
20
     bool is_mcs_priority;
21
     int mcs_priority;
22
+    bool is_active_time_null;
23
     bool is_active_time;
24
     int active_time;
25
     struct OpenAPI_sor_info_1_s *sor_info;
26
@@ -84,6 +88,7 @@
27
     int service_gap_time;
28
     OpenAPI_mdt_user_consent_e mdt_user_consent;
29
     struct OpenAPI_mdt_configuration_1_s *mdt_configuration;
30
+    bool is_trace_data_null;
31
     struct OpenAPI_trace_data_s *trace_data;
32
     struct OpenAPI_cag_data_1_s *cag_data;
33
     char *stn_sr;
34
@@ -120,13 +125,16 @@
35
     OpenAPI_list_t *internal_group_ids,
36
     OpenAPI_list_t* shared_vn_group_data_ids,
37
     OpenAPI_ambr_rm_t *subscribed_ue_ambr,
38
+    bool is_nssai_null,
39
     OpenAPI_nssai_1_t *nssai,
40
     OpenAPI_set_t *rat_restrictions,
41
     OpenAPI_list_t *forbidden_areas,
42
     OpenAPI_service_area_restriction_1_t *service_area_restriction,
43
     OpenAPI_list_t *core_network_type_restrictions,
44
+    bool is_rfsp_index_null,
45
     bool is_rfsp_index,
46
     int rfsp_index,
47
+    bool is_subs_reg_timer_null,
48
     bool is_subs_reg_timer,
49
     int subs_reg_timer,
50
     bool is_ue_usage_type,
51
@@ -135,6 +143,7 @@
52
     int mps_priority,
53
     bool is_mcs_priority,
54
     int mcs_priority,
55
+    bool is_active_time_null,
56
     bool is_active_time,
57
     int active_time,
58
     OpenAPI_sor_info_1_t *sor_info,
59
@@ -154,6 +163,7 @@
60
     int service_gap_time,
61
     OpenAPI_mdt_user_consent_e mdt_user_consent,
62
     OpenAPI_mdt_configuration_1_t *mdt_configuration,
63
+    bool is_trace_data_null,
64
     OpenAPI_trace_data_t *trace_data,
65
     OpenAPI_cag_data_1_t *cag_data,
66
     char *stn_sr,
67
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/af_routing_requirement.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/af_routing_requirement.c Changed
52
 
1
@@ -10,6 +10,7 @@
2
     OpenAPI_list_t *route_to_locs,
3
     OpenAPI_spatial_validity_t *sp_val,
4
     OpenAPI_list_t *temp_vals,
5
+    bool is_up_path_chg_sub_null,
6
     OpenAPI_up_path_chg_event_t *up_path_chg_sub,
7
     bool is_addr_preser_ind,
8
     int addr_preser_ind,
9
@@ -32,6 +33,7 @@
10
     af_routing_requirement_local_var->route_to_locs = route_to_locs;
11
     af_routing_requirement_local_var->sp_val = sp_val;
12
     af_routing_requirement_local_var->temp_vals = temp_vals;
13
+    af_routing_requirement_local_var->is_up_path_chg_sub_null = is_up_path_chg_sub_null;
14
     af_routing_requirement_local_var->up_path_chg_sub = up_path_chg_sub;
15
     af_routing_requirement_local_var->is_addr_preser_ind = is_addr_preser_ind;
16
     af_routing_requirement_local_var->addr_preser_ind = addr_preser_ind;
17
@@ -161,6 +163,11 @@
18
         ogs_error("OpenAPI_af_routing_requirement_convertToJSON() failed up_path_chg_sub");
19
         goto end;
20
     }
21
+    } else if (af_routing_requirement->is_up_path_chg_sub_null) {
22
+        if (cJSON_AddNullToObject(item, "upPathChgSub") == NULL) {
23
+            ogs_error("OpenAPI_af_routing_requirement_convertToJSON() failed up_path_chg_sub");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (af_routing_requirement->is_addr_preser_ind) {
29
@@ -305,12 +312,14 @@
30
 
31
     up_path_chg_sub = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "upPathChgSub");
32
     if (up_path_chg_sub) {
33
+    if (!cJSON_IsNull(up_path_chg_sub)) {
34
     up_path_chg_sub_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_sub);
35
     if (!up_path_chg_sub_local_nonprim) {
36
         ogs_error("OpenAPI_up_path_chg_event_parseFromJSON failed up_path_chg_sub");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     addr_preser_ind = cJSON_GetObjectItemCaseSensitive(af_routing_requirementJSON, "addrPreserInd");
43
     if (addr_preser_ind) {
44
@@ -382,6 +391,7 @@
45
         route_to_locs ? route_to_locsList : NULL,
46
         sp_val ? sp_val_local_nonprim : NULL,
47
         temp_vals ? temp_valsList : NULL,
48
+        up_path_chg_sub && cJSON_IsNull(up_path_chg_sub) ? true : false,
49
         up_path_chg_sub ? up_path_chg_sub_local_nonprim : NULL,
50
         addr_preser_ind ? true : false,
51
         addr_preser_ind ? addr_preser_ind->valueint : 0,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/af_routing_requirement.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/af_routing_requirement.h Changed
17
 
1
@@ -29,6 +29,7 @@
2
     OpenAPI_list_t *route_to_locs;
3
     struct OpenAPI_spatial_validity_s *sp_val;
4
     OpenAPI_list_t *temp_vals;
5
+    bool is_up_path_chg_sub_null;
6
     struct OpenAPI_up_path_chg_event_s *up_path_chg_sub;
7
     bool is_addr_preser_ind;
8
     int addr_preser_ind;
9
@@ -49,6 +50,7 @@
10
     OpenAPI_list_t *route_to_locs,
11
     OpenAPI_spatial_validity_t *sp_val,
12
     OpenAPI_list_t *temp_vals,
13
+    bool is_up_path_chg_sub_null,
14
     OpenAPI_up_path_chg_event_t *up_path_chg_sub,
15
     bool is_addr_preser_ind,
16
     int addr_preser_ind,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/af_routing_requirement_rm.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/af_routing_requirement_rm.c Changed
299
 
1
@@ -7,19 +7,28 @@
2
 OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_create(
3
     bool is_app_reloc,
4
     int app_reloc,
5
+    bool is_route_to_locs_null,
6
     OpenAPI_list_t *route_to_locs,
7
+    bool is_sp_val_null,
8
     OpenAPI_spatial_validity_rm_t *sp_val,
9
+    bool is_temp_vals_null,
10
     OpenAPI_list_t *temp_vals,
11
+    bool is_up_path_chg_sub_null,
12
     OpenAPI_up_path_chg_event_t *up_path_chg_sub,
13
+    bool is_addr_preser_ind_null,
14
     bool is_addr_preser_ind,
15
     int addr_preser_ind,
16
+    bool is_sim_conn_ind_null,
17
     bool is_sim_conn_ind,
18
     int sim_conn_ind,
19
+    bool is_sim_conn_term_null,
20
     bool is_sim_conn_term,
21
     int sim_conn_term,
22
+    bool is_eas_ip_replace_infos_null,
23
     OpenAPI_list_t *eas_ip_replace_infos,
24
     bool is_eas_redis_ind,
25
     int eas_redis_ind,
26
+    bool is_max_allowed_up_lat_null,
27
     bool is_max_allowed_up_lat,
28
     int max_allowed_up_lat
29
 )
30
@@ -29,19 +38,28 @@
31
 
32
     af_routing_requirement_rm_local_var->is_app_reloc = is_app_reloc;
33
     af_routing_requirement_rm_local_var->app_reloc = app_reloc;
34
+    af_routing_requirement_rm_local_var->is_route_to_locs_null = is_route_to_locs_null;
35
     af_routing_requirement_rm_local_var->route_to_locs = route_to_locs;
36
+    af_routing_requirement_rm_local_var->is_sp_val_null = is_sp_val_null;
37
     af_routing_requirement_rm_local_var->sp_val = sp_val;
38
+    af_routing_requirement_rm_local_var->is_temp_vals_null = is_temp_vals_null;
39
     af_routing_requirement_rm_local_var->temp_vals = temp_vals;
40
+    af_routing_requirement_rm_local_var->is_up_path_chg_sub_null = is_up_path_chg_sub_null;
41
     af_routing_requirement_rm_local_var->up_path_chg_sub = up_path_chg_sub;
42
+    af_routing_requirement_rm_local_var->is_addr_preser_ind_null = is_addr_preser_ind_null;
43
     af_routing_requirement_rm_local_var->is_addr_preser_ind = is_addr_preser_ind;
44
     af_routing_requirement_rm_local_var->addr_preser_ind = addr_preser_ind;
45
+    af_routing_requirement_rm_local_var->is_sim_conn_ind_null = is_sim_conn_ind_null;
46
     af_routing_requirement_rm_local_var->is_sim_conn_ind = is_sim_conn_ind;
47
     af_routing_requirement_rm_local_var->sim_conn_ind = sim_conn_ind;
48
+    af_routing_requirement_rm_local_var->is_sim_conn_term_null = is_sim_conn_term_null;
49
     af_routing_requirement_rm_local_var->is_sim_conn_term = is_sim_conn_term;
50
     af_routing_requirement_rm_local_var->sim_conn_term = sim_conn_term;
51
+    af_routing_requirement_rm_local_var->is_eas_ip_replace_infos_null = is_eas_ip_replace_infos_null;
52
     af_routing_requirement_rm_local_var->eas_ip_replace_infos = eas_ip_replace_infos;
53
     af_routing_requirement_rm_local_var->is_eas_redis_ind = is_eas_redis_ind;
54
     af_routing_requirement_rm_local_var->eas_redis_ind = eas_redis_ind;
55
+    af_routing_requirement_rm_local_var->is_max_allowed_up_lat_null = is_max_allowed_up_lat_null;
56
     af_routing_requirement_rm_local_var->is_max_allowed_up_lat = is_max_allowed_up_lat;
57
     af_routing_requirement_rm_local_var->max_allowed_up_lat = max_allowed_up_lat;
58
 
59
@@ -119,6 +137,11 @@
60
         }
61
         cJSON_AddItemToArray(route_to_locsList, itemLocal);
62
     }
63
+    } else if (af_routing_requirement_rm->is_route_to_locs_null) {
64
+        if (cJSON_AddNullToObject(item, "routeToLocs") == NULL) {
65
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed route_to_locs");
66
+            goto end;
67
+        }
68
     }
69
 
70
     if (af_routing_requirement_rm->sp_val) {
71
@@ -132,6 +155,11 @@
72
         ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed sp_val");
73
         goto end;
74
     }
75
+    } else if (af_routing_requirement_rm->is_sp_val_null) {
76
+        if (cJSON_AddNullToObject(item, "spVal") == NULL) {
77
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed sp_val");
78
+            goto end;
79
+        }
80
     }
81
 
82
     if (af_routing_requirement_rm->temp_vals) {
83
@@ -148,6 +176,11 @@
84
         }
85
         cJSON_AddItemToArray(temp_valsList, itemLocal);
86
     }
87
+    } else if (af_routing_requirement_rm->is_temp_vals_null) {
88
+        if (cJSON_AddNullToObject(item, "tempVals") == NULL) {
89
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed temp_vals");
90
+            goto end;
91
+        }
92
     }
93
 
94
     if (af_routing_requirement_rm->up_path_chg_sub) {
95
@@ -161,6 +194,11 @@
96
         ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed up_path_chg_sub");
97
         goto end;
98
     }
99
+    } else if (af_routing_requirement_rm->is_up_path_chg_sub_null) {
100
+        if (cJSON_AddNullToObject(item, "upPathChgSub") == NULL) {
101
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed up_path_chg_sub");
102
+            goto end;
103
+        }
104
     }
105
 
106
     if (af_routing_requirement_rm->is_addr_preser_ind) {
107
@@ -168,6 +206,11 @@
108
         ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed addr_preser_ind");
109
         goto end;
110
     }
111
+    } else if (af_routing_requirement_rm->is_addr_preser_ind_null) {
112
+        if (cJSON_AddNullToObject(item, "addrPreserInd") == NULL) {
113
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed addr_preser_ind");
114
+            goto end;
115
+        }
116
     }
117
 
118
     if (af_routing_requirement_rm->is_sim_conn_ind) {
119
@@ -175,6 +218,11 @@
120
         ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed sim_conn_ind");
121
         goto end;
122
     }
123
+    } else if (af_routing_requirement_rm->is_sim_conn_ind_null) {
124
+        if (cJSON_AddNullToObject(item, "simConnInd") == NULL) {
125
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed sim_conn_ind");
126
+            goto end;
127
+        }
128
     }
129
 
130
     if (af_routing_requirement_rm->is_sim_conn_term) {
131
@@ -182,6 +230,11 @@
132
         ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed sim_conn_term");
133
         goto end;
134
     }
135
+    } else if (af_routing_requirement_rm->is_sim_conn_term_null) {
136
+        if (cJSON_AddNullToObject(item, "simConnTerm") == NULL) {
137
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed sim_conn_term");
138
+            goto end;
139
+        }
140
     }
141
 
142
     if (af_routing_requirement_rm->eas_ip_replace_infos) {
143
@@ -198,6 +251,11 @@
144
         }
145
         cJSON_AddItemToArray(eas_ip_replace_infosList, itemLocal);
146
     }
147
+    } else if (af_routing_requirement_rm->is_eas_ip_replace_infos_null) {
148
+        if (cJSON_AddNullToObject(item, "easIpReplaceInfos") == NULL) {
149
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed eas_ip_replace_infos");
150
+            goto end;
151
+        }
152
     }
153
 
154
     if (af_routing_requirement_rm->is_eas_redis_ind) {
155
@@ -212,6 +270,11 @@
156
         ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed max_allowed_up_lat");
157
         goto end;
158
     }
159
+    } else if (af_routing_requirement_rm->is_max_allowed_up_lat_null) {
160
+        if (cJSON_AddNullToObject(item, "maxAllowedUpLat") == NULL) {
161
+            ogs_error("OpenAPI_af_routing_requirement_rm_convertToJSON() failed max_allowed_up_lat");
162
+            goto end;
163
+        }
164
     }
165
 
166
 end:
167
@@ -248,6 +311,7 @@
168
 
169
     route_to_locs = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "routeToLocs");
170
     if (route_to_locs) {
171
+    if (!cJSON_IsNull(route_to_locs)) {
172
         cJSON *route_to_locs_local = NULL;
173
         if (!cJSON_IsArray(route_to_locs)) {
174
             ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed route_to_locs");
175
@@ -269,18 +333,22 @@
176
             OpenAPI_list_add(route_to_locsList, route_to_locsItem);
177
         }
178
     }
179
+    }
180
 
181
     sp_val = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "spVal");
182
     if (sp_val) {
183
+    if (!cJSON_IsNull(sp_val)) {
184
     sp_val_local_nonprim = OpenAPI_spatial_validity_rm_parseFromJSON(sp_val);
185
     if (!sp_val_local_nonprim) {
186
         ogs_error("OpenAPI_spatial_validity_rm_parseFromJSON failed sp_val");
187
         goto end;
188
     }
189
     }
190
+    }
191
 
192
     temp_vals = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "tempVals");
193
     if (temp_vals) {
194
+    if (!cJSON_IsNull(temp_vals)) {
195
         cJSON *temp_vals_local = NULL;
196
         if (!cJSON_IsArray(temp_vals)) {
197
             ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed temp_vals");
198
@@ -302,42 +370,52 @@
199
             OpenAPI_list_add(temp_valsList, temp_valsItem);
200
         }
201
     }
202
+    }
203
 
204
     up_path_chg_sub = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "upPathChgSub");
205
     if (up_path_chg_sub) {
206
+    if (!cJSON_IsNull(up_path_chg_sub)) {
207
     up_path_chg_sub_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_sub);
208
     if (!up_path_chg_sub_local_nonprim) {
209
         ogs_error("OpenAPI_up_path_chg_event_parseFromJSON failed up_path_chg_sub");
210
         goto end;
211
     }
212
     }
213
+    }
214
 
215
     addr_preser_ind = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "addrPreserInd");
216
     if (addr_preser_ind) {
217
+    if (!cJSON_IsNull(addr_preser_ind)) {
218
     if (!cJSON_IsBool(addr_preser_ind)) {
219
         ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed addr_preser_ind");
220
         goto end;
221
     }
222
     }
223
+    }
224
 
225
     sim_conn_ind = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "simConnInd");
226
     if (sim_conn_ind) {
227
+    if (!cJSON_IsNull(sim_conn_ind)) {
228
     if (!cJSON_IsBool(sim_conn_ind)) {
229
         ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed sim_conn_ind");
230
         goto end;
231
     }
232
     }
233
+    }
234
 
235
     sim_conn_term = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "simConnTerm");
236
     if (sim_conn_term) {
237
+    if (!cJSON_IsNull(sim_conn_term)) {
238
     if (!cJSON_IsNumber(sim_conn_term)) {
239
         ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed sim_conn_term");
240
         goto end;
241
     }
242
     }
243
+    }
244
 
245
     eas_ip_replace_infos = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "easIpReplaceInfos");
246
     if (eas_ip_replace_infos) {
247
+    if (!cJSON_IsNull(eas_ip_replace_infos)) {
248
         cJSON *eas_ip_replace_infos_local = NULL;
249
         if (!cJSON_IsArray(eas_ip_replace_infos)) {
250
             ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed eas_ip_replace_infos");
251
@@ -359,6 +437,7 @@
252
             OpenAPI_list_add(eas_ip_replace_infosList, eas_ip_replace_infosItem);
253
         }
254
     }
255
+    }
256
 
257
     eas_redis_ind = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "easRedisInd");
258
     if (eas_redis_ind) {
259
@@ -370,28 +449,39 @@
260
 
261
     max_allowed_up_lat = cJSON_GetObjectItemCaseSensitive(af_routing_requirement_rmJSON, "maxAllowedUpLat");
262
     if (max_allowed_up_lat) {
263
+    if (!cJSON_IsNull(max_allowed_up_lat)) {
264
     if (!cJSON_IsNumber(max_allowed_up_lat)) {
265
         ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON() failed max_allowed_up_lat");
266
         goto end;
267
     }
268
     }
269
+    }
270
 
271
     af_routing_requirement_rm_local_var = OpenAPI_af_routing_requirement_rm_create (
272
         app_reloc ? true : false,
273
         app_reloc ? app_reloc->valueint : 0,
274
+        route_to_locs && cJSON_IsNull(route_to_locs) ? true : false,
275
         route_to_locs ? route_to_locsList : NULL,
276
+        sp_val && cJSON_IsNull(sp_val) ? true : false,
277
         sp_val ? sp_val_local_nonprim : NULL,
278
+        temp_vals && cJSON_IsNull(temp_vals) ? true : false,
279
         temp_vals ? temp_valsList : NULL,
280
+        up_path_chg_sub && cJSON_IsNull(up_path_chg_sub) ? true : false,
281
         up_path_chg_sub ? up_path_chg_sub_local_nonprim : NULL,
282
+        addr_preser_ind && cJSON_IsNull(addr_preser_ind) ? true : false,
283
         addr_preser_ind ? true : false,
284
         addr_preser_ind ? addr_preser_ind->valueint : 0,
285
+        sim_conn_ind && cJSON_IsNull(sim_conn_ind) ? true : false,
286
         sim_conn_ind ? true : false,
287
         sim_conn_ind ? sim_conn_ind->valueint : 0,
288
+        sim_conn_term && cJSON_IsNull(sim_conn_term) ? true : false,
289
         sim_conn_term ? true : false,
290
         sim_conn_term ? sim_conn_term->valuedouble : 0,
291
+        eas_ip_replace_infos && cJSON_IsNull(eas_ip_replace_infos) ? true : false,
292
         eas_ip_replace_infos ? eas_ip_replace_infosList : NULL,
293
         eas_redis_ind ? true : false,
294
         eas_redis_ind ? eas_redis_ind->valueint : 0,
295
+        max_allowed_up_lat && cJSON_IsNull(max_allowed_up_lat) ? true : false,
296
         max_allowed_up_lat ? true : false,
297
         max_allowed_up_lat ? max_allowed_up_lat->valuedouble : 0
298
     );
299
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/af_routing_requirement_rm.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/af_routing_requirement_rm.h Changed
59
 
1
@@ -26,19 +26,28 @@
2
 typedef struct OpenAPI_af_routing_requirement_rm_s {
3
     bool is_app_reloc;
4
     int app_reloc;
5
+    bool is_route_to_locs_null;
6
     OpenAPI_list_t *route_to_locs;
7
+    bool is_sp_val_null;
8
     struct OpenAPI_spatial_validity_rm_s *sp_val;
9
+    bool is_temp_vals_null;
10
     OpenAPI_list_t *temp_vals;
11
+    bool is_up_path_chg_sub_null;
12
     struct OpenAPI_up_path_chg_event_s *up_path_chg_sub;
13
+    bool is_addr_preser_ind_null;
14
     bool is_addr_preser_ind;
15
     int addr_preser_ind;
16
+    bool is_sim_conn_ind_null;
17
     bool is_sim_conn_ind;
18
     int sim_conn_ind;
19
+    bool is_sim_conn_term_null;
20
     bool is_sim_conn_term;
21
     int sim_conn_term;
22
+    bool is_eas_ip_replace_infos_null;
23
     OpenAPI_list_t *eas_ip_replace_infos;
24
     bool is_eas_redis_ind;
25
     int eas_redis_ind;
26
+    bool is_max_allowed_up_lat_null;
27
     bool is_max_allowed_up_lat;
28
     int max_allowed_up_lat;
29
 } OpenAPI_af_routing_requirement_rm_t;
30
@@ -46,19 +55,28 @@
31
 OpenAPI_af_routing_requirement_rm_t *OpenAPI_af_routing_requirement_rm_create(
32
     bool is_app_reloc,
33
     int app_reloc,
34
+    bool is_route_to_locs_null,
35
     OpenAPI_list_t *route_to_locs,
36
+    bool is_sp_val_null,
37
     OpenAPI_spatial_validity_rm_t *sp_val,
38
+    bool is_temp_vals_null,
39
     OpenAPI_list_t *temp_vals,
40
+    bool is_up_path_chg_sub_null,
41
     OpenAPI_up_path_chg_event_t *up_path_chg_sub,
42
+    bool is_addr_preser_ind_null,
43
     bool is_addr_preser_ind,
44
     int addr_preser_ind,
45
+    bool is_sim_conn_ind_null,
46
     bool is_sim_conn_ind,
47
     int sim_conn_ind,
48
+    bool is_sim_conn_term_null,
49
     bool is_sim_conn_term,
50
     int sim_conn_term,
51
+    bool is_eas_ip_replace_infos_null,
52
     OpenAPI_list_t *eas_ip_replace_infos,
53
     bool is_eas_redis_ind,
54
     int eas_redis_ind,
55
+    bool is_max_allowed_up_lat_null,
56
     bool is_max_allowed_up_lat,
57
     int max_allowed_up_lat
58
 );
59
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/amf3_gpp_access_registration_modification.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/amf3_gpp_access_registration_modification.c Changed
51
 
1
@@ -12,6 +12,7 @@
2
     OpenAPI_ims_vo_ps_e ims_vo_ps,
3
     OpenAPI_list_t *backup_amf_info,
4
     OpenAPI_eps_interworking_info_t *eps_interworking_info,
5
+    bool is_ue_srvcc_capability_null,
6
     bool is_ue_srvcc_capability,
7
     int ue_srvcc_capability,
8
     bool is_ue_mint_capability,
9
@@ -28,6 +29,7 @@
10
     amf3_gpp_access_registration_modification_local_var->ims_vo_ps = ims_vo_ps;
11
     amf3_gpp_access_registration_modification_local_var->backup_amf_info = backup_amf_info;
12
     amf3_gpp_access_registration_modification_local_var->eps_interworking_info = eps_interworking_info;
13
+    amf3_gpp_access_registration_modification_local_var->is_ue_srvcc_capability_null = is_ue_srvcc_capability_null;
14
     amf3_gpp_access_registration_modification_local_var->is_ue_srvcc_capability = is_ue_srvcc_capability;
15
     amf3_gpp_access_registration_modification_local_var->ue_srvcc_capability = ue_srvcc_capability;
16
     amf3_gpp_access_registration_modification_local_var->is_ue_mint_capability = is_ue_mint_capability;
17
@@ -146,6 +148,11 @@
18
         ogs_error("OpenAPI_amf3_gpp_access_registration_modification_convertToJSON() failed ue_srvcc_capability");
19
         goto end;
20
     }
21
+    } else if (amf3_gpp_access_registration_modification->is_ue_srvcc_capability_null) {
22
+        if (cJSON_AddNullToObject(item, "ueSrvccCapability") == NULL) {
23
+            ogs_error("OpenAPI_amf3_gpp_access_registration_modification_convertToJSON() failed ue_srvcc_capability");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (amf3_gpp_access_registration_modification->is_ue_mint_capability) {
29
@@ -246,11 +253,13 @@
30
 
31
     ue_srvcc_capability = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "ueSrvccCapability");
32
     if (ue_srvcc_capability) {
33
+    if (!cJSON_IsNull(ue_srvcc_capability)) {
34
     if (!cJSON_IsBool(ue_srvcc_capability)) {
35
         ogs_error("OpenAPI_amf3_gpp_access_registration_modification_parseFromJSON() failed ue_srvcc_capability");
36
         goto end;
37
     }
38
     }
39
+    }
40
 
41
     ue_mint_capability = cJSON_GetObjectItemCaseSensitive(amf3_gpp_access_registration_modificationJSON, "ueMINTCapability");
42
     if (ue_mint_capability) {
43
@@ -268,6 +277,7 @@
44
         ims_vo_ps ? ims_vo_psVariable : 0,
45
         backup_amf_info ? backup_amf_infoList : NULL,
46
         eps_interworking_info ? eps_interworking_info_local_nonprim : NULL,
47
+        ue_srvcc_capability && cJSON_IsNull(ue_srvcc_capability) ? true : false,
48
         ue_srvcc_capability ? true : false,
49
         ue_srvcc_capability ? ue_srvcc_capability->valueint : 0,
50
         ue_mint_capability ? true : false,
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/amf3_gpp_access_registration_modification.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/amf3_gpp_access_registration_modification.h Changed
17
 
1
@@ -30,6 +30,7 @@
2
     OpenAPI_ims_vo_ps_e ims_vo_ps;
3
     OpenAPI_list_t *backup_amf_info;
4
     struct OpenAPI_eps_interworking_info_s *eps_interworking_info;
5
+    bool is_ue_srvcc_capability_null;
6
     bool is_ue_srvcc_capability;
7
     int ue_srvcc_capability;
8
     bool is_ue_mint_capability;
9
@@ -44,6 +45,7 @@
10
     OpenAPI_ims_vo_ps_e ims_vo_ps,
11
     OpenAPI_list_t *backup_amf_info,
12
     OpenAPI_eps_interworking_info_t *eps_interworking_info,
13
+    bool is_ue_srvcc_capability_null,
14
     bool is_ue_srvcc_capability,
15
     int ue_srvcc_capability,
16
     bool is_ue_mint_capability,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.c Changed
91
 
1
@@ -6,9 +6,11 @@
2
 
3
 OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_data_create(
4
     char *af_app_id,
5
+    bool is_af_rout_req_null,
6
     OpenAPI_af_routing_requirement_rm_t *af_rout_req,
7
     char *asp_id,
8
     char *bdt_ref_id,
9
+    bool is_ev_subsc_null,
10
     OpenAPI_events_subsc_req_data_rm_t *ev_subsc,
11
     char *mcptt_id,
12
     char *mc_video_id,
13
@@ -31,9 +33,11 @@
14
     ogs_assert(app_session_context_update_data_local_var);
15
 
16
     app_session_context_update_data_local_var->af_app_id = af_app_id;
17
+    app_session_context_update_data_local_var->is_af_rout_req_null = is_af_rout_req_null;
18
     app_session_context_update_data_local_var->af_rout_req = af_rout_req;
19
     app_session_context_update_data_local_var->asp_id = asp_id;
20
     app_session_context_update_data_local_var->bdt_ref_id = bdt_ref_id;
21
+    app_session_context_update_data_local_var->is_ev_subsc_null = is_ev_subsc_null;
22
     app_session_context_update_data_local_var->ev_subsc = ev_subsc;
23
     app_session_context_update_data_local_var->mcptt_id = mcptt_id;
24
     app_session_context_update_data_local_var->mc_video_id = mc_video_id;
25
@@ -162,6 +166,11 @@
26
         ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed af_rout_req");
27
         goto end;
28
     }
29
+    } else if (app_session_context_update_data->is_af_rout_req_null) {
30
+        if (cJSON_AddNullToObject(item, "afRoutReq") == NULL) {
31
+            ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed af_rout_req");
32
+            goto end;
33
+        }
34
     }
35
 
36
     if (app_session_context_update_data->asp_id) {
37
@@ -189,6 +198,11 @@
38
         ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed ev_subsc");
39
         goto end;
40
     }
41
+    } else if (app_session_context_update_data->is_ev_subsc_null) {
42
+        if (cJSON_AddNullToObject(item, "evSubsc") == NULL) {
43
+            ogs_error("OpenAPI_app_session_context_update_data_convertToJSON() failed ev_subsc");
44
+            goto end;
45
+        }
46
     }
47
 
48
     if (app_session_context_update_data->mcptt_id) {
49
@@ -396,12 +410,14 @@
50
 
51
     af_rout_req = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "afRoutReq");
52
     if (af_rout_req) {
53
+    if (!cJSON_IsNull(af_rout_req)) {
54
     af_rout_req_local_nonprim = OpenAPI_af_routing_requirement_rm_parseFromJSON(af_rout_req);
55
     if (!af_rout_req_local_nonprim) {
56
         ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON failed af_rout_req");
57
         goto end;
58
     }
59
     }
60
+    }
61
 
62
     asp_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "aspId");
63
     if (asp_id) {
64
@@ -421,12 +437,14 @@
65
 
66
     ev_subsc = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "evSubsc");
67
     if (ev_subsc) {
68
+    if (!cJSON_IsNull(ev_subsc)) {
69
     ev_subsc_local_nonprim = OpenAPI_events_subsc_req_data_rm_parseFromJSON(ev_subsc);
70
     if (!ev_subsc_local_nonprim) {
71
         ogs_error("OpenAPI_events_subsc_req_data_rm_parseFromJSON failed ev_subsc");
72
         goto end;
73
     }
74
     }
75
+    }
76
 
77
     mcptt_id = cJSON_GetObjectItemCaseSensitive(app_session_context_update_dataJSON, "mcpttId");
78
     if (mcptt_id) {
79
@@ -592,9 +610,11 @@
80
 
81
     app_session_context_update_data_local_var = OpenAPI_app_session_context_update_data_create (
82
         af_app_id && !cJSON_IsNull(af_app_id) ? ogs_strdup(af_app_id->valuestring) : NULL,
83
+        af_rout_req && cJSON_IsNull(af_rout_req) ? true : false,
84
         af_rout_req ? af_rout_req_local_nonprim : NULL,
85
         asp_id && !cJSON_IsNull(asp_id) ? ogs_strdup(asp_id->valuestring) : NULL,
86
         bdt_ref_id && !cJSON_IsNull(bdt_ref_id) ? ogs_strdup(bdt_ref_id->valuestring) : NULL,
87
+        ev_subsc && cJSON_IsNull(ev_subsc) ? true : false,
88
         ev_subsc ? ev_subsc_local_nonprim : NULL,
89
         mcptt_id && !cJSON_IsNull(mcptt_id) ? ogs_strdup(mcptt_id->valuestring) : NULL,
90
         mc_video_id && !cJSON_IsNull(mc_video_id) ? ogs_strdup(mc_video_id->valuestring) : NULL,
91
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/app_session_context_update_data.h Changed
25
 
1
@@ -31,9 +31,11 @@
2
 typedef struct OpenAPI_app_session_context_update_data_s OpenAPI_app_session_context_update_data_t;
3
 typedef struct OpenAPI_app_session_context_update_data_s {
4
     char *af_app_id;
5
+    bool is_af_rout_req_null;
6
     struct OpenAPI_af_routing_requirement_rm_s *af_rout_req;
7
     char *asp_id;
8
     char *bdt_ref_id;
9
+    bool is_ev_subsc_null;
10
     struct OpenAPI_events_subsc_req_data_rm_s *ev_subsc;
11
     char *mcptt_id;
12
     char *mc_video_id;
13
@@ -54,9 +56,11 @@
14
 
15
 OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_data_create(
16
     char *af_app_id,
17
+    bool is_af_rout_req_null,
18
     OpenAPI_af_routing_requirement_rm_t *af_rout_req,
19
     char *asp_id,
20
     char *bdt_ref_id,
21
+    bool is_ev_subsc_null,
22
     OpenAPI_events_subsc_req_data_rm_t *ev_subsc,
23
     char *mcptt_id,
24
     char *mc_video_id,
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/arp.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/arp.c Changed
25
 
1
@@ -5,6 +5,7 @@
2
 #include "arp.h"
3
 
4
 OpenAPI_arp_t *OpenAPI_arp_create(
5
+    bool is_priority_level_null,
6
     int priority_level,
7
     OpenAPI_preemption_capability_e preempt_cap,
8
     OpenAPI_preemption_vulnerability_e preempt_vuln
9
@@ -13,6 +14,7 @@
10
     OpenAPI_arp_t *arp_local_var = ogs_malloc(sizeof(OpenAPI_arp_t));
11
     ogs_assert(arp_local_var);
12
 
13
+    arp_local_var->is_priority_level_null = is_priority_level_null;
14
     arp_local_var->priority_level = priority_level;
15
     arp_local_var->preempt_cap = preempt_cap;
16
     arp_local_var->preempt_vuln = preempt_vuln;
17
@@ -110,6 +112,7 @@
18
     preempt_vulnVariable = OpenAPI_preemption_vulnerability_FromString(preempt_vuln->valuestring);
19
 
20
     arp_local_var = OpenAPI_arp_create (
21
+        priority_level && cJSON_IsNull(priority_level) ? true : false,
22
         
23
         priority_level->valuedouble,
24
         preempt_capVariable,
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/arp.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/arp.h Changed
16
 
1
@@ -21,12 +21,14 @@
2
 
3
 typedef struct OpenAPI_arp_s OpenAPI_arp_t;
4
 typedef struct OpenAPI_arp_s {
5
+    bool is_priority_level_null;
6
     int priority_level;
7
     OpenAPI_preemption_capability_e preempt_cap;
8
     OpenAPI_preemption_vulnerability_e preempt_vuln;
9
 } OpenAPI_arp_t;
10
 
11
 OpenAPI_arp_t *OpenAPI_arp_create(
12
+    bool is_priority_level_null,
13
     int priority_level,
14
     OpenAPI_preemption_capability_e preempt_cap,
15
     OpenAPI_preemption_vulnerability_e preempt_vuln
16
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/arp_1.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/arp_1.c Changed
25
 
1
@@ -5,6 +5,7 @@
2
 #include "arp_1.h"
3
 
4
 OpenAPI_arp_1_t *OpenAPI_arp_1_create(
5
+    bool is_priority_level_null,
6
     int priority_level,
7
     OpenAPI_preemption_capability_e preempt_cap,
8
     OpenAPI_preemption_vulnerability_e preempt_vuln
9
@@ -13,6 +14,7 @@
10
     OpenAPI_arp_1_t *arp_1_local_var = ogs_malloc(sizeof(OpenAPI_arp_1_t));
11
     ogs_assert(arp_1_local_var);
12
 
13
+    arp_1_local_var->is_priority_level_null = is_priority_level_null;
14
     arp_1_local_var->priority_level = priority_level;
15
     arp_1_local_var->preempt_cap = preempt_cap;
16
     arp_1_local_var->preempt_vuln = preempt_vuln;
17
@@ -110,6 +112,7 @@
18
     preempt_vulnVariable = OpenAPI_preemption_vulnerability_FromString(preempt_vuln->valuestring);
19
 
20
     arp_1_local_var = OpenAPI_arp_1_create (
21
+        priority_level && cJSON_IsNull(priority_level) ? true : false,
22
         
23
         priority_level->valuedouble,
24
         preempt_capVariable,
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/arp_1.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/arp_1.h Changed
16
 
1
@@ -21,12 +21,14 @@
2
 
3
 typedef struct OpenAPI_arp_1_s OpenAPI_arp_1_t;
4
 typedef struct OpenAPI_arp_1_s {
5
+    bool is_priority_level_null;
6
     int priority_level;
7
     OpenAPI_preemption_capability_e preempt_cap;
8
     OpenAPI_preemption_vulnerability_e preempt_vuln;
9
 } OpenAPI_arp_1_t;
10
 
11
 OpenAPI_arp_1_t *OpenAPI_arp_1_create(
12
+    bool is_priority_level_null,
13
     int priority_level,
14
     OpenAPI_preemption_capability_e preempt_cap,
15
     OpenAPI_preemption_vulnerability_e preempt_vuln
16
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/as_time_distribution_param.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/as_time_distribution_param.c Changed
48
 
1
@@ -7,6 +7,7 @@
2
 OpenAPI_as_time_distribution_param_t *OpenAPI_as_time_distribution_param_create(
3
     bool is_as_time_dist_ind,
4
     int as_time_dist_ind,
5
+    bool is_uu_error_budget_null,
6
     bool is_uu_error_budget,
7
     int uu_error_budget
8
 )
9
@@ -16,6 +17,7 @@
10
 
11
     as_time_distribution_param_local_var->is_as_time_dist_ind = is_as_time_dist_ind;
12
     as_time_distribution_param_local_var->as_time_dist_ind = as_time_dist_ind;
13
+    as_time_distribution_param_local_var->is_uu_error_budget_null = is_uu_error_budget_null;
14
     as_time_distribution_param_local_var->is_uu_error_budget = is_uu_error_budget;
15
     as_time_distribution_param_local_var->uu_error_budget = uu_error_budget;
16
 
17
@@ -55,6 +57,11 @@
18
         ogs_error("OpenAPI_as_time_distribution_param_convertToJSON() failed uu_error_budget");
19
         goto end;
20
     }
21
+    } else if (as_time_distribution_param->is_uu_error_budget_null) {
22
+        if (cJSON_AddNullToObject(item, "uuErrorBudget") == NULL) {
23
+            ogs_error("OpenAPI_as_time_distribution_param_convertToJSON() failed uu_error_budget");
24
+            goto end;
25
+        }
26
     }
27
 
28
 end:
29
@@ -77,15 +84,18 @@
30
 
31
     uu_error_budget = cJSON_GetObjectItemCaseSensitive(as_time_distribution_paramJSON, "uuErrorBudget");
32
     if (uu_error_budget) {
33
+    if (!cJSON_IsNull(uu_error_budget)) {
34
     if (!cJSON_IsNumber(uu_error_budget)) {
35
         ogs_error("OpenAPI_as_time_distribution_param_parseFromJSON() failed uu_error_budget");
36
         goto end;
37
     }
38
     }
39
+    }
40
 
41
     as_time_distribution_param_local_var = OpenAPI_as_time_distribution_param_create (
42
         as_time_dist_ind ? true : false,
43
         as_time_dist_ind ? as_time_dist_ind->valueint : 0,
44
+        uu_error_budget && cJSON_IsNull(uu_error_budget) ? true : false,
45
         uu_error_budget ? true : false,
46
         uu_error_budget ? uu_error_budget->valuedouble : 0
47
     );
48
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/as_time_distribution_param.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/as_time_distribution_param.h Changed
17
 
1
@@ -21,6 +21,7 @@
2
 typedef struct OpenAPI_as_time_distribution_param_s {
3
     bool is_as_time_dist_ind;
4
     int as_time_dist_ind;
5
+    bool is_uu_error_budget_null;
6
     bool is_uu_error_budget;
7
     int uu_error_budget;
8
 } OpenAPI_as_time_distribution_param_t;
9
@@ -28,6 +29,7 @@
10
 OpenAPI_as_time_distribution_param_t *OpenAPI_as_time_distribution_param_create(
11
     bool is_as_time_dist_ind,
12
     int as_time_dist_ind,
13
+    bool is_uu_error_budget_null,
14
     bool is_uu_error_budget,
15
     int uu_error_budget
16
 );
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/atom.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/atom.c Changed
25
 
1
@@ -6,6 +6,7 @@
2
 
3
 OpenAPI_atom_t *OpenAPI_atom_create(
4
     char *attr,
5
+    bool is_value_null,
6
     OpenAPI_any_type_t *value,
7
     bool is_negative,
8
     int negative
9
@@ -15,6 +16,7 @@
10
     ogs_assert(atom_local_var);
11
 
12
     atom_local_var->attr = attr;
13
+    atom_local_var->is_value_null = is_value_null;
14
     atom_local_var->value = value;
15
     atom_local_var->is_negative = is_negative;
16
     atom_local_var->negative = negative;
17
@@ -121,6 +123,7 @@
18
 
19
     atom_local_var = OpenAPI_atom_create (
20
         ogs_strdup(attr->valuestring),
21
+        value && cJSON_IsNull(value) ? true : false,
22
         value_local_object,
23
         negative ? true : false,
24
         negative ? negative->valueint : 0
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/atom.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/atom.h Changed
17
 
1
@@ -21,6 +21,7 @@
2
 typedef struct OpenAPI_atom_s OpenAPI_atom_t;
3
 typedef struct OpenAPI_atom_s {
4
     char *attr;
5
+    bool is_value_null;
6
     OpenAPI_any_type_t *value;
7
     bool is_negative;
8
     int negative;
9
@@ -28,6 +29,7 @@
10
 
11
 OpenAPI_atom_t *OpenAPI_atom_create(
12
     char *attr,
13
+    bool is_value_null,
14
     OpenAPI_any_type_t *value,
15
     bool is_negative,
16
     int negative
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/authentication_info.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/authentication_info.c Changed
52
 
1
@@ -9,6 +9,7 @@
2
     char *serving_network_name,
3
     OpenAPI_resynchronization_info_t *resynchronization_info,
4
     char *pei,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     char *udm_group_id,
8
     char *routing_indicator,
9
@@ -31,6 +32,7 @@
10
     authentication_info_local_var->serving_network_name = serving_network_name;
11
     authentication_info_local_var->resynchronization_info = resynchronization_info;
12
     authentication_info_local_var->pei = pei;
13
+    authentication_info_local_var->is_trace_data_null = is_trace_data_null;
14
     authentication_info_local_var->trace_data = trace_data;
15
     authentication_info_local_var->udm_group_id = udm_group_id;
16
     authentication_info_local_var->routing_indicator = routing_indicator;
17
@@ -157,6 +159,11 @@
18
         ogs_error("OpenAPI_authentication_info_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (authentication_info->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_authentication_info_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (authentication_info->udm_group_id) {
29
@@ -285,12 +292,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(authentication_infoJSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     udm_group_id = cJSON_GetObjectItemCaseSensitive(authentication_infoJSON, "udmGroupId");
43
     if (udm_group_id) {
44
@@ -374,6 +383,7 @@
45
         ogs_strdup(serving_network_name->valuestring),
46
         resynchronization_info ? resynchronization_info_local_nonprim : NULL,
47
         pei && !cJSON_IsNull(pei) ? ogs_strdup(pei->valuestring) : NULL,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL,
50
         udm_group_id && !cJSON_IsNull(udm_group_id) ? ogs_strdup(udm_group_id->valuestring) : NULL,
51
         routing_indicator && !cJSON_IsNull(routing_indicator) ? ogs_strdup(routing_indicator->valuestring) : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/authentication_info.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/authentication_info.h Changed
17
 
1
@@ -25,6 +25,7 @@
2
     char *serving_network_name;
3
     struct OpenAPI_resynchronization_info_s *resynchronization_info;
4
     char *pei;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     char *udm_group_id;
8
     char *routing_indicator;
9
@@ -45,6 +46,7 @@
10
     char *serving_network_name,
11
     OpenAPI_resynchronization_info_t *resynchronization_info,
12
     char *pei,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data,
15
     char *udm_group_id,
16
     char *routing_indicator,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/authorized_default_qos.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/authorized_default_qos.c Changed
254
 
1
@@ -8,16 +8,24 @@
2
     bool is__5qi,
3
     int _5qi,
4
     OpenAPI_arp_t *arp,
5
+    bool is_priority_level_null,
6
     bool is_priority_level,
7
     int priority_level,
8
+    bool is_aver_window_null,
9
     bool is_aver_window,
10
     int aver_window,
11
+    bool is_max_data_burst_vol_null,
12
     bool is_max_data_burst_vol,
13
     int max_data_burst_vol,
14
+    bool is_maxbr_ul_null,
15
     char *maxbr_ul,
16
+    bool is_maxbr_dl_null,
17
     char *maxbr_dl,
18
+    bool is_gbr_ul_null,
19
     char *gbr_ul,
20
+    bool is_gbr_dl_null,
21
     char *gbr_dl,
22
+    bool is_ext_max_data_burst_vol_null,
23
     bool is_ext_max_data_burst_vol,
24
     int ext_max_data_burst_vol
25
 )
26
@@ -28,16 +36,24 @@
27
     authorized_default_qos_local_var->is__5qi = is__5qi;
28
     authorized_default_qos_local_var->_5qi = _5qi;
29
     authorized_default_qos_local_var->arp = arp;
30
+    authorized_default_qos_local_var->is_priority_level_null = is_priority_level_null;
31
     authorized_default_qos_local_var->is_priority_level = is_priority_level;
32
     authorized_default_qos_local_var->priority_level = priority_level;
33
+    authorized_default_qos_local_var->is_aver_window_null = is_aver_window_null;
34
     authorized_default_qos_local_var->is_aver_window = is_aver_window;
35
     authorized_default_qos_local_var->aver_window = aver_window;
36
+    authorized_default_qos_local_var->is_max_data_burst_vol_null = is_max_data_burst_vol_null;
37
     authorized_default_qos_local_var->is_max_data_burst_vol = is_max_data_burst_vol;
38
     authorized_default_qos_local_var->max_data_burst_vol = max_data_burst_vol;
39
+    authorized_default_qos_local_var->is_maxbr_ul_null = is_maxbr_ul_null;
40
     authorized_default_qos_local_var->maxbr_ul = maxbr_ul;
41
+    authorized_default_qos_local_var->is_maxbr_dl_null = is_maxbr_dl_null;
42
     authorized_default_qos_local_var->maxbr_dl = maxbr_dl;
43
+    authorized_default_qos_local_var->is_gbr_ul_null = is_gbr_ul_null;
44
     authorized_default_qos_local_var->gbr_ul = gbr_ul;
45
+    authorized_default_qos_local_var->is_gbr_dl_null = is_gbr_dl_null;
46
     authorized_default_qos_local_var->gbr_dl = gbr_dl;
47
+    authorized_default_qos_local_var->is_ext_max_data_burst_vol_null = is_ext_max_data_burst_vol_null;
48
     authorized_default_qos_local_var->is_ext_max_data_burst_vol = is_ext_max_data_burst_vol;
49
     authorized_default_qos_local_var->ext_max_data_burst_vol = ext_max_data_burst_vol;
50
 
51
@@ -110,6 +126,11 @@
52
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed priority_level");
53
         goto end;
54
     }
55
+    } else if (authorized_default_qos->is_priority_level_null) {
56
+        if (cJSON_AddNullToObject(item, "priorityLevel") == NULL) {
57
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed priority_level");
58
+            goto end;
59
+        }
60
     }
61
 
62
     if (authorized_default_qos->is_aver_window) {
63
@@ -117,6 +138,11 @@
64
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed aver_window");
65
         goto end;
66
     }
67
+    } else if (authorized_default_qos->is_aver_window_null) {
68
+        if (cJSON_AddNullToObject(item, "averWindow") == NULL) {
69
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed aver_window");
70
+            goto end;
71
+        }
72
     }
73
 
74
     if (authorized_default_qos->is_max_data_burst_vol) {
75
@@ -124,6 +150,11 @@
76
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed max_data_burst_vol");
77
         goto end;
78
     }
79
+    } else if (authorized_default_qos->is_max_data_burst_vol_null) {
80
+        if (cJSON_AddNullToObject(item, "maxDataBurstVol") == NULL) {
81
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed max_data_burst_vol");
82
+            goto end;
83
+        }
84
     }
85
 
86
     if (authorized_default_qos->maxbr_ul) {
87
@@ -131,6 +162,11 @@
88
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed maxbr_ul");
89
         goto end;
90
     }
91
+    } else if (authorized_default_qos->is_maxbr_ul_null) {
92
+        if (cJSON_AddNullToObject(item, "maxbrUl") == NULL) {
93
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed maxbr_ul");
94
+            goto end;
95
+        }
96
     }
97
 
98
     if (authorized_default_qos->maxbr_dl) {
99
@@ -138,6 +174,11 @@
100
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed maxbr_dl");
101
         goto end;
102
     }
103
+    } else if (authorized_default_qos->is_maxbr_dl_null) {
104
+        if (cJSON_AddNullToObject(item, "maxbrDl") == NULL) {
105
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed maxbr_dl");
106
+            goto end;
107
+        }
108
     }
109
 
110
     if (authorized_default_qos->gbr_ul) {
111
@@ -145,6 +186,11 @@
112
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed gbr_ul");
113
         goto end;
114
     }
115
+    } else if (authorized_default_qos->is_gbr_ul_null) {
116
+        if (cJSON_AddNullToObject(item, "gbrUl") == NULL) {
117
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed gbr_ul");
118
+            goto end;
119
+        }
120
     }
121
 
122
     if (authorized_default_qos->gbr_dl) {
123
@@ -152,6 +198,11 @@
124
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed gbr_dl");
125
         goto end;
126
     }
127
+    } else if (authorized_default_qos->is_gbr_dl_null) {
128
+        if (cJSON_AddNullToObject(item, "gbrDl") == NULL) {
129
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed gbr_dl");
130
+            goto end;
131
+        }
132
     }
133
 
134
     if (authorized_default_qos->is_ext_max_data_burst_vol) {
135
@@ -159,6 +210,11 @@
136
         ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed ext_max_data_burst_vol");
137
         goto end;
138
     }
139
+    } else if (authorized_default_qos->is_ext_max_data_burst_vol_null) {
140
+        if (cJSON_AddNullToObject(item, "extMaxDataBurstVol") == NULL) {
141
+            ogs_error("OpenAPI_authorized_default_qos_convertToJSON() failed ext_max_data_burst_vol");
142
+            goto end;
143
+        }
144
     }
145
 
146
 end:
147
@@ -199,82 +255,106 @@
148
 
149
     priority_level = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "priorityLevel");
150
     if (priority_level) {
151
+    if (!cJSON_IsNull(priority_level)) {
152
     if (!cJSON_IsNumber(priority_level)) {
153
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed priority_level");
154
         goto end;
155
     }
156
     }
157
+    }
158
 
159
     aver_window = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "averWindow");
160
     if (aver_window) {
161
+    if (!cJSON_IsNull(aver_window)) {
162
     if (!cJSON_IsNumber(aver_window)) {
163
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed aver_window");
164
         goto end;
165
     }
166
     }
167
+    }
168
 
169
     max_data_burst_vol = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "maxDataBurstVol");
170
     if (max_data_burst_vol) {
171
+    if (!cJSON_IsNull(max_data_burst_vol)) {
172
     if (!cJSON_IsNumber(max_data_burst_vol)) {
173
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed max_data_burst_vol");
174
         goto end;
175
     }
176
     }
177
+    }
178
 
179
     maxbr_ul = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "maxbrUl");
180
     if (maxbr_ul) {
181
+    if (!cJSON_IsNull(maxbr_ul)) {
182
     if (!cJSON_IsString(maxbr_ul) && !cJSON_IsNull(maxbr_ul)) {
183
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed maxbr_ul");
184
         goto end;
185
     }
186
     }
187
+    }
188
 
189
     maxbr_dl = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "maxbrDl");
190
     if (maxbr_dl) {
191
+    if (!cJSON_IsNull(maxbr_dl)) {
192
     if (!cJSON_IsString(maxbr_dl) && !cJSON_IsNull(maxbr_dl)) {
193
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed maxbr_dl");
194
         goto end;
195
     }
196
     }
197
+    }
198
 
199
     gbr_ul = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "gbrUl");
200
     if (gbr_ul) {
201
+    if (!cJSON_IsNull(gbr_ul)) {
202
     if (!cJSON_IsString(gbr_ul) && !cJSON_IsNull(gbr_ul)) {
203
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed gbr_ul");
204
         goto end;
205
     }
206
     }
207
+    }
208
 
209
     gbr_dl = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "gbrDl");
210
     if (gbr_dl) {
211
+    if (!cJSON_IsNull(gbr_dl)) {
212
     if (!cJSON_IsString(gbr_dl) && !cJSON_IsNull(gbr_dl)) {
213
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed gbr_dl");
214
         goto end;
215
     }
216
     }
217
+    }
218
 
219
     ext_max_data_burst_vol = cJSON_GetObjectItemCaseSensitive(authorized_default_qosJSON, "extMaxDataBurstVol");
220
     if (ext_max_data_burst_vol) {
221
+    if (!cJSON_IsNull(ext_max_data_burst_vol)) {
222
     if (!cJSON_IsNumber(ext_max_data_burst_vol)) {
223
         ogs_error("OpenAPI_authorized_default_qos_parseFromJSON() failed ext_max_data_burst_vol");
224
         goto end;
225
     }
226
     }
227
+    }
228
 
229
     authorized_default_qos_local_var = OpenAPI_authorized_default_qos_create (
230
         _5qi ? true : false,
231
         _5qi ? _5qi->valuedouble : 0,
232
         arp ? arp_local_nonprim : NULL,
233
+        priority_level && cJSON_IsNull(priority_level) ? true : false,
234
         priority_level ? true : false,
235
         priority_level ? priority_level->valuedouble : 0,
236
+        aver_window && cJSON_IsNull(aver_window) ? true : false,
237
         aver_window ? true : false,
238
         aver_window ? aver_window->valuedouble : 0,
239
+        max_data_burst_vol && cJSON_IsNull(max_data_burst_vol) ? true : false,
240
         max_data_burst_vol ? true : false,
241
         max_data_burst_vol ? max_data_burst_vol->valuedouble : 0,
242
+        maxbr_ul && cJSON_IsNull(maxbr_ul) ? true : false,
243
         maxbr_ul && !cJSON_IsNull(maxbr_ul) ? ogs_strdup(maxbr_ul->valuestring) : NULL,
244
+        maxbr_dl && cJSON_IsNull(maxbr_dl) ? true : false,
245
         maxbr_dl && !cJSON_IsNull(maxbr_dl) ? ogs_strdup(maxbr_dl->valuestring) : NULL,
246
+        gbr_ul && cJSON_IsNull(gbr_ul) ? true : false,
247
         gbr_ul && !cJSON_IsNull(gbr_ul) ? ogs_strdup(gbr_ul->valuestring) : NULL,
248
+        gbr_dl && cJSON_IsNull(gbr_dl) ? true : false,
249
         gbr_dl && !cJSON_IsNull(gbr_dl) ? ogs_strdup(gbr_dl->valuestring) : NULL,
250
+        ext_max_data_burst_vol && cJSON_IsNull(ext_max_data_burst_vol) ? true : false,
251
         ext_max_data_burst_vol ? true : false,
252
         ext_max_data_burst_vol ? ext_max_data_burst_vol->valuedouble : 0
253
     );
254
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/authorized_default_qos.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/authorized_default_qos.h Changed
51
 
1
@@ -23,16 +23,24 @@
2
     bool is__5qi;
3
     int _5qi;
4
     struct OpenAPI_arp_s *arp;
5
+    bool is_priority_level_null;
6
     bool is_priority_level;
7
     int priority_level;
8
+    bool is_aver_window_null;
9
     bool is_aver_window;
10
     int aver_window;
11
+    bool is_max_data_burst_vol_null;
12
     bool is_max_data_burst_vol;
13
     int max_data_burst_vol;
14
+    bool is_maxbr_ul_null;
15
     char *maxbr_ul;
16
+    bool is_maxbr_dl_null;
17
     char *maxbr_dl;
18
+    bool is_gbr_ul_null;
19
     char *gbr_ul;
20
+    bool is_gbr_dl_null;
21
     char *gbr_dl;
22
+    bool is_ext_max_data_burst_vol_null;
23
     bool is_ext_max_data_burst_vol;
24
     int ext_max_data_burst_vol;
25
 } OpenAPI_authorized_default_qos_t;
26
@@ -41,16 +49,24 @@
27
     bool is__5qi,
28
     int _5qi,
29
     OpenAPI_arp_t *arp,
30
+    bool is_priority_level_null,
31
     bool is_priority_level,
32
     int priority_level,
33
+    bool is_aver_window_null,
34
     bool is_aver_window,
35
     int aver_window,
36
+    bool is_max_data_burst_vol_null,
37
     bool is_max_data_burst_vol,
38
     int max_data_burst_vol,
39
+    bool is_maxbr_ul_null,
40
     char *maxbr_ul,
41
+    bool is_maxbr_dl_null,
42
     char *maxbr_dl,
43
+    bool is_gbr_ul_null,
44
     char *gbr_ul,
45
+    bool is_gbr_dl_null,
46
     char *gbr_dl,
47
+    bool is_ext_max_data_burst_vol_null,
48
     bool is_ext_max_data_burst_vol,
49
     int ext_max_data_burst_vol
50
 );
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/candidate_for_replacement.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/candidate_for_replacement.c Changed
49
 
1
@@ -6,6 +6,7 @@
2
 
3
 OpenAPI_candidate_for_replacement_t *OpenAPI_candidate_for_replacement_create(
4
     OpenAPI_snssai_t *snssai,
5
+    bool is_dnns_null,
6
     OpenAPI_list_t *dnns
7
 )
8
 {
9
@@ -13,6 +14,7 @@
10
     ogs_assert(candidate_for_replacement_local_var);
11
 
12
     candidate_for_replacement_local_var->snssai = snssai;
13
+    candidate_for_replacement_local_var->is_dnns_null = is_dnns_null;
14
     candidate_for_replacement_local_var->dnns = dnns;
15
 
16
     return candidate_for_replacement_local_var;
17
@@ -77,6 +79,11 @@
18
             goto end;
19
         }
20
     }
21
+    } else if (candidate_for_replacement->is_dnns_null) {
22
+        if (cJSON_AddNullToObject(item, "dnns") == NULL) {
23
+            ogs_error("OpenAPI_candidate_for_replacement_convertToJSON() failed dnns");
24
+            goto end;
25
+        }
26
     }
27
 
28
 end:
29
@@ -104,6 +111,7 @@
30
 
31
     dnns = cJSON_GetObjectItemCaseSensitive(candidate_for_replacementJSON, "dnns");
32
     if (dnns) {
33
+    if (!cJSON_IsNull(dnns)) {
34
         cJSON *dnns_local = NULL;
35
         if (!cJSON_IsArray(dnns)) {
36
             ogs_error("OpenAPI_candidate_for_replacement_parseFromJSON() failed dnns");
37
@@ -122,9 +130,11 @@
38
             OpenAPI_list_add(dnnsList, ogs_strdup(dnns_local->valuestring));
39
         }
40
     }
41
+    }
42
 
43
     candidate_for_replacement_local_var = OpenAPI_candidate_for_replacement_create (
44
         snssai_local_nonprim,
45
+        dnns && cJSON_IsNull(dnns) ? true : false,
46
         dnns ? dnnsList : NULL
47
     );
48
 
49
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/candidate_for_replacement.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/candidate_for_replacement.h Changed
15
 
1
@@ -21,11 +21,13 @@
2
 typedef struct OpenAPI_candidate_for_replacement_s OpenAPI_candidate_for_replacement_t;
3
 typedef struct OpenAPI_candidate_for_replacement_s {
4
     struct OpenAPI_snssai_s *snssai;
5
+    bool is_dnns_null;
6
     OpenAPI_list_t *dnns;
7
 } OpenAPI_candidate_for_replacement_t;
8
 
9
 OpenAPI_candidate_for_replacement_t *OpenAPI_candidate_for_replacement_create(
10
     OpenAPI_snssai_t *snssai,
11
+    bool is_dnns_null,
12
     OpenAPI_list_t *dnns
13
 );
14
 void OpenAPI_candidate_for_replacement_free(OpenAPI_candidate_for_replacement_t *candidate_for_replacement);
15
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/change_item.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/change_item.c Changed
71
 
1
@@ -8,7 +8,9 @@
2
     OpenAPI_change_type_e op,
3
     char *path,
4
     char *from,
5
+    bool is_orig_value_null,
6
     OpenAPI_any_type_t *orig_value,
7
+    bool is_new_value_null,
8
     OpenAPI_any_type_t *new_value
9
 )
10
 {
11
@@ -18,7 +20,9 @@
12
     change_item_local_var->op = op;
13
     change_item_local_var->path = path;
14
     change_item_local_var->from = from;
15
+    change_item_local_var->is_orig_value_null = is_orig_value_null;
16
     change_item_local_var->orig_value = orig_value;
17
+    change_item_local_var->is_new_value_null = is_new_value_null;
18
     change_item_local_var->new_value = new_value;
19
 
20
     return change_item_local_var;
21
@@ -97,6 +101,11 @@
22
         ogs_error("OpenAPI_change_item_convertToJSON() failed orig_value");
23
         goto end;
24
     }
25
+    } else if (change_item->is_orig_value_null) {
26
+        if (cJSON_AddNullToObject(item, "origValue") == NULL) {
27
+            ogs_error("OpenAPI_change_item_convertToJSON() failed orig_value");
28
+            goto end;
29
+        }
30
     }
31
 
32
     if (change_item->new_value) {
33
@@ -110,6 +119,11 @@
34
         ogs_error("OpenAPI_change_item_convertToJSON() failed new_value");
35
         goto end;
36
     }
37
+    } else if (change_item->is_new_value_null) {
38
+        if (cJSON_AddNullToObject(item, "newValue") == NULL) {
39
+            ogs_error("OpenAPI_change_item_convertToJSON() failed new_value");
40
+            goto end;
41
+        }
42
     }
43
 
44
 end:
45
@@ -159,19 +173,25 @@
46
 
47
     orig_value = cJSON_GetObjectItemCaseSensitive(change_itemJSON, "origValue");
48
     if (orig_value) {
49
+    if (!cJSON_IsNull(orig_value)) {
50
     orig_value_local_object = OpenAPI_any_type_parseFromJSON(orig_value);
51
     }
52
+    }
53
 
54
     new_value = cJSON_GetObjectItemCaseSensitive(change_itemJSON, "newValue");
55
     if (new_value) {
56
+    if (!cJSON_IsNull(new_value)) {
57
     new_value_local_object = OpenAPI_any_type_parseFromJSON(new_value);
58
     }
59
+    }
60
 
61
     change_item_local_var = OpenAPI_change_item_create (
62
         opVariable,
63
         ogs_strdup(path->valuestring),
64
         from && !cJSON_IsNull(from) ? ogs_strdup(from->valuestring) : NULL,
65
+        orig_value && cJSON_IsNull(orig_value) ? true : false,
66
         orig_value ? orig_value_local_object : NULL,
67
+        new_value && cJSON_IsNull(new_value) ? true : false,
68
         new_value ? new_value_local_object : NULL
69
     );
70
 
71
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/change_item.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/change_item.h Changed
21
 
1
@@ -24,7 +24,9 @@
2
     OpenAPI_change_type_e op;
3
     char *path;
4
     char *from;
5
+    bool is_orig_value_null;
6
     OpenAPI_any_type_t *orig_value;
7
+    bool is_new_value_null;
8
     OpenAPI_any_type_t *new_value;
9
 } OpenAPI_change_item_t;
10
 
11
@@ -32,7 +34,9 @@
12
     OpenAPI_change_type_e op,
13
     char *path,
14
     char *from,
15
+    bool is_orig_value_null,
16
     OpenAPI_any_type_t *orig_value,
17
+    bool is_new_value_null,
18
     OpenAPI_any_type_t *new_value
19
 );
20
 void OpenAPI_change_item_free(OpenAPI_change_item_t *change_item);
21
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/communication_characteristics.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/communication_characteristics.c Changed
193
 
1
@@ -5,24 +5,36 @@
2
 #include "communication_characteristics.h"
3
 
4
 OpenAPI_communication_characteristics_t *OpenAPI_communication_characteristics_create(
5
+    bool is_pp_subs_reg_timer_null,
6
     OpenAPI_pp_subs_reg_timer_t *pp_subs_reg_timer,
7
+    bool is_pp_active_time_null,
8
     OpenAPI_pp_active_time_t *pp_active_time,
9
+    bool is_pp_dl_packet_count_null,
10
     bool is_pp_dl_packet_count,
11
     int pp_dl_packet_count,
12
+    bool is_pp_dl_packet_count_ext_null,
13
     OpenAPI_pp_dl_packet_count_ext_t *pp_dl_packet_count_ext,
14
+    bool is_pp_maximum_response_time_null,
15
     OpenAPI_pp_maximum_response_time_t *pp_maximum_response_time,
16
+    bool is_pp_maximum_latency_null,
17
     OpenAPI_pp_maximum_latency_t *pp_maximum_latency
18
 )
19
 {
20
     OpenAPI_communication_characteristics_t *communication_characteristics_local_var = ogs_malloc(sizeof(OpenAPI_communication_characteristics_t));
21
     ogs_assert(communication_characteristics_local_var);
22
 
23
+    communication_characteristics_local_var->is_pp_subs_reg_timer_null = is_pp_subs_reg_timer_null;
24
     communication_characteristics_local_var->pp_subs_reg_timer = pp_subs_reg_timer;
25
+    communication_characteristics_local_var->is_pp_active_time_null = is_pp_active_time_null;
26
     communication_characteristics_local_var->pp_active_time = pp_active_time;
27
+    communication_characteristics_local_var->is_pp_dl_packet_count_null = is_pp_dl_packet_count_null;
28
     communication_characteristics_local_var->is_pp_dl_packet_count = is_pp_dl_packet_count;
29
     communication_characteristics_local_var->pp_dl_packet_count = pp_dl_packet_count;
30
+    communication_characteristics_local_var->is_pp_dl_packet_count_ext_null = is_pp_dl_packet_count_ext_null;
31
     communication_characteristics_local_var->pp_dl_packet_count_ext = pp_dl_packet_count_ext;
32
+    communication_characteristics_local_var->is_pp_maximum_response_time_null = is_pp_maximum_response_time_null;
33
     communication_characteristics_local_var->pp_maximum_response_time = pp_maximum_response_time;
34
+    communication_characteristics_local_var->is_pp_maximum_latency_null = is_pp_maximum_latency_null;
35
     communication_characteristics_local_var->pp_maximum_latency = pp_maximum_latency;
36
 
37
     return communication_characteristics_local_var;
38
@@ -80,6 +92,11 @@
39
         ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_subs_reg_timer");
40
         goto end;
41
     }
42
+    } else if (communication_characteristics->is_pp_subs_reg_timer_null) {
43
+        if (cJSON_AddNullToObject(item, "ppSubsRegTimer") == NULL) {
44
+            ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_subs_reg_timer");
45
+            goto end;
46
+        }
47
     }
48
 
49
     if (communication_characteristics->pp_active_time) {
50
@@ -93,6 +110,11 @@
51
         ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_active_time");
52
         goto end;
53
     }
54
+    } else if (communication_characteristics->is_pp_active_time_null) {
55
+        if (cJSON_AddNullToObject(item, "ppActiveTime") == NULL) {
56
+            ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_active_time");
57
+            goto end;
58
+        }
59
     }
60
 
61
     if (communication_characteristics->is_pp_dl_packet_count) {
62
@@ -100,6 +122,11 @@
63
         ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_dl_packet_count");
64
         goto end;
65
     }
66
+    } else if (communication_characteristics->is_pp_dl_packet_count_null) {
67
+        if (cJSON_AddNullToObject(item, "ppDlPacketCount") == NULL) {
68
+            ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_dl_packet_count");
69
+            goto end;
70
+        }
71
     }
72
 
73
     if (communication_characteristics->pp_dl_packet_count_ext) {
74
@@ -113,6 +140,11 @@
75
         ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_dl_packet_count_ext");
76
         goto end;
77
     }
78
+    } else if (communication_characteristics->is_pp_dl_packet_count_ext_null) {
79
+        if (cJSON_AddNullToObject(item, "ppDlPacketCountExt") == NULL) {
80
+            ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_dl_packet_count_ext");
81
+            goto end;
82
+        }
83
     }
84
 
85
     if (communication_characteristics->pp_maximum_response_time) {
86
@@ -126,6 +158,11 @@
87
         ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_maximum_response_time");
88
         goto end;
89
     }
90
+    } else if (communication_characteristics->is_pp_maximum_response_time_null) {
91
+        if (cJSON_AddNullToObject(item, "ppMaximumResponseTime") == NULL) {
92
+            ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_maximum_response_time");
93
+            goto end;
94
+        }
95
     }
96
 
97
     if (communication_characteristics->pp_maximum_latency) {
98
@@ -139,6 +176,11 @@
99
         ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_maximum_latency");
100
         goto end;
101
     }
102
+    } else if (communication_characteristics->is_pp_maximum_latency_null) {
103
+        if (cJSON_AddNullToObject(item, "ppMaximumLatency") == NULL) {
104
+            ogs_error("OpenAPI_communication_characteristics_convertToJSON() failed pp_maximum_latency");
105
+            goto end;
106
+        }
107
     }
108
 
109
 end:
110
@@ -162,64 +204,82 @@
111
     OpenAPI_pp_maximum_latency_t *pp_maximum_latency_local_nonprim = NULL;
112
     pp_subs_reg_timer = cJSON_GetObjectItemCaseSensitive(communication_characteristicsJSON, "ppSubsRegTimer");
113
     if (pp_subs_reg_timer) {
114
+    if (!cJSON_IsNull(pp_subs_reg_timer)) {
115
     pp_subs_reg_timer_local_nonprim = OpenAPI_pp_subs_reg_timer_parseFromJSON(pp_subs_reg_timer);
116
     if (!pp_subs_reg_timer_local_nonprim) {
117
         ogs_error("OpenAPI_pp_subs_reg_timer_parseFromJSON failed pp_subs_reg_timer");
118
         goto end;
119
     }
120
     }
121
+    }
122
 
123
     pp_active_time = cJSON_GetObjectItemCaseSensitive(communication_characteristicsJSON, "ppActiveTime");
124
     if (pp_active_time) {
125
+    if (!cJSON_IsNull(pp_active_time)) {
126
     pp_active_time_local_nonprim = OpenAPI_pp_active_time_parseFromJSON(pp_active_time);
127
     if (!pp_active_time_local_nonprim) {
128
         ogs_error("OpenAPI_pp_active_time_parseFromJSON failed pp_active_time");
129
         goto end;
130
     }
131
     }
132
+    }
133
 
134
     pp_dl_packet_count = cJSON_GetObjectItemCaseSensitive(communication_characteristicsJSON, "ppDlPacketCount");
135
     if (pp_dl_packet_count) {
136
+    if (!cJSON_IsNull(pp_dl_packet_count)) {
137
     if (!cJSON_IsNumber(pp_dl_packet_count)) {
138
         ogs_error("OpenAPI_communication_characteristics_parseFromJSON() failed pp_dl_packet_count");
139
         goto end;
140
     }
141
     }
142
+    }
143
 
144
     pp_dl_packet_count_ext = cJSON_GetObjectItemCaseSensitive(communication_characteristicsJSON, "ppDlPacketCountExt");
145
     if (pp_dl_packet_count_ext) {
146
+    if (!cJSON_IsNull(pp_dl_packet_count_ext)) {
147
     pp_dl_packet_count_ext_local_nonprim = OpenAPI_pp_dl_packet_count_ext_parseFromJSON(pp_dl_packet_count_ext);
148
     if (!pp_dl_packet_count_ext_local_nonprim) {
149
         ogs_error("OpenAPI_pp_dl_packet_count_ext_parseFromJSON failed pp_dl_packet_count_ext");
150
         goto end;
151
     }
152
     }
153
+    }
154
 
155
     pp_maximum_response_time = cJSON_GetObjectItemCaseSensitive(communication_characteristicsJSON, "ppMaximumResponseTime");
156
     if (pp_maximum_response_time) {
157
+    if (!cJSON_IsNull(pp_maximum_response_time)) {
158
     pp_maximum_response_time_local_nonprim = OpenAPI_pp_maximum_response_time_parseFromJSON(pp_maximum_response_time);
159
     if (!pp_maximum_response_time_local_nonprim) {
160
         ogs_error("OpenAPI_pp_maximum_response_time_parseFromJSON failed pp_maximum_response_time");
161
         goto end;
162
     }
163
     }
164
+    }
165
 
166
     pp_maximum_latency = cJSON_GetObjectItemCaseSensitive(communication_characteristicsJSON, "ppMaximumLatency");
167
     if (pp_maximum_latency) {
168
+    if (!cJSON_IsNull(pp_maximum_latency)) {
169
     pp_maximum_latency_local_nonprim = OpenAPI_pp_maximum_latency_parseFromJSON(pp_maximum_latency);
170
     if (!pp_maximum_latency_local_nonprim) {
171
         ogs_error("OpenAPI_pp_maximum_latency_parseFromJSON failed pp_maximum_latency");
172
         goto end;
173
     }
174
     }
175
+    }
176
 
177
     communication_characteristics_local_var = OpenAPI_communication_characteristics_create (
178
+        pp_subs_reg_timer && cJSON_IsNull(pp_subs_reg_timer) ? true : false,
179
         pp_subs_reg_timer ? pp_subs_reg_timer_local_nonprim : NULL,
180
+        pp_active_time && cJSON_IsNull(pp_active_time) ? true : false,
181
         pp_active_time ? pp_active_time_local_nonprim : NULL,
182
+        pp_dl_packet_count && cJSON_IsNull(pp_dl_packet_count) ? true : false,
183
         pp_dl_packet_count ? true : false,
184
         pp_dl_packet_count ? pp_dl_packet_count->valuedouble : 0,
185
+        pp_dl_packet_count_ext && cJSON_IsNull(pp_dl_packet_count_ext) ? true : false,
186
         pp_dl_packet_count_ext ? pp_dl_packet_count_ext_local_nonprim : NULL,
187
+        pp_maximum_response_time && cJSON_IsNull(pp_maximum_response_time) ? true : false,
188
         pp_maximum_response_time ? pp_maximum_response_time_local_nonprim : NULL,
189
+        pp_maximum_latency && cJSON_IsNull(pp_maximum_latency) ? true : false,
190
         pp_maximum_latency ? pp_maximum_latency_local_nonprim : NULL
191
     );
192
 
193
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/communication_characteristics.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/communication_characteristics.h Changed
36
 
1
@@ -24,22 +24,34 @@
2
 
3
 typedef struct OpenAPI_communication_characteristics_s OpenAPI_communication_characteristics_t;
4
 typedef struct OpenAPI_communication_characteristics_s {
5
+    bool is_pp_subs_reg_timer_null;
6
     struct OpenAPI_pp_subs_reg_timer_s *pp_subs_reg_timer;
7
+    bool is_pp_active_time_null;
8
     struct OpenAPI_pp_active_time_s *pp_active_time;
9
+    bool is_pp_dl_packet_count_null;
10
     bool is_pp_dl_packet_count;
11
     int pp_dl_packet_count;
12
+    bool is_pp_dl_packet_count_ext_null;
13
     struct OpenAPI_pp_dl_packet_count_ext_s *pp_dl_packet_count_ext;
14
+    bool is_pp_maximum_response_time_null;
15
     struct OpenAPI_pp_maximum_response_time_s *pp_maximum_response_time;
16
+    bool is_pp_maximum_latency_null;
17
     struct OpenAPI_pp_maximum_latency_s *pp_maximum_latency;
18
 } OpenAPI_communication_characteristics_t;
19
 
20
 OpenAPI_communication_characteristics_t *OpenAPI_communication_characteristics_create(
21
+    bool is_pp_subs_reg_timer_null,
22
     OpenAPI_pp_subs_reg_timer_t *pp_subs_reg_timer,
23
+    bool is_pp_active_time_null,
24
     OpenAPI_pp_active_time_t *pp_active_time,
25
+    bool is_pp_dl_packet_count_null,
26
     bool is_pp_dl_packet_count,
27
     int pp_dl_packet_count,
28
+    bool is_pp_dl_packet_count_ext_null,
29
     OpenAPI_pp_dl_packet_count_ext_t *pp_dl_packet_count_ext,
30
+    bool is_pp_maximum_response_time_null,
31
     OpenAPI_pp_maximum_response_time_t *pp_maximum_response_time,
32
+    bool is_pp_maximum_latency_null,
33
     OpenAPI_pp_maximum_latency_t *pp_maximum_latency
34
 );
35
 void OpenAPI_communication_characteristics_free(OpenAPI_communication_characteristics_t *communication_characteristics);
36
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/communication_characteristics_af.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/communication_characteristics_af.c Changed
51
 
1
@@ -5,6 +5,7 @@
2
 #include "communication_characteristics_af.h"
3
 
4
 OpenAPI_communication_characteristics_af_t *OpenAPI_communication_characteristics_af_create(
5
+    bool is_pp_dl_packet_count_null,
6
     bool is_pp_dl_packet_count,
7
     int pp_dl_packet_count,
8
     bool is_maximum_response_time,
9
@@ -16,6 +17,7 @@
10
     OpenAPI_communication_characteristics_af_t *communication_characteristics_af_local_var = ogs_malloc(sizeof(OpenAPI_communication_characteristics_af_t));
11
     ogs_assert(communication_characteristics_af_local_var);
12
 
13
+    communication_characteristics_af_local_var->is_pp_dl_packet_count_null = is_pp_dl_packet_count_null;
14
     communication_characteristics_af_local_var->is_pp_dl_packet_count = is_pp_dl_packet_count;
15
     communication_characteristics_af_local_var->pp_dl_packet_count = pp_dl_packet_count;
16
     communication_characteristics_af_local_var->is_maximum_response_time = is_maximum_response_time;
17
@@ -52,6 +54,11 @@
18
         ogs_error("OpenAPI_communication_characteristics_af_convertToJSON() failed pp_dl_packet_count");
19
         goto end;
20
     }
21
+    } else if (communication_characteristics_af->is_pp_dl_packet_count_null) {
22
+        if (cJSON_AddNullToObject(item, "ppDlPacketCount") == NULL) {
23
+            ogs_error("OpenAPI_communication_characteristics_af_convertToJSON() failed pp_dl_packet_count");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (communication_characteristics_af->is_maximum_response_time) {
29
@@ -81,11 +88,13 @@
30
     cJSON *maximum_latency = NULL;
31
     pp_dl_packet_count = cJSON_GetObjectItemCaseSensitive(communication_characteristics_afJSON, "ppDlPacketCount");
32
     if (pp_dl_packet_count) {
33
+    if (!cJSON_IsNull(pp_dl_packet_count)) {
34
     if (!cJSON_IsNumber(pp_dl_packet_count)) {
35
         ogs_error("OpenAPI_communication_characteristics_af_parseFromJSON() failed pp_dl_packet_count");
36
         goto end;
37
     }
38
     }
39
+    }
40
 
41
     maximum_response_time = cJSON_GetObjectItemCaseSensitive(communication_characteristics_afJSON, "maximumResponseTime");
42
     if (maximum_response_time) {
43
@@ -104,6 +113,7 @@
44
     }
45
 
46
     communication_characteristics_af_local_var = OpenAPI_communication_characteristics_af_create (
47
+        pp_dl_packet_count && cJSON_IsNull(pp_dl_packet_count) ? true : false,
48
         pp_dl_packet_count ? true : false,
49
         pp_dl_packet_count ? pp_dl_packet_count->valuedouble : 0,
50
         maximum_response_time ? true : false,
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/communication_characteristics_af.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/communication_characteristics_af.h Changed
17
 
1
@@ -19,6 +19,7 @@
2
 
3
 typedef struct OpenAPI_communication_characteristics_af_s OpenAPI_communication_characteristics_af_t;
4
 typedef struct OpenAPI_communication_characteristics_af_s {
5
+    bool is_pp_dl_packet_count_null;
6
     bool is_pp_dl_packet_count;
7
     int pp_dl_packet_count;
8
     bool is_maximum_response_time;
9
@@ -28,6 +29,7 @@
10
 } OpenAPI_communication_characteristics_af_t;
11
 
12
 OpenAPI_communication_characteristics_af_t *OpenAPI_communication_characteristics_af_create(
13
+    bool is_pp_dl_packet_count_null,
14
     bool is_pp_dl_packet_count,
15
     int pp_dl_packet_count,
16
     bool is_maximum_response_time,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/condition_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/condition_data.c Changed
79
 
1
@@ -6,7 +6,9 @@
2
 
3
 OpenAPI_condition_data_t *OpenAPI_condition_data_create(
4
     char *cond_id,
5
+    bool is_activation_time_null,
6
     char *activation_time,
7
+    bool is_deactivation_time_null,
8
     char *deactivation_time,
9
     OpenAPI_access_type_e access_type,
10
     OpenAPI_rat_type_e rat_type
11
@@ -16,7 +18,9 @@
12
     ogs_assert(condition_data_local_var);
13
 
14
     condition_data_local_var->cond_id = cond_id;
15
+    condition_data_local_var->is_activation_time_null = is_activation_time_null;
16
     condition_data_local_var->activation_time = activation_time;
17
+    condition_data_local_var->is_deactivation_time_null = is_deactivation_time_null;
18
     condition_data_local_var->deactivation_time = deactivation_time;
19
     condition_data_local_var->access_type = access_type;
20
     condition_data_local_var->rat_type = rat_type;
21
@@ -71,6 +75,11 @@
22
         ogs_error("OpenAPI_condition_data_convertToJSON() failed activation_time");
23
         goto end;
24
     }
25
+    } else if (condition_data->is_activation_time_null) {
26
+        if (cJSON_AddNullToObject(item, "activationTime") == NULL) {
27
+            ogs_error("OpenAPI_condition_data_convertToJSON() failed activation_time");
28
+            goto end;
29
+        }
30
     }
31
 
32
     if (condition_data->deactivation_time) {
33
@@ -78,6 +87,11 @@
34
         ogs_error("OpenAPI_condition_data_convertToJSON() failed deactivation_time");
35
         goto end;
36
     }
37
+    } else if (condition_data->is_deactivation_time_null) {
38
+        if (cJSON_AddNullToObject(item, "deactivationTime") == NULL) {
39
+            ogs_error("OpenAPI_condition_data_convertToJSON() failed deactivation_time");
40
+            goto end;
41
+        }
42
     }
43
 
44
     if (condition_data->access_type != OpenAPI_access_type_NULL) {
45
@@ -121,19 +135,23 @@
46
 
47
     activation_time = cJSON_GetObjectItemCaseSensitive(condition_dataJSON, "activationTime");
48
     if (activation_time) {
49
+    if (!cJSON_IsNull(activation_time)) {
50
     if (!cJSON_IsString(activation_time) && !cJSON_IsNull(activation_time)) {
51
         ogs_error("OpenAPI_condition_data_parseFromJSON() failed activation_time");
52
         goto end;
53
     }
54
     }
55
+    }
56
 
57
     deactivation_time = cJSON_GetObjectItemCaseSensitive(condition_dataJSON, "deactivationTime");
58
     if (deactivation_time) {
59
+    if (!cJSON_IsNull(deactivation_time)) {
60
     if (!cJSON_IsString(deactivation_time) && !cJSON_IsNull(deactivation_time)) {
61
         ogs_error("OpenAPI_condition_data_parseFromJSON() failed deactivation_time");
62
         goto end;
63
     }
64
     }
65
+    }
66
 
67
     access_type = cJSON_GetObjectItemCaseSensitive(condition_dataJSON, "accessType");
68
     if (access_type) {
69
@@ -155,7 +173,9 @@
70
 
71
     condition_data_local_var = OpenAPI_condition_data_create (
72
         ogs_strdup(cond_id->valuestring),
73
+        activation_time && cJSON_IsNull(activation_time) ? true : false,
74
         activation_time && !cJSON_IsNull(activation_time) ? ogs_strdup(activation_time->valuestring) : NULL,
75
+        deactivation_time && cJSON_IsNull(deactivation_time) ? true : false,
76
         deactivation_time && !cJSON_IsNull(deactivation_time) ? ogs_strdup(deactivation_time->valuestring) : NULL,
77
         access_type ? access_typeVariable : 0,
78
         rat_type ? rat_typeVariable : 0
79
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/condition_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/condition_data.h Changed
21
 
1
@@ -22,7 +22,9 @@
2
 typedef struct OpenAPI_condition_data_s OpenAPI_condition_data_t;
3
 typedef struct OpenAPI_condition_data_s {
4
     char *cond_id;
5
+    bool is_activation_time_null;
6
     char *activation_time;
7
+    bool is_deactivation_time_null;
8
     char *deactivation_time;
9
     OpenAPI_access_type_e access_type;
10
     OpenAPI_rat_type_e rat_type;
11
@@ -30,7 +32,9 @@
12
 
13
 OpenAPI_condition_data_t *OpenAPI_condition_data_create(
14
     char *cond_id,
15
+    bool is_activation_time_null,
16
     char *activation_time,
17
+    bool is_deactivation_time_null,
18
     char *deactivation_time,
19
     OpenAPI_access_type_e access_type,
20
     OpenAPI_rat_type_e rat_type
21
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/confirmation_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/confirmation_data.c Changed
25
 
1
@@ -5,6 +5,7 @@
2
 #include "confirmation_data.h"
3
 
4
 OpenAPI_confirmation_data_t *OpenAPI_confirmation_data_create(
5
+    bool is_res_star_null,
6
     char *res_star,
7
     char *supported_features
8
 )
9
@@ -12,6 +13,7 @@
10
     OpenAPI_confirmation_data_t *confirmation_data_local_var = ogs_malloc(sizeof(OpenAPI_confirmation_data_t));
11
     ogs_assert(confirmation_data_local_var);
12
 
13
+    confirmation_data_local_var->is_res_star_null = is_res_star_null;
14
     confirmation_data_local_var->res_star = res_star;
15
     confirmation_data_local_var->supported_features = supported_features;
16
 
17
@@ -92,6 +94,7 @@
18
     }
19
 
20
     confirmation_data_local_var = OpenAPI_confirmation_data_create (
21
+        res_star && cJSON_IsNull(res_star) ? true : false,
22
         ogs_strdup(res_star->valuestring),
23
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL
24
     );
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/confirmation_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/confirmation_data.h Changed
15
 
1
@@ -19,11 +19,13 @@
2
 
3
 typedef struct OpenAPI_confirmation_data_s OpenAPI_confirmation_data_t;
4
 typedef struct OpenAPI_confirmation_data_s {
5
+    bool is_res_star_null;
6
     char *res_star;
7
     char *supported_features;
8
 } OpenAPI_confirmation_data_t;
9
 
10
 OpenAPI_confirmation_data_t *OpenAPI_confirmation_data_create(
11
+    bool is_res_star_null,
12
     char *res_star,
13
     char *supported_features
14
 );
15
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/dnn_configuration.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/dnn_configuration.c Changed
52
 
1
@@ -36,6 +36,7 @@
2
     char *iptv_acc_ctrl_info,
3
     OpenAPI_ip_index_t *ipv4_index,
4
     OpenAPI_ip_index_t *ipv6_index,
5
+    bool is_ecs_addr_config_info_null,
6
     OpenAPI_ecs_addr_config_info_t *ecs_addr_config_info,
7
     OpenAPI_list_t *additional_ecs_addr_config_infos,
8
     char *shared_ecs_addr_config_info,
9
@@ -83,6 +84,7 @@
10
     dnn_configuration_local_var->iptv_acc_ctrl_info = iptv_acc_ctrl_info;
11
     dnn_configuration_local_var->ipv4_index = ipv4_index;
12
     dnn_configuration_local_var->ipv6_index = ipv6_index;
13
+    dnn_configuration_local_var->is_ecs_addr_config_info_null = is_ecs_addr_config_info_null;
14
     dnn_configuration_local_var->ecs_addr_config_info = ecs_addr_config_info;
15
     dnn_configuration_local_var->additional_ecs_addr_config_infos = additional_ecs_addr_config_infos;
16
     dnn_configuration_local_var->shared_ecs_addr_config_info = shared_ecs_addr_config_info;
17
@@ -511,6 +513,11 @@
18
         ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed ecs_addr_config_info");
19
         goto end;
20
     }
21
+    } else if (dnn_configuration->is_ecs_addr_config_info_null) {
22
+        if (cJSON_AddNullToObject(item, "ecsAddrConfigInfo") == NULL) {
23
+            ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed ecs_addr_config_info");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (dnn_configuration->additional_ecs_addr_config_infos) {
29
@@ -919,12 +926,14 @@
30
 
31
     ecs_addr_config_info = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "ecsAddrConfigInfo");
32
     if (ecs_addr_config_info) {
33
+    if (!cJSON_IsNull(ecs_addr_config_info)) {
34
     ecs_addr_config_info_local_nonprim = OpenAPI_ecs_addr_config_info_parseFromJSON(ecs_addr_config_info);
35
     if (!ecs_addr_config_info_local_nonprim) {
36
         ogs_error("OpenAPI_ecs_addr_config_info_parseFromJSON failed ecs_addr_config_info");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     additional_ecs_addr_config_infos = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "additionalEcsAddrConfigInfos");
43
     if (additional_ecs_addr_config_infos) {
44
@@ -1044,6 +1053,7 @@
45
         iptv_acc_ctrl_info && !cJSON_IsNull(iptv_acc_ctrl_info) ? ogs_strdup(iptv_acc_ctrl_info->valuestring) : NULL,
46
         ipv4_index ? ipv4_index_local_nonprim : NULL,
47
         ipv6_index ? ipv6_index_local_nonprim : NULL,
48
+        ecs_addr_config_info && cJSON_IsNull(ecs_addr_config_info) ? true : false,
49
         ecs_addr_config_info ? ecs_addr_config_info_local_nonprim : NULL,
50
         additional_ecs_addr_config_infos ? additional_ecs_addr_config_infosList : NULL,
51
         shared_ecs_addr_config_info && !cJSON_IsNull(shared_ecs_addr_config_info) ? ogs_strdup(shared_ecs_addr_config_info->valuestring) : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/dnn_configuration.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/dnn_configuration.h Changed
17
 
1
@@ -63,6 +63,7 @@
2
     char *iptv_acc_ctrl_info;
3
     struct OpenAPI_ip_index_s *ipv4_index;
4
     struct OpenAPI_ip_index_s *ipv6_index;
5
+    bool is_ecs_addr_config_info_null;
6
     struct OpenAPI_ecs_addr_config_info_s *ecs_addr_config_info;
7
     OpenAPI_list_t *additional_ecs_addr_config_infos;
8
     char *shared_ecs_addr_config_info;
9
@@ -108,6 +109,7 @@
10
     char *iptv_acc_ctrl_info,
11
     OpenAPI_ip_index_t *ipv4_index,
12
     OpenAPI_ip_index_t *ipv6_index,
13
+    bool is_ecs_addr_config_info_null,
14
     OpenAPI_ecs_addr_config_info_t *ecs_addr_config_info,
15
     OpenAPI_list_t *additional_ecs_addr_config_infos,
16
     char *shared_ecs_addr_config_info,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/dnn_configuration_1.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/dnn_configuration_1.c Changed
52
 
1
@@ -36,6 +36,7 @@
2
     char *iptv_acc_ctrl_info,
3
     OpenAPI_ip_index_t *ipv4_index,
4
     OpenAPI_ip_index_t *ipv6_index,
5
+    bool is_ecs_addr_config_info_null,
6
     OpenAPI_ecs_addr_config_info_1_t *ecs_addr_config_info,
7
     OpenAPI_list_t *additional_ecs_addr_config_infos,
8
     char *shared_ecs_addr_config_info,
9
@@ -83,6 +84,7 @@
10
     dnn_configuration_1_local_var->iptv_acc_ctrl_info = iptv_acc_ctrl_info;
11
     dnn_configuration_1_local_var->ipv4_index = ipv4_index;
12
     dnn_configuration_1_local_var->ipv6_index = ipv6_index;
13
+    dnn_configuration_1_local_var->is_ecs_addr_config_info_null = is_ecs_addr_config_info_null;
14
     dnn_configuration_1_local_var->ecs_addr_config_info = ecs_addr_config_info;
15
     dnn_configuration_1_local_var->additional_ecs_addr_config_infos = additional_ecs_addr_config_infos;
16
     dnn_configuration_1_local_var->shared_ecs_addr_config_info = shared_ecs_addr_config_info;
17
@@ -511,6 +513,11 @@
18
         ogs_error("OpenAPI_dnn_configuration_1_convertToJSON() failed ecs_addr_config_info");
19
         goto end;
20
     }
21
+    } else if (dnn_configuration_1->is_ecs_addr_config_info_null) {
22
+        if (cJSON_AddNullToObject(item, "ecsAddrConfigInfo") == NULL) {
23
+            ogs_error("OpenAPI_dnn_configuration_1_convertToJSON() failed ecs_addr_config_info");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (dnn_configuration_1->additional_ecs_addr_config_infos) {
29
@@ -919,12 +926,14 @@
30
 
31
     ecs_addr_config_info = cJSON_GetObjectItemCaseSensitive(dnn_configuration_1JSON, "ecsAddrConfigInfo");
32
     if (ecs_addr_config_info) {
33
+    if (!cJSON_IsNull(ecs_addr_config_info)) {
34
     ecs_addr_config_info_local_nonprim = OpenAPI_ecs_addr_config_info_1_parseFromJSON(ecs_addr_config_info);
35
     if (!ecs_addr_config_info_local_nonprim) {
36
         ogs_error("OpenAPI_ecs_addr_config_info_1_parseFromJSON failed ecs_addr_config_info");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     additional_ecs_addr_config_infos = cJSON_GetObjectItemCaseSensitive(dnn_configuration_1JSON, "additionalEcsAddrConfigInfos");
43
     if (additional_ecs_addr_config_infos) {
44
@@ -1044,6 +1053,7 @@
45
         iptv_acc_ctrl_info && !cJSON_IsNull(iptv_acc_ctrl_info) ? ogs_strdup(iptv_acc_ctrl_info->valuestring) : NULL,
46
         ipv4_index ? ipv4_index_local_nonprim : NULL,
47
         ipv6_index ? ipv6_index_local_nonprim : NULL,
48
+        ecs_addr_config_info && cJSON_IsNull(ecs_addr_config_info) ? true : false,
49
         ecs_addr_config_info ? ecs_addr_config_info_local_nonprim : NULL,
50
         additional_ecs_addr_config_infos ? additional_ecs_addr_config_infosList : NULL,
51
         shared_ecs_addr_config_info && !cJSON_IsNull(shared_ecs_addr_config_info) ? ogs_strdup(shared_ecs_addr_config_info->valuestring) : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/dnn_configuration_1.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/dnn_configuration_1.h Changed
17
 
1
@@ -63,6 +63,7 @@
2
     char *iptv_acc_ctrl_info;
3
     struct OpenAPI_ip_index_s *ipv4_index;
4
     struct OpenAPI_ip_index_s *ipv6_index;
5
+    bool is_ecs_addr_config_info_null;
6
     struct OpenAPI_ecs_addr_config_info_1_s *ecs_addr_config_info;
7
     OpenAPI_list_t *additional_ecs_addr_config_infos;
8
     char *shared_ecs_addr_config_info;
9
@@ -108,6 +109,7 @@
10
     char *iptv_acc_ctrl_info,
11
     OpenAPI_ip_index_t *ipv4_index,
12
     OpenAPI_ip_index_t *ipv6_index,
13
+    bool is_ecs_addr_config_info_null,
14
     OpenAPI_ecs_addr_config_info_1_t *ecs_addr_config_info,
15
     OpenAPI_list_t *additional_ecs_addr_config_infos,
16
     char *shared_ecs_addr_config_info,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/downlink_data_notification_control_rm.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/downlink_data_notification_control_rm.c Changed
77
 
1
@@ -5,14 +5,18 @@
2
 #include "downlink_data_notification_control_rm.h"
3
 
4
 OpenAPI_downlink_data_notification_control_rm_t *OpenAPI_downlink_data_notification_control_rm_create(
5
+    bool is_notif_ctrl_inds_null,
6
     OpenAPI_list_t *notif_ctrl_inds,
7
+    bool is_types_of_notif_null,
8
     OpenAPI_list_t *types_of_notif
9
 )
10
 {
11
     OpenAPI_downlink_data_notification_control_rm_t *downlink_data_notification_control_rm_local_var = ogs_malloc(sizeof(OpenAPI_downlink_data_notification_control_rm_t));
12
     ogs_assert(downlink_data_notification_control_rm_local_var);
13
 
14
+    downlink_data_notification_control_rm_local_var->is_notif_ctrl_inds_null = is_notif_ctrl_inds_null;
15
     downlink_data_notification_control_rm_local_var->notif_ctrl_inds = notif_ctrl_inds;
16
+    downlink_data_notification_control_rm_local_var->is_types_of_notif_null = is_types_of_notif_null;
17
     downlink_data_notification_control_rm_local_var->types_of_notif = types_of_notif;
18
 
19
     return downlink_data_notification_control_rm_local_var;
20
@@ -59,6 +63,11 @@
21
             goto end;
22
         }
23
     }
24
+    } else if (downlink_data_notification_control_rm->is_notif_ctrl_inds_null) {
25
+        if (cJSON_AddNullToObject(item, "notifCtrlInds") == NULL) {
26
+            ogs_error("OpenAPI_downlink_data_notification_control_rm_convertToJSON() failed notif_ctrl_inds");
27
+            goto end;
28
+        }
29
     }
30
 
31
     if (downlink_data_notification_control_rm->types_of_notif != OpenAPI_dl_data_delivery_status_NULL) {
32
@@ -73,6 +82,11 @@
33
             goto end;
34
         }
35
     }
36
+    } else if (downlink_data_notification_control_rm->is_types_of_notif_null) {
37
+        if (cJSON_AddNullToObject(item, "typesOfNotif") == NULL) {
38
+            ogs_error("OpenAPI_downlink_data_notification_control_rm_convertToJSON() failed types_of_notif");
39
+            goto end;
40
+        }
41
     }
42
 
43
 end:
44
@@ -89,6 +103,7 @@
45
     OpenAPI_list_t *types_of_notifList = NULL;
46
     notif_ctrl_inds = cJSON_GetObjectItemCaseSensitive(downlink_data_notification_control_rmJSON, "notifCtrlInds");
47
     if (notif_ctrl_inds) {
48
+    if (!cJSON_IsNull(notif_ctrl_inds)) {
49
         cJSON *notif_ctrl_inds_local = NULL;
50
         if (!cJSON_IsArray(notif_ctrl_inds)) {
51
             ogs_error("OpenAPI_downlink_data_notification_control_rm_parseFromJSON() failed notif_ctrl_inds");
52
@@ -111,9 +126,11 @@
53
             OpenAPI_list_add(notif_ctrl_indsList, (void *)localEnum);
54
         }
55
     }
56
+    }
57
 
58
     types_of_notif = cJSON_GetObjectItemCaseSensitive(downlink_data_notification_control_rmJSON, "typesOfNotif");
59
     if (types_of_notif) {
60
+    if (!cJSON_IsNull(types_of_notif)) {
61
         cJSON *types_of_notif_local = NULL;
62
         if (!cJSON_IsArray(types_of_notif)) {
63
             ogs_error("OpenAPI_downlink_data_notification_control_rm_parseFromJSON() failed types_of_notif");
64
@@ -136,9 +153,12 @@
65
             OpenAPI_list_add(types_of_notifList, (void *)localEnum);
66
         }
67
     }
68
+    }
69
 
70
     downlink_data_notification_control_rm_local_var = OpenAPI_downlink_data_notification_control_rm_create (
71
+        notif_ctrl_inds && cJSON_IsNull(notif_ctrl_inds) ? true : false,
72
         notif_ctrl_inds ? notif_ctrl_indsList : NULL,
73
+        types_of_notif && cJSON_IsNull(types_of_notif) ? true : false,
74
         types_of_notif ? types_of_notifList : NULL
75
     );
76
 
77
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/downlink_data_notification_control_rm.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/downlink_data_notification_control_rm.h Changed
18
 
1
@@ -21,12 +21,16 @@
2
 
3
 typedef struct OpenAPI_downlink_data_notification_control_rm_s OpenAPI_downlink_data_notification_control_rm_t;
4
 typedef struct OpenAPI_downlink_data_notification_control_rm_s {
5
+    bool is_notif_ctrl_inds_null;
6
     OpenAPI_list_t *notif_ctrl_inds;
7
+    bool is_types_of_notif_null;
8
     OpenAPI_list_t *types_of_notif;
9
 } OpenAPI_downlink_data_notification_control_rm_t;
10
 
11
 OpenAPI_downlink_data_notification_control_rm_t *OpenAPI_downlink_data_notification_control_rm_create(
12
+    bool is_notif_ctrl_inds_null,
13
     OpenAPI_list_t *notif_ctrl_inds,
14
+    bool is_types_of_notif_null,
15
     OpenAPI_list_t *types_of_notif
16
 );
17
 void OpenAPI_downlink_data_notification_control_rm_free(OpenAPI_downlink_data_notification_control_rm_t *downlink_data_notification_control_rm);
18
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.c Changed
25
 
1
@@ -5,6 +5,7 @@
2
 #include "eap_auth_method_200_response.h"
3
 
4
 OpenAPI_eap_auth_method_200_response_t *OpenAPI_eap_auth_method_200_response_create(
5
+    bool is_eap_payload_null,
6
     char *eap_payload,
7
     OpenAPI_list_t* _links
8
 )
9
@@ -12,6 +13,7 @@
10
     OpenAPI_eap_auth_method_200_response_t *eap_auth_method_200_response_local_var = ogs_malloc(sizeof(OpenAPI_eap_auth_method_200_response_t));
11
     ogs_assert(eap_auth_method_200_response_local_var);
12
 
13
+    eap_auth_method_200_response_local_var->is_eap_payload_null = is_eap_payload_null;
14
     eap_auth_method_200_response_local_var->eap_payload = eap_payload;
15
     eap_auth_method_200_response_local_var->_links = _links;
16
 
17
@@ -144,6 +146,7 @@
18
         }
19
 
20
     eap_auth_method_200_response_local_var = OpenAPI_eap_auth_method_200_response_create (
21
+        eap_payload && cJSON_IsNull(eap_payload) ? true : false,
22
         ogs_strdup(eap_payload->valuestring),
23
         _linksList
24
     );
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/eap_auth_method_200_response.h Changed
15
 
1
@@ -20,11 +20,13 @@
2
 
3
 typedef struct OpenAPI_eap_auth_method_200_response_s OpenAPI_eap_auth_method_200_response_t;
4
 typedef struct OpenAPI_eap_auth_method_200_response_s {
5
+    bool is_eap_payload_null;
6
     char *eap_payload;
7
     OpenAPI_list_t* _links;
8
 } OpenAPI_eap_auth_method_200_response_t;
9
 
10
 OpenAPI_eap_auth_method_200_response_t *OpenAPI_eap_auth_method_200_response_create(
11
+    bool is_eap_payload_null,
12
     char *eap_payload,
13
     OpenAPI_list_t* _links
14
 );
15
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/eap_session.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/eap_session.c Changed
25
 
1
@@ -5,6 +5,7 @@
2
 #include "eap_session.h"
3
 
4
 OpenAPI_eap_session_t *OpenAPI_eap_session_create(
5
+    bool is_eap_payload_null,
6
     char *eap_payload,
7
     char *k_seaf,
8
     OpenAPI_list_t* _links,
9
@@ -18,6 +19,7 @@
10
     OpenAPI_eap_session_t *eap_session_local_var = ogs_malloc(sizeof(OpenAPI_eap_session_t));
11
     ogs_assert(eap_session_local_var);
12
 
13
+    eap_session_local_var->is_eap_payload_null = is_eap_payload_null;
14
     eap_session_local_var->eap_payload = eap_payload;
15
     eap_session_local_var->k_seaf = k_seaf;
16
     eap_session_local_var->_links = _links;
17
@@ -299,6 +301,7 @@
18
     }
19
 
20
     eap_session_local_var = OpenAPI_eap_session_create (
21
+        eap_payload && cJSON_IsNull(eap_payload) ? true : false,
22
         ogs_strdup(eap_payload->valuestring),
23
         k_seaf && !cJSON_IsNull(k_seaf) ? ogs_strdup(k_seaf->valuestring) : NULL,
24
         _links ? _linksList : NULL,
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/eap_session.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/eap_session.h Changed
17
 
1
@@ -22,6 +22,7 @@
2
 
3
 typedef struct OpenAPI_eap_session_s OpenAPI_eap_session_t;
4
 typedef struct OpenAPI_eap_session_s {
5
+    bool is_eap_payload_null;
6
     char *eap_payload;
7
     char *k_seaf;
8
     OpenAPI_list_t* _links;
9
@@ -33,6 +34,7 @@
10
 } OpenAPI_eap_session_t;
11
 
12
 OpenAPI_eap_session_t *OpenAPI_eap_session_create(
13
+    bool is_eap_payload_null,
14
     char *eap_payload,
15
     char *k_seaf,
16
     OpenAPI_list_t* _links,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/events_subsc_req_data_rm.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/events_subsc_req_data_rm.c Changed
121
 
1
@@ -8,10 +8,13 @@
2
     OpenAPI_list_t *events,
3
     char *notif_uri,
4
     OpenAPI_list_t *req_qos_mon_params,
5
+    bool is_qos_mon_null,
6
     OpenAPI_qos_monitoring_information_rm_t *qos_mon,
7
     OpenAPI_list_t *req_anis,
8
+    bool is_usg_thres_null,
9
     OpenAPI_usage_threshold_rm_t *usg_thres,
10
     char *notif_corre_id,
11
+    bool is_direct_notif_ind_null,
12
     bool is_direct_notif_ind,
13
     int direct_notif_ind
14
 )
15
@@ -22,10 +25,13 @@
16
     events_subsc_req_data_rm_local_var->events = events;
17
     events_subsc_req_data_rm_local_var->notif_uri = notif_uri;
18
     events_subsc_req_data_rm_local_var->req_qos_mon_params = req_qos_mon_params;
19
+    events_subsc_req_data_rm_local_var->is_qos_mon_null = is_qos_mon_null;
20
     events_subsc_req_data_rm_local_var->qos_mon = qos_mon;
21
     events_subsc_req_data_rm_local_var->req_anis = req_anis;
22
+    events_subsc_req_data_rm_local_var->is_usg_thres_null = is_usg_thres_null;
23
     events_subsc_req_data_rm_local_var->usg_thres = usg_thres;
24
     events_subsc_req_data_rm_local_var->notif_corre_id = notif_corre_id;
25
+    events_subsc_req_data_rm_local_var->is_direct_notif_ind_null = is_direct_notif_ind_null;
26
     events_subsc_req_data_rm_local_var->is_direct_notif_ind = is_direct_notif_ind;
27
     events_subsc_req_data_rm_local_var->direct_notif_ind = direct_notif_ind;
28
 
29
@@ -134,6 +140,11 @@
30
         ogs_error("OpenAPI_events_subsc_req_data_rm_convertToJSON() failed qos_mon");
31
         goto end;
32
     }
33
+    } else if (events_subsc_req_data_rm->is_qos_mon_null) {
34
+        if (cJSON_AddNullToObject(item, "qosMon") == NULL) {
35
+            ogs_error("OpenAPI_events_subsc_req_data_rm_convertToJSON() failed qos_mon");
36
+            goto end;
37
+        }
38
     }
39
 
40
     if (events_subsc_req_data_rm->req_anis != OpenAPI_required_access_info_NULL) {
41
@@ -161,6 +172,11 @@
42
         ogs_error("OpenAPI_events_subsc_req_data_rm_convertToJSON() failed usg_thres");
43
         goto end;
44
     }
45
+    } else if (events_subsc_req_data_rm->is_usg_thres_null) {
46
+        if (cJSON_AddNullToObject(item, "usgThres") == NULL) {
47
+            ogs_error("OpenAPI_events_subsc_req_data_rm_convertToJSON() failed usg_thres");
48
+            goto end;
49
+        }
50
     }
51
 
52
     if (events_subsc_req_data_rm->notif_corre_id) {
53
@@ -175,6 +191,11 @@
54
         ogs_error("OpenAPI_events_subsc_req_data_rm_convertToJSON() failed direct_notif_ind");
55
         goto end;
56
     }
57
+    } else if (events_subsc_req_data_rm->is_direct_notif_ind_null) {
58
+        if (cJSON_AddNullToObject(item, "directNotifInd") == NULL) {
59
+            ogs_error("OpenAPI_events_subsc_req_data_rm_convertToJSON() failed direct_notif_ind");
60
+            goto end;
61
+        }
62
     }
63
 
64
 end:
65
@@ -259,12 +280,14 @@
66
 
67
     qos_mon = cJSON_GetObjectItemCaseSensitive(events_subsc_req_data_rmJSON, "qosMon");
68
     if (qos_mon) {
69
+    if (!cJSON_IsNull(qos_mon)) {
70
     qos_mon_local_nonprim = OpenAPI_qos_monitoring_information_rm_parseFromJSON(qos_mon);
71
     if (!qos_mon_local_nonprim) {
72
         ogs_error("OpenAPI_qos_monitoring_information_rm_parseFromJSON failed qos_mon");
73
         goto end;
74
     }
75
     }
76
+    }
77
 
78
     req_anis = cJSON_GetObjectItemCaseSensitive(events_subsc_req_data_rmJSON, "reqAnis");
79
     if (req_anis) {
80
@@ -293,12 +316,14 @@
81
 
82
     usg_thres = cJSON_GetObjectItemCaseSensitive(events_subsc_req_data_rmJSON, "usgThres");
83
     if (usg_thres) {
84
+    if (!cJSON_IsNull(usg_thres)) {
85
     usg_thres_local_nonprim = OpenAPI_usage_threshold_rm_parseFromJSON(usg_thres);
86
     if (!usg_thres_local_nonprim) {
87
         ogs_error("OpenAPI_usage_threshold_rm_parseFromJSON failed usg_thres");
88
         goto end;
89
     }
90
     }
91
+    }
92
 
93
     notif_corre_id = cJSON_GetObjectItemCaseSensitive(events_subsc_req_data_rmJSON, "notifCorreId");
94
     if (notif_corre_id) {
95
@@ -310,20 +335,25 @@
96
 
97
     direct_notif_ind = cJSON_GetObjectItemCaseSensitive(events_subsc_req_data_rmJSON, "directNotifInd");
98
     if (direct_notif_ind) {
99
+    if (!cJSON_IsNull(direct_notif_ind)) {
100
     if (!cJSON_IsBool(direct_notif_ind)) {
101
         ogs_error("OpenAPI_events_subsc_req_data_rm_parseFromJSON() failed direct_notif_ind");
102
         goto end;
103
     }
104
     }
105
+    }
106
 
107
     events_subsc_req_data_rm_local_var = OpenAPI_events_subsc_req_data_rm_create (
108
         eventsList,
109
         notif_uri && !cJSON_IsNull(notif_uri) ? ogs_strdup(notif_uri->valuestring) : NULL,
110
         req_qos_mon_params ? req_qos_mon_paramsList : NULL,
111
+        qos_mon && cJSON_IsNull(qos_mon) ? true : false,
112
         qos_mon ? qos_mon_local_nonprim : NULL,
113
         req_anis ? req_anisList : NULL,
114
+        usg_thres && cJSON_IsNull(usg_thres) ? true : false,
115
         usg_thres ? usg_thres_local_nonprim : NULL,
116
         notif_corre_id && !cJSON_IsNull(notif_corre_id) ? ogs_strdup(notif_corre_id->valuestring) : NULL,
117
+        direct_notif_ind && cJSON_IsNull(direct_notif_ind) ? true : false,
118
         direct_notif_ind ? true : false,
119
         direct_notif_ind ? direct_notif_ind->valueint : 0
120
     );
121
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/events_subsc_req_data_rm.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/events_subsc_req_data_rm.h Changed
29
 
1
@@ -27,10 +27,13 @@
2
     OpenAPI_list_t *events;
3
     char *notif_uri;
4
     OpenAPI_list_t *req_qos_mon_params;
5
+    bool is_qos_mon_null;
6
     struct OpenAPI_qos_monitoring_information_rm_s *qos_mon;
7
     OpenAPI_list_t *req_anis;
8
+    bool is_usg_thres_null;
9
     struct OpenAPI_usage_threshold_rm_s *usg_thres;
10
     char *notif_corre_id;
11
+    bool is_direct_notif_ind_null;
12
     bool is_direct_notif_ind;
13
     int direct_notif_ind;
14
 } OpenAPI_events_subsc_req_data_rm_t;
15
@@ -39,10 +42,13 @@
16
     OpenAPI_list_t *events,
17
     char *notif_uri,
18
     OpenAPI_list_t *req_qos_mon_params,
19
+    bool is_qos_mon_null,
20
     OpenAPI_qos_monitoring_information_rm_t *qos_mon,
21
     OpenAPI_list_t *req_anis,
22
+    bool is_usg_thres_null,
23
     OpenAPI_usage_threshold_rm_t *usg_thres,
24
     char *notif_corre_id,
25
+    bool is_direct_notif_ind_null,
26
     bool is_direct_notif_ind,
27
     int direct_notif_ind
28
 );
29
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/expected_ue_behaviour.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/expected_ue_behaviour.c Changed
129
 
1
@@ -8,12 +8,15 @@
2
     char *af_instance_id,
3
     int reference_id,
4
     OpenAPI_stationary_indication_rm_t *stationary_indication,
5
+    bool is_communication_duration_time_null,
6
     bool is_communication_duration_time,
7
     int communication_duration_time,
8
     OpenAPI_scheduled_communication_type_rm_t *scheduled_communication_type,
9
+    bool is_periodic_time_null,
10
     bool is_periodic_time,
11
     int periodic_time,
12
     OpenAPI_scheduled_communication_time_rm_t *scheduled_communication_time,
13
+    bool is_expected_umts_null,
14
     OpenAPI_list_t *expected_umts,
15
     OpenAPI_traffic_profile_rm_t *traffic_profile,
16
     OpenAPI_battery_indication_rm_t *battery_indication,
17
@@ -27,12 +30,15 @@
18
     expected_ue_behaviour_local_var->af_instance_id = af_instance_id;
19
     expected_ue_behaviour_local_var->reference_id = reference_id;
20
     expected_ue_behaviour_local_var->stationary_indication = stationary_indication;
21
+    expected_ue_behaviour_local_var->is_communication_duration_time_null = is_communication_duration_time_null;
22
     expected_ue_behaviour_local_var->is_communication_duration_time = is_communication_duration_time;
23
     expected_ue_behaviour_local_var->communication_duration_time = communication_duration_time;
24
     expected_ue_behaviour_local_var->scheduled_communication_type = scheduled_communication_type;
25
+    expected_ue_behaviour_local_var->is_periodic_time_null = is_periodic_time_null;
26
     expected_ue_behaviour_local_var->is_periodic_time = is_periodic_time;
27
     expected_ue_behaviour_local_var->periodic_time = periodic_time;
28
     expected_ue_behaviour_local_var->scheduled_communication_time = scheduled_communication_time;
29
+    expected_ue_behaviour_local_var->is_expected_umts_null = is_expected_umts_null;
30
     expected_ue_behaviour_local_var->expected_umts = expected_umts;
31
     expected_ue_behaviour_local_var->traffic_profile = traffic_profile;
32
     expected_ue_behaviour_local_var->battery_indication = battery_indication;
33
@@ -134,6 +140,11 @@
34
         ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed communication_duration_time");
35
         goto end;
36
     }
37
+    } else if (expected_ue_behaviour->is_communication_duration_time_null) {
38
+        if (cJSON_AddNullToObject(item, "communicationDurationTime") == NULL) {
39
+            ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed communication_duration_time");
40
+            goto end;
41
+        }
42
     }
43
 
44
     if (expected_ue_behaviour->scheduled_communication_type) {
45
@@ -154,6 +165,11 @@
46
         ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed periodic_time");
47
         goto end;
48
     }
49
+    } else if (expected_ue_behaviour->is_periodic_time_null) {
50
+        if (cJSON_AddNullToObject(item, "periodicTime") == NULL) {
51
+            ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed periodic_time");
52
+            goto end;
53
+        }
54
     }
55
 
56
     if (expected_ue_behaviour->scheduled_communication_time) {
57
@@ -183,6 +199,11 @@
58
         }
59
         cJSON_AddItemToArray(expected_umtsList, itemLocal);
60
     }
61
+    } else if (expected_ue_behaviour->is_expected_umts_null) {
62
+        if (cJSON_AddNullToObject(item, "expectedUmts") == NULL) {
63
+            ogs_error("OpenAPI_expected_ue_behaviour_convertToJSON() failed expected_umts");
64
+            goto end;
65
+        }
66
     }
67
 
68
     if (expected_ue_behaviour->traffic_profile) {
69
@@ -282,11 +303,13 @@
70
 
71
     communication_duration_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "communicationDurationTime");
72
     if (communication_duration_time) {
73
+    if (!cJSON_IsNull(communication_duration_time)) {
74
     if (!cJSON_IsNumber(communication_duration_time)) {
75
         ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed communication_duration_time");
76
         goto end;
77
     }
78
     }
79
+    }
80
 
81
     scheduled_communication_type = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "scheduledCommunicationType");
82
     if (scheduled_communication_type) {
83
@@ -299,11 +322,13 @@
84
 
85
     periodic_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "periodicTime");
86
     if (periodic_time) {
87
+    if (!cJSON_IsNull(periodic_time)) {
88
     if (!cJSON_IsNumber(periodic_time)) {
89
         ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed periodic_time");
90
         goto end;
91
     }
92
     }
93
+    }
94
 
95
     scheduled_communication_time = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "scheduledCommunicationTime");
96
     if (scheduled_communication_time) {
97
@@ -316,6 +341,7 @@
98
 
99
     expected_umts = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "expectedUmts");
100
     if (expected_umts) {
101
+    if (!cJSON_IsNull(expected_umts)) {
102
         cJSON *expected_umts_local = NULL;
103
         if (!cJSON_IsArray(expected_umts)) {
104
             ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON() failed expected_umts");
105
@@ -337,6 +363,7 @@
106
             OpenAPI_list_add(expected_umtsList, expected_umtsItem);
107
         }
108
     }
109
+    }
110
 
111
     traffic_profile = cJSON_GetObjectItemCaseSensitive(expected_ue_behaviourJSON, "trafficProfile");
112
     if (traffic_profile) {
113
@@ -377,12 +404,15 @@
114
         
115
         reference_id->valuedouble,
116
         stationary_indication ? stationary_indication_local_nonprim : NULL,
117
+        communication_duration_time && cJSON_IsNull(communication_duration_time) ? true : false,
118
         communication_duration_time ? true : false,
119
         communication_duration_time ? communication_duration_time->valuedouble : 0,
120
         scheduled_communication_type ? scheduled_communication_type_local_nonprim : NULL,
121
+        periodic_time && cJSON_IsNull(periodic_time) ? true : false,
122
         periodic_time ? true : false,
123
         periodic_time ? periodic_time->valuedouble : 0,
124
         scheduled_communication_time ? scheduled_communication_time_local_nonprim : NULL,
125
+        expected_umts && cJSON_IsNull(expected_umts) ? true : false,
126
         expected_umts ? expected_umtsList : NULL,
127
         traffic_profile ? traffic_profile_local_nonprim : NULL,
128
         battery_indication ? battery_indication_local_nonprim : NULL,
129
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/expected_ue_behaviour.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/expected_ue_behaviour.h Changed
33
 
1
@@ -28,12 +28,15 @@
2
     char *af_instance_id;
3
     int reference_id;
4
     struct OpenAPI_stationary_indication_rm_s *stationary_indication;
5
+    bool is_communication_duration_time_null;
6
     bool is_communication_duration_time;
7
     int communication_duration_time;
8
     struct OpenAPI_scheduled_communication_type_rm_s *scheduled_communication_type;
9
+    bool is_periodic_time_null;
10
     bool is_periodic_time;
11
     int periodic_time;
12
     struct OpenAPI_scheduled_communication_time_rm_s *scheduled_communication_time;
13
+    bool is_expected_umts_null;
14
     OpenAPI_list_t *expected_umts;
15
     struct OpenAPI_traffic_profile_rm_s *traffic_profile;
16
     struct OpenAPI_battery_indication_rm_s *battery_indication;
17
@@ -45,12 +48,15 @@
18
     char *af_instance_id,
19
     int reference_id,
20
     OpenAPI_stationary_indication_rm_t *stationary_indication,
21
+    bool is_communication_duration_time_null,
22
     bool is_communication_duration_time,
23
     int communication_duration_time,
24
     OpenAPI_scheduled_communication_type_rm_t *scheduled_communication_type,
25
+    bool is_periodic_time_null,
26
     bool is_periodic_time,
27
     int periodic_time,
28
     OpenAPI_scheduled_communication_time_rm_t *scheduled_communication_time,
29
+    bool is_expected_umts_null,
30
     OpenAPI_list_t *expected_umts,
31
     OpenAPI_traffic_profile_rm_t *traffic_profile,
32
     OpenAPI_battery_indication_rm_t *battery_indication,
33
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/flow_information.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/flow_information.c Changed
107
 
1
@@ -10,8 +10,11 @@
2
     char *pack_filt_id,
3
     bool is_packet_filter_usage,
4
     int packet_filter_usage,
5
+    bool is_tos_traffic_class_null,
6
     char *tos_traffic_class,
7
+    bool is_spi_null,
8
     char *spi,
9
+    bool is_flow_label_null,
10
     char *flow_label,
11
     OpenAPI_flow_direction_e flow_direction
12
 )
13
@@ -24,8 +27,11 @@
14
     flow_information_local_var->pack_filt_id = pack_filt_id;
15
     flow_information_local_var->is_packet_filter_usage = is_packet_filter_usage;
16
     flow_information_local_var->packet_filter_usage = packet_filter_usage;
17
+    flow_information_local_var->is_tos_traffic_class_null = is_tos_traffic_class_null;
18
     flow_information_local_var->tos_traffic_class = tos_traffic_class;
19
+    flow_information_local_var->is_spi_null = is_spi_null;
20
     flow_information_local_var->spi = spi;
21
+    flow_information_local_var->is_flow_label_null = is_flow_label_null;
22
     flow_information_local_var->flow_label = flow_label;
23
     flow_information_local_var->flow_direction = flow_direction;
24
 
25
@@ -116,6 +122,11 @@
26
         ogs_error("OpenAPI_flow_information_convertToJSON() failed tos_traffic_class");
27
         goto end;
28
     }
29
+    } else if (flow_information->is_tos_traffic_class_null) {
30
+        if (cJSON_AddNullToObject(item, "tosTrafficClass") == NULL) {
31
+            ogs_error("OpenAPI_flow_information_convertToJSON() failed tos_traffic_class");
32
+            goto end;
33
+        }
34
     }
35
 
36
     if (flow_information->spi) {
37
@@ -123,6 +134,11 @@
38
         ogs_error("OpenAPI_flow_information_convertToJSON() failed spi");
39
         goto end;
40
     }
41
+    } else if (flow_information->is_spi_null) {
42
+        if (cJSON_AddNullToObject(item, "spi") == NULL) {
43
+            ogs_error("OpenAPI_flow_information_convertToJSON() failed spi");
44
+            goto end;
45
+        }
46
     }
47
 
48
     if (flow_information->flow_label) {
49
@@ -130,6 +146,11 @@
50
         ogs_error("OpenAPI_flow_information_convertToJSON() failed flow_label");
51
         goto end;
52
     }
53
+    } else if (flow_information->is_flow_label_null) {
54
+        if (cJSON_AddNullToObject(item, "flowLabel") == NULL) {
55
+            ogs_error("OpenAPI_flow_information_convertToJSON() failed flow_label");
56
+            goto end;
57
+        }
58
     }
59
 
60
     if (flow_information->flow_direction != OpenAPI_flow_direction_NULL) {
61
@@ -192,27 +213,33 @@
62
 
63
     tos_traffic_class = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "tosTrafficClass");
64
     if (tos_traffic_class) {
65
+    if (!cJSON_IsNull(tos_traffic_class)) {
66
     if (!cJSON_IsString(tos_traffic_class) && !cJSON_IsNull(tos_traffic_class)) {
67
         ogs_error("OpenAPI_flow_information_parseFromJSON() failed tos_traffic_class");
68
         goto end;
69
     }
70
     }
71
+    }
72
 
73
     spi = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "spi");
74
     if (spi) {
75
+    if (!cJSON_IsNull(spi)) {
76
     if (!cJSON_IsString(spi) && !cJSON_IsNull(spi)) {
77
         ogs_error("OpenAPI_flow_information_parseFromJSON() failed spi");
78
         goto end;
79
     }
80
     }
81
+    }
82
 
83
     flow_label = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "flowLabel");
84
     if (flow_label) {
85
+    if (!cJSON_IsNull(flow_label)) {
86
     if (!cJSON_IsString(flow_label) && !cJSON_IsNull(flow_label)) {
87
         ogs_error("OpenAPI_flow_information_parseFromJSON() failed flow_label");
88
         goto end;
89
     }
90
     }
91
+    }
92
 
93
     flow_direction = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "flowDirection");
94
     if (flow_direction) {
95
@@ -229,8 +256,11 @@
96
         pack_filt_id && !cJSON_IsNull(pack_filt_id) ? ogs_strdup(pack_filt_id->valuestring) : NULL,
97
         packet_filter_usage ? true : false,
98
         packet_filter_usage ? packet_filter_usage->valueint : 0,
99
+        tos_traffic_class && cJSON_IsNull(tos_traffic_class) ? true : false,
100
         tos_traffic_class && !cJSON_IsNull(tos_traffic_class) ? ogs_strdup(tos_traffic_class->valuestring) : NULL,
101
+        spi && cJSON_IsNull(spi) ? true : false,
102
         spi && !cJSON_IsNull(spi) ? ogs_strdup(spi->valuestring) : NULL,
103
+        flow_label && cJSON_IsNull(flow_label) ? true : false,
104
         flow_label && !cJSON_IsNull(flow_label) ? ogs_strdup(flow_label->valuestring) : NULL,
105
         flow_direction ? flow_directionVariable : 0
106
     );
107
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/flow_information.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/flow_information.h Changed
25
 
1
@@ -26,8 +26,11 @@
2
     char *pack_filt_id;
3
     bool is_packet_filter_usage;
4
     int packet_filter_usage;
5
+    bool is_tos_traffic_class_null;
6
     char *tos_traffic_class;
7
+    bool is_spi_null;
8
     char *spi;
9
+    bool is_flow_label_null;
10
     char *flow_label;
11
     OpenAPI_flow_direction_e flow_direction;
12
 } OpenAPI_flow_information_t;
13
@@ -38,8 +41,11 @@
14
     char *pack_filt_id,
15
     bool is_packet_filter_usage,
16
     int packet_filter_usage,
17
+    bool is_tos_traffic_class_null,
18
     char *tos_traffic_class,
19
+    bool is_spi_null,
20
     char *spi,
21
+    bool is_flow_label_null,
22
     char *flow_label,
23
     OpenAPI_flow_direction_e flow_direction
24
 );
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/hsmf_update_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/hsmf_update_data.c Changed
102
 
1
@@ -82,6 +82,7 @@
2
     char *ismf_pdu_session_uri,
3
     char *ismf_id,
4
     char *i_smf_service_instance_id,
5
+    bool is_dl_serving_plmn_rate_ctl_null,
6
     bool is_dl_serving_plmn_rate_ctl,
7
     int dl_serving_plmn_rate_ctl,
8
     OpenAPI_list_t *dnai_list,
9
@@ -95,6 +96,7 @@
10
     OpenAPI_guami_t *guami,
11
     OpenAPI_list_t *secondary_rat_usage_data_report_container,
12
     OpenAPI_hsmf_update_data_sm_policy_notify_ind_e sm_policy_notify_ind,
13
+    bool is_pcf_ue_callback_info_null,
14
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
15
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat,
16
     OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate_ul,
17
@@ -159,6 +161,7 @@
18
     hsmf_update_data_local_var->ismf_pdu_session_uri = ismf_pdu_session_uri;
19
     hsmf_update_data_local_var->ismf_id = ismf_id;
20
     hsmf_update_data_local_var->i_smf_service_instance_id = i_smf_service_instance_id;
21
+    hsmf_update_data_local_var->is_dl_serving_plmn_rate_ctl_null = is_dl_serving_plmn_rate_ctl_null;
22
     hsmf_update_data_local_var->is_dl_serving_plmn_rate_ctl = is_dl_serving_plmn_rate_ctl;
23
     hsmf_update_data_local_var->dl_serving_plmn_rate_ctl = dl_serving_plmn_rate_ctl;
24
     hsmf_update_data_local_var->dnai_list = dnai_list;
25
@@ -172,6 +175,7 @@
26
     hsmf_update_data_local_var->guami = guami;
27
     hsmf_update_data_local_var->secondary_rat_usage_data_report_container = secondary_rat_usage_data_report_container;
28
     hsmf_update_data_local_var->sm_policy_notify_ind = sm_policy_notify_ind;
29
+    hsmf_update_data_local_var->is_pcf_ue_callback_info_null = is_pcf_ue_callback_info_null;
30
     hsmf_update_data_local_var->pcf_ue_callback_info = pcf_ue_callback_info;
31
     hsmf_update_data_local_var->satellite_backhaul_cat = satellite_backhaul_cat;
32
     hsmf_update_data_local_var->max_integrity_protected_data_rate_ul = max_integrity_protected_data_rate_ul;
33
@@ -875,6 +879,11 @@
34
         ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed dl_serving_plmn_rate_ctl");
35
         goto end;
36
     }
37
+    } else if (hsmf_update_data->is_dl_serving_plmn_rate_ctl_null) {
38
+        if (cJSON_AddNullToObject(item, "dlServingPlmnRateCtl") == NULL) {
39
+            ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed dl_serving_plmn_rate_ctl");
40
+            goto end;
41
+        }
42
     }
43
 
44
     if (hsmf_update_data->dnai_list) {
45
@@ -1015,6 +1024,11 @@
46
         ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed pcf_ue_callback_info");
47
         goto end;
48
     }
49
+    } else if (hsmf_update_data->is_pcf_ue_callback_info_null) {
50
+        if (cJSON_AddNullToObject(item, "pcfUeCallbackInfo") == NULL) {
51
+            ogs_error("OpenAPI_hsmf_update_data_convertToJSON() failed pcf_ue_callback_info");
52
+            goto end;
53
+        }
54
     }
55
 
56
     if (hsmf_update_data->satellite_backhaul_cat != OpenAPI_satellite_backhaul_category_NULL) {
57
@@ -1688,11 +1702,13 @@
58
 
59
     dl_serving_plmn_rate_ctl = cJSON_GetObjectItemCaseSensitive(hsmf_update_dataJSON, "dlServingPlmnRateCtl");
60
     if (dl_serving_plmn_rate_ctl) {
61
+    if (!cJSON_IsNull(dl_serving_plmn_rate_ctl)) {
62
     if (!cJSON_IsNumber(dl_serving_plmn_rate_ctl)) {
63
         ogs_error("OpenAPI_hsmf_update_data_parseFromJSON() failed dl_serving_plmn_rate_ctl");
64
         goto end;
65
     }
66
     }
67
+    }
68
 
69
     dnai_list = cJSON_GetObjectItemCaseSensitive(hsmf_update_dataJSON, "dnaiList");
70
     if (dnai_list) {
71
@@ -1817,12 +1833,14 @@
72
 
73
     pcf_ue_callback_info = cJSON_GetObjectItemCaseSensitive(hsmf_update_dataJSON, "pcfUeCallbackInfo");
74
     if (pcf_ue_callback_info) {
75
+    if (!cJSON_IsNull(pcf_ue_callback_info)) {
76
     pcf_ue_callback_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_callback_info);
77
     if (!pcf_ue_callback_info_local_nonprim) {
78
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_callback_info");
79
         goto end;
80
     }
81
     }
82
+    }
83
 
84
     satellite_backhaul_cat = cJSON_GetObjectItemCaseSensitive(hsmf_update_dataJSON, "satelliteBackhaulCat");
85
     if (satellite_backhaul_cat) {
86
@@ -1915,6 +1933,7 @@
87
         ismf_pdu_session_uri && !cJSON_IsNull(ismf_pdu_session_uri) ? ogs_strdup(ismf_pdu_session_uri->valuestring) : NULL,
88
         ismf_id && !cJSON_IsNull(ismf_id) ? ogs_strdup(ismf_id->valuestring) : NULL,
89
         i_smf_service_instance_id && !cJSON_IsNull(i_smf_service_instance_id) ? ogs_strdup(i_smf_service_instance_id->valuestring) : NULL,
90
+        dl_serving_plmn_rate_ctl && cJSON_IsNull(dl_serving_plmn_rate_ctl) ? true : false,
91
         dl_serving_plmn_rate_ctl ? true : false,
92
         dl_serving_plmn_rate_ctl ? dl_serving_plmn_rate_ctl->valuedouble : 0,
93
         dnai_list ? dnai_listList : NULL,
94
@@ -1928,6 +1947,7 @@
95
         guami ? guami_local_nonprim : NULL,
96
         secondary_rat_usage_data_report_container ? secondary_rat_usage_data_report_containerList : NULL,
97
         sm_policy_notify_ind ? sm_policy_notify_indVariable : 0,
98
+        pcf_ue_callback_info && cJSON_IsNull(pcf_ue_callback_info) ? true : false,
99
         pcf_ue_callback_info ? pcf_ue_callback_info_local_nonprim : NULL,
100
         satellite_backhaul_cat ? satellite_backhaul_catVariable : 0,
101
         max_integrity_protected_data_rate_ul ? max_integrity_protected_data_rate_ulVariable : 0,
102
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/hsmf_update_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/hsmf_update_data.h Changed
33
 
1
@@ -109,6 +109,7 @@
2
     char *ismf_pdu_session_uri;
3
     char *ismf_id;
4
     char *i_smf_service_instance_id;
5
+    bool is_dl_serving_plmn_rate_ctl_null;
6
     bool is_dl_serving_plmn_rate_ctl;
7
     int dl_serving_plmn_rate_ctl;
8
     OpenAPI_list_t *dnai_list;
9
@@ -122,6 +123,7 @@
10
     struct OpenAPI_guami_s *guami;
11
     OpenAPI_list_t *secondary_rat_usage_data_report_container;
12
     OpenAPI_hsmf_update_data_sm_policy_notify_ind_e sm_policy_notify_ind;
13
+    bool is_pcf_ue_callback_info_null;
14
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_callback_info;
15
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat;
16
     OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate_ul;
17
@@ -184,6 +186,7 @@
18
     char *ismf_pdu_session_uri,
19
     char *ismf_id,
20
     char *i_smf_service_instance_id,
21
+    bool is_dl_serving_plmn_rate_ctl_null,
22
     bool is_dl_serving_plmn_rate_ctl,
23
     int dl_serving_plmn_rate_ctl,
24
     OpenAPI_list_t *dnai_list,
25
@@ -197,6 +200,7 @@
26
     OpenAPI_guami_t *guami,
27
     OpenAPI_list_t *secondary_rat_usage_data_report_container,
28
     OpenAPI_hsmf_update_data_sm_policy_notify_ind_e sm_policy_notify_ind,
29
+    bool is_pcf_ue_callback_info_null,
30
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
31
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat,
32
     OpenAPI_max_integrity_protected_data_rate_e max_integrity_protected_data_rate_ul,
33
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/immediate_report.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/immediate_report.c Changed
52
 
1
@@ -12,6 +12,7 @@
2
     OpenAPI_ue_context_in_smsf_data_t *uec_smsf_data,
3
     OpenAPI_sms_subscription_data_t *sms_subs_data,
4
     OpenAPI_sm_subs_data_t *sm_data,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     OpenAPI_sms_management_subscription_data_t *sms_mng_data,
8
     OpenAPI_lcs_privacy_data_t *lcs_privacy_data,
9
@@ -33,6 +34,7 @@
10
     immediate_report_local_var->uec_smsf_data = uec_smsf_data;
11
     immediate_report_local_var->sms_subs_data = sms_subs_data;
12
     immediate_report_local_var->sm_data = sm_data;
13
+    immediate_report_local_var->is_trace_data_null = is_trace_data_null;
14
     immediate_report_local_var->trace_data = trace_data;
15
     immediate_report_local_var->sms_mng_data = sms_mng_data;
16
     immediate_report_local_var->lcs_privacy_data = lcs_privacy_data;
17
@@ -233,6 +235,11 @@
18
         ogs_error("OpenAPI_immediate_report_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (immediate_report->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_immediate_report_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (immediate_report->sms_mng_data) {
29
@@ -444,12 +451,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(immediate_reportJSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     sms_mng_data = cJSON_GetObjectItemCaseSensitive(immediate_reportJSON, "smsMngData");
43
     if (sms_mng_data) {
44
@@ -531,6 +540,7 @@
45
         uec_smsf_data ? uec_smsf_data_local_nonprim : NULL,
46
         sms_subs_data ? sms_subs_data_local_nonprim : NULL,
47
         sm_data ? sm_data_local_nonprim : NULL,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL,
50
         sms_mng_data ? sms_mng_data_local_nonprim : NULL,
51
         lcs_privacy_data ? lcs_privacy_data_local_nonprim : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/immediate_report.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/immediate_report.h Changed
17
 
1
@@ -44,6 +44,7 @@
2
     struct OpenAPI_ue_context_in_smsf_data_s *uec_smsf_data;
3
     struct OpenAPI_sms_subscription_data_s *sms_subs_data;
4
     struct OpenAPI_sm_subs_data_s *sm_data;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     struct OpenAPI_sms_management_subscription_data_s *sms_mng_data;
8
     struct OpenAPI_lcs_privacy_data_s *lcs_privacy_data;
9
@@ -63,6 +64,7 @@
10
     OpenAPI_ue_context_in_smsf_data_t *uec_smsf_data,
11
     OpenAPI_sms_subscription_data_t *sms_subs_data,
12
     OpenAPI_sm_subs_data_t *sm_data,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data,
15
     OpenAPI_sms_management_subscription_data_t *sms_mng_data,
16
     OpenAPI_lcs_privacy_data_t *lcs_privacy_data,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/iptv_config_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/iptv_config_data.c Changed
48
 
1
@@ -6,6 +6,7 @@
2
 
3
 OpenAPI_iptv_config_data_t *OpenAPI_iptv_config_data_create(
4
     char *supi,
5
+    bool is_inter_group_id_null,
6
     OpenAPI_any_type_t *inter_group_id,
7
     char *dnn,
8
     OpenAPI_snssai_t *snssai,
9
@@ -20,6 +21,7 @@
10
     ogs_assert(iptv_config_data_local_var);
11
 
12
     iptv_config_data_local_var->supi = supi;
13
+    iptv_config_data_local_var->is_inter_group_id_null = is_inter_group_id_null;
14
     iptv_config_data_local_var->inter_group_id = inter_group_id;
15
     iptv_config_data_local_var->dnn = dnn;
16
     iptv_config_data_local_var->snssai = snssai;
17
@@ -116,6 +118,11 @@
18
         ogs_error("OpenAPI_iptv_config_data_convertToJSON() failed inter_group_id");
19
         goto end;
20
     }
21
+    } else if (iptv_config_data->is_inter_group_id_null) {
22
+        if (cJSON_AddNullToObject(item, "interGroupId") == NULL) {
23
+            ogs_error("OpenAPI_iptv_config_data_convertToJSON() failed inter_group_id");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (iptv_config_data->dnn) {
29
@@ -238,8 +245,10 @@
30
 
31
     inter_group_id = cJSON_GetObjectItemCaseSensitive(iptv_config_dataJSON, "interGroupId");
32
     if (inter_group_id) {
33
+    if (!cJSON_IsNull(inter_group_id)) {
34
     inter_group_id_local_object = OpenAPI_any_type_parseFromJSON(inter_group_id);
35
     }
36
+    }
37
 
38
     dnn = cJSON_GetObjectItemCaseSensitive(iptv_config_dataJSON, "dnn");
39
     if (dnn) {
40
@@ -335,6 +344,7 @@
41
 
42
     iptv_config_data_local_var = OpenAPI_iptv_config_data_create (
43
         supi && !cJSON_IsNull(supi) ? ogs_strdup(supi->valuestring) : NULL,
44
+        inter_group_id && cJSON_IsNull(inter_group_id) ? true : false,
45
         inter_group_id ? inter_group_id_local_object : NULL,
46
         dnn && !cJSON_IsNull(dnn) ? ogs_strdup(dnn->valuestring) : NULL,
47
         snssai ? snssai_local_nonprim : NULL,
48
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/iptv_config_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/iptv_config_data.h Changed
17
 
1
@@ -23,6 +23,7 @@
2
 typedef struct OpenAPI_iptv_config_data_s OpenAPI_iptv_config_data_t;
3
 typedef struct OpenAPI_iptv_config_data_s {
4
     char *supi;
5
+    bool is_inter_group_id_null;
6
     OpenAPI_any_type_t *inter_group_id;
7
     char *dnn;
8
     struct OpenAPI_snssai_s *snssai;
9
@@ -35,6 +36,7 @@
10
 
11
 OpenAPI_iptv_config_data_t *OpenAPI_iptv_config_data_create(
12
     char *supi,
13
+    bool is_inter_group_id_null,
14
     OpenAPI_any_type_t *inter_group_id,
15
     char *dnn,
16
     OpenAPI_snssai_t *snssai,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/media_component.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/media_component.c Changed
162
 
1
@@ -23,8 +23,10 @@
2
     OpenAPI_flow_status_e f_status,
3
     char *mar_bw_dl,
4
     char *mar_bw_ul,
5
+    bool is_max_packet_loss_rate_dl_null,
6
     bool is_max_packet_loss_rate_dl,
7
     int max_packet_loss_rate_dl,
8
+    bool is_max_packet_loss_rate_ul_null,
9
     bool is_max_packet_loss_rate_ul,
10
     int max_packet_loss_rate_ul,
11
     char *max_supp_bw_dl,
12
@@ -47,7 +49,9 @@
13
     bool is_sharing_key_ul,
14
     int sharing_key_ul,
15
     OpenAPI_tsn_qos_container_t *tsn_qos,
16
+    bool is_tscai_input_dl_null,
17
     OpenAPI_tscai_input_container_t *tscai_input_dl,
18
+    bool is_tscai_input_ul_null,
19
     OpenAPI_tscai_input_container_t *tscai_input_ul,
20
     bool is_tscai_time_dom,
21
     int tscai_time_dom
22
@@ -74,8 +78,10 @@
23
     media_component_local_var->f_status = f_status;
24
     media_component_local_var->mar_bw_dl = mar_bw_dl;
25
     media_component_local_var->mar_bw_ul = mar_bw_ul;
26
+    media_component_local_var->is_max_packet_loss_rate_dl_null = is_max_packet_loss_rate_dl_null;
27
     media_component_local_var->is_max_packet_loss_rate_dl = is_max_packet_loss_rate_dl;
28
     media_component_local_var->max_packet_loss_rate_dl = max_packet_loss_rate_dl;
29
+    media_component_local_var->is_max_packet_loss_rate_ul_null = is_max_packet_loss_rate_ul_null;
30
     media_component_local_var->is_max_packet_loss_rate_ul = is_max_packet_loss_rate_ul;
31
     media_component_local_var->max_packet_loss_rate_ul = max_packet_loss_rate_ul;
32
     media_component_local_var->max_supp_bw_dl = max_supp_bw_dl;
33
@@ -98,7 +104,9 @@
34
     media_component_local_var->is_sharing_key_ul = is_sharing_key_ul;
35
     media_component_local_var->sharing_key_ul = sharing_key_ul;
36
     media_component_local_var->tsn_qos = tsn_qos;
37
+    media_component_local_var->is_tscai_input_dl_null = is_tscai_input_dl_null;
38
     media_component_local_var->tscai_input_dl = tscai_input_dl;
39
+    media_component_local_var->is_tscai_input_ul_null = is_tscai_input_ul_null;
40
     media_component_local_var->tscai_input_ul = tscai_input_ul;
41
     media_component_local_var->is_tscai_time_dom = is_tscai_time_dom;
42
     media_component_local_var->tscai_time_dom = tscai_time_dom;
43
@@ -358,6 +366,11 @@
44
         ogs_error("OpenAPI_media_component_convertToJSON() failed max_packet_loss_rate_dl");
45
         goto end;
46
     }
47
+    } else if (media_component->is_max_packet_loss_rate_dl_null) {
48
+        if (cJSON_AddNullToObject(item, "maxPacketLossRateDl") == NULL) {
49
+            ogs_error("OpenAPI_media_component_convertToJSON() failed max_packet_loss_rate_dl");
50
+            goto end;
51
+        }
52
     }
53
 
54
     if (media_component->is_max_packet_loss_rate_ul) {
55
@@ -365,6 +378,11 @@
56
         ogs_error("OpenAPI_media_component_convertToJSON() failed max_packet_loss_rate_ul");
57
         goto end;
58
     }
59
+    } else if (media_component->is_max_packet_loss_rate_ul_null) {
60
+        if (cJSON_AddNullToObject(item, "maxPacketLossRateUl") == NULL) {
61
+            ogs_error("OpenAPI_media_component_convertToJSON() failed max_packet_loss_rate_ul");
62
+            goto end;
63
+        }
64
     }
65
 
66
     if (media_component->max_supp_bw_dl) {
67
@@ -531,6 +549,11 @@
68
         ogs_error("OpenAPI_media_component_convertToJSON() failed tscai_input_dl");
69
         goto end;
70
     }
71
+    } else if (media_component->is_tscai_input_dl_null) {
72
+        if (cJSON_AddNullToObject(item, "tscaiInputDl") == NULL) {
73
+            ogs_error("OpenAPI_media_component_convertToJSON() failed tscai_input_dl");
74
+            goto end;
75
+        }
76
     }
77
 
78
     if (media_component->tscai_input_ul) {
79
@@ -544,6 +567,11 @@
80
         ogs_error("OpenAPI_media_component_convertToJSON() failed tscai_input_ul");
81
         goto end;
82
     }
83
+    } else if (media_component->is_tscai_input_ul_null) {
84
+        if (cJSON_AddNullToObject(item, "tscaiInputUl") == NULL) {
85
+            ogs_error("OpenAPI_media_component_convertToJSON() failed tscai_input_ul");
86
+            goto end;
87
+        }
88
     }
89
 
90
     if (media_component->is_tscai_time_dom) {
91
@@ -770,19 +798,23 @@
92
 
93
     max_packet_loss_rate_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "maxPacketLossRateDl");
94
     if (max_packet_loss_rate_dl) {
95
+    if (!cJSON_IsNull(max_packet_loss_rate_dl)) {
96
     if (!cJSON_IsNumber(max_packet_loss_rate_dl)) {
97
         ogs_error("OpenAPI_media_component_parseFromJSON() failed max_packet_loss_rate_dl");
98
         goto end;
99
     }
100
     }
101
+    }
102
 
103
     max_packet_loss_rate_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "maxPacketLossRateUl");
104
     if (max_packet_loss_rate_ul) {
105
+    if (!cJSON_IsNull(max_packet_loss_rate_ul)) {
106
     if (!cJSON_IsNumber(max_packet_loss_rate_ul)) {
107
         ogs_error("OpenAPI_media_component_parseFromJSON() failed max_packet_loss_rate_ul");
108
         goto end;
109
     }
110
     }
111
+    }
112
 
113
     max_supp_bw_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "maxSuppBwDl");
114
     if (max_supp_bw_dl) {
115
@@ -956,21 +988,25 @@
116
 
117
     tscai_input_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "tscaiInputDl");
118
     if (tscai_input_dl) {
119
+    if (!cJSON_IsNull(tscai_input_dl)) {
120
     tscai_input_dl_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_dl);
121
     if (!tscai_input_dl_local_nonprim) {
122
         ogs_error("OpenAPI_tscai_input_container_parseFromJSON failed tscai_input_dl");
123
         goto end;
124
     }
125
     }
126
+    }
127
 
128
     tscai_input_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "tscaiInputUl");
129
     if (tscai_input_ul) {
130
+    if (!cJSON_IsNull(tscai_input_ul)) {
131
     tscai_input_ul_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_ul);
132
     if (!tscai_input_ul_local_nonprim) {
133
         ogs_error("OpenAPI_tscai_input_container_parseFromJSON failed tscai_input_ul");
134
         goto end;
135
     }
136
     }
137
+    }
138
 
139
     tscai_time_dom = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "tscaiTimeDom");
140
     if (tscai_time_dom) {
141
@@ -999,8 +1035,10 @@
142
         f_status ? f_statusVariable : 0,
143
         mar_bw_dl && !cJSON_IsNull(mar_bw_dl) ? ogs_strdup(mar_bw_dl->valuestring) : NULL,
144
         mar_bw_ul && !cJSON_IsNull(mar_bw_ul) ? ogs_strdup(mar_bw_ul->valuestring) : NULL,
145
+        max_packet_loss_rate_dl && cJSON_IsNull(max_packet_loss_rate_dl) ? true : false,
146
         max_packet_loss_rate_dl ? true : false,
147
         max_packet_loss_rate_dl ? max_packet_loss_rate_dl->valuedouble : 0,
148
+        max_packet_loss_rate_ul && cJSON_IsNull(max_packet_loss_rate_ul) ? true : false,
149
         max_packet_loss_rate_ul ? true : false,
150
         max_packet_loss_rate_ul ? max_packet_loss_rate_ul->valuedouble : 0,
151
         max_supp_bw_dl && !cJSON_IsNull(max_supp_bw_dl) ? ogs_strdup(max_supp_bw_dl->valuestring) : NULL,
152
@@ -1024,7 +1062,9 @@
153
         sharing_key_ul ? true : false,
154
         sharing_key_ul ? sharing_key_ul->valuedouble : 0,
155
         tsn_qos ? tsn_qos_local_nonprim : NULL,
156
+        tscai_input_dl && cJSON_IsNull(tscai_input_dl) ? true : false,
157
         tscai_input_dl ? tscai_input_dl_local_nonprim : NULL,
158
+        tscai_input_ul && cJSON_IsNull(tscai_input_ul) ? true : false,
159
         tscai_input_ul ? tscai_input_ul_local_nonprim : NULL,
160
         tscai_time_dom ? true : false,
161
         tscai_time_dom ? tscai_time_dom->valuedouble : 0
162
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/media_component.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/media_component.h Changed
43
 
1
@@ -48,8 +48,10 @@
2
     OpenAPI_flow_status_e f_status;
3
     char *mar_bw_dl;
4
     char *mar_bw_ul;
5
+    bool is_max_packet_loss_rate_dl_null;
6
     bool is_max_packet_loss_rate_dl;
7
     int max_packet_loss_rate_dl;
8
+    bool is_max_packet_loss_rate_ul_null;
9
     bool is_max_packet_loss_rate_ul;
10
     int max_packet_loss_rate_ul;
11
     char *max_supp_bw_dl;
12
@@ -72,7 +74,9 @@
13
     bool is_sharing_key_ul;
14
     int sharing_key_ul;
15
     struct OpenAPI_tsn_qos_container_s *tsn_qos;
16
+    bool is_tscai_input_dl_null;
17
     struct OpenAPI_tscai_input_container_s *tscai_input_dl;
18
+    bool is_tscai_input_ul_null;
19
     struct OpenAPI_tscai_input_container_s *tscai_input_ul;
20
     bool is_tscai_time_dom;
21
     int tscai_time_dom;
22
@@ -97,8 +101,10 @@
23
     OpenAPI_flow_status_e f_status,
24
     char *mar_bw_dl,
25
     char *mar_bw_ul,
26
+    bool is_max_packet_loss_rate_dl_null,
27
     bool is_max_packet_loss_rate_dl,
28
     int max_packet_loss_rate_dl,
29
+    bool is_max_packet_loss_rate_ul_null,
30
     bool is_max_packet_loss_rate_ul,
31
     int max_packet_loss_rate_ul,
32
     char *max_supp_bw_dl,
33
@@ -121,7 +127,9 @@
34
     bool is_sharing_key_ul,
35
     int sharing_key_ul,
36
     OpenAPI_tsn_qos_container_t *tsn_qos,
37
+    bool is_tscai_input_dl_null,
38
     OpenAPI_tscai_input_container_t *tscai_input_dl,
39
+    bool is_tscai_input_ul_null,
40
     OpenAPI_tscai_input_container_t *tscai_input_ul,
41
     bool is_tscai_time_dom,
42
     int tscai_time_dom
43
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/media_component_rm.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/media_component_rm.c Changed
777
 
1
@@ -6,48 +6,72 @@
2
 
3
 OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_create(
4
     char *af_app_id,
5
+    bool is_af_rout_req_null,
6
     OpenAPI_af_routing_requirement_rm_t *af_rout_req,
7
+    bool is_qos_reference_null,
8
     char *qos_reference,
9
+    bool is_alt_ser_reqs_null,
10
     OpenAPI_list_t *alt_ser_reqs,
11
+    bool is_alt_ser_reqs_data_null,
12
     OpenAPI_list_t *alt_ser_reqs_data,
13
     bool is_dis_ue_notif,
14
     int dis_ue_notif,
15
     bool is_cont_ver,
16
     int cont_ver,
17
     OpenAPI_list_t *codecs,
18
+    bool is_des_max_latency_null,
19
     bool is_des_max_latency,
20
     float des_max_latency,
21
+    bool is_des_max_loss_null,
22
     bool is_des_max_loss,
23
     float des_max_loss,
24
+    bool is_flus_id_null,
25
     char *flus_id,
26
     OpenAPI_flow_status_e f_status,
27
+    bool is_mar_bw_dl_null,
28
     char *mar_bw_dl,
29
+    bool is_mar_bw_ul_null,
30
     char *mar_bw_ul,
31
+    bool is_max_packet_loss_rate_dl_null,
32
     bool is_max_packet_loss_rate_dl,
33
     int max_packet_loss_rate_dl,
34
+    bool is_max_packet_loss_rate_ul_null,
35
     bool is_max_packet_loss_rate_ul,
36
     int max_packet_loss_rate_ul,
37
+    bool is_max_supp_bw_dl_null,
38
     char *max_supp_bw_dl,
39
+    bool is_max_supp_bw_ul_null,
40
     char *max_supp_bw_ul,
41
     int med_comp_n,
42
     OpenAPI_list_t* med_sub_comps,
43
     OpenAPI_media_type_e med_type,
44
+    bool is_min_des_bw_dl_null,
45
     char *min_des_bw_dl,
46
+    bool is_min_des_bw_ul_null,
47
     char *min_des_bw_ul,
48
+    bool is_mir_bw_dl_null,
49
     char *mir_bw_dl,
50
+    bool is_mir_bw_ul_null,
51
     char *mir_bw_ul,
52
     OpenAPI_preemption_capability_rm_t *preempt_cap,
53
     OpenAPI_preemption_vulnerability_rm_t *preempt_vuln,
54
     OpenAPI_priority_sharing_indicator_e prio_sharing_ind,
55
     OpenAPI_reserv_priority_e res_prio,
56
+    bool is_rr_bw_null,
57
     char *rr_bw,
58
+    bool is_rs_bw_null,
59
     char *rs_bw,
60
+    bool is_sharing_key_dl_null,
61
     bool is_sharing_key_dl,
62
     int sharing_key_dl,
63
+    bool is_sharing_key_ul_null,
64
     bool is_sharing_key_ul,
65
     int sharing_key_ul,
66
+    bool is_tsn_qos_null,
67
     OpenAPI_tsn_qos_container_rm_t *tsn_qos,
68
+    bool is_tscai_input_dl_null,
69
     OpenAPI_tscai_input_container_t *tscai_input_dl,
70
+    bool is_tscai_input_ul_null,
71
     OpenAPI_tscai_input_container_t *tscai_input_ul,
72
     bool is_tscai_time_dom,
73
     int tscai_time_dom
74
@@ -57,48 +81,72 @@
75
     ogs_assert(media_component_rm_local_var);
76
 
77
     media_component_rm_local_var->af_app_id = af_app_id;
78
+    media_component_rm_local_var->is_af_rout_req_null = is_af_rout_req_null;
79
     media_component_rm_local_var->af_rout_req = af_rout_req;
80
+    media_component_rm_local_var->is_qos_reference_null = is_qos_reference_null;
81
     media_component_rm_local_var->qos_reference = qos_reference;
82
+    media_component_rm_local_var->is_alt_ser_reqs_null = is_alt_ser_reqs_null;
83
     media_component_rm_local_var->alt_ser_reqs = alt_ser_reqs;
84
+    media_component_rm_local_var->is_alt_ser_reqs_data_null = is_alt_ser_reqs_data_null;
85
     media_component_rm_local_var->alt_ser_reqs_data = alt_ser_reqs_data;
86
     media_component_rm_local_var->is_dis_ue_notif = is_dis_ue_notif;
87
     media_component_rm_local_var->dis_ue_notif = dis_ue_notif;
88
     media_component_rm_local_var->is_cont_ver = is_cont_ver;
89
     media_component_rm_local_var->cont_ver = cont_ver;
90
     media_component_rm_local_var->codecs = codecs;
91
+    media_component_rm_local_var->is_des_max_latency_null = is_des_max_latency_null;
92
     media_component_rm_local_var->is_des_max_latency = is_des_max_latency;
93
     media_component_rm_local_var->des_max_latency = des_max_latency;
94
+    media_component_rm_local_var->is_des_max_loss_null = is_des_max_loss_null;
95
     media_component_rm_local_var->is_des_max_loss = is_des_max_loss;
96
     media_component_rm_local_var->des_max_loss = des_max_loss;
97
+    media_component_rm_local_var->is_flus_id_null = is_flus_id_null;
98
     media_component_rm_local_var->flus_id = flus_id;
99
     media_component_rm_local_var->f_status = f_status;
100
+    media_component_rm_local_var->is_mar_bw_dl_null = is_mar_bw_dl_null;
101
     media_component_rm_local_var->mar_bw_dl = mar_bw_dl;
102
+    media_component_rm_local_var->is_mar_bw_ul_null = is_mar_bw_ul_null;
103
     media_component_rm_local_var->mar_bw_ul = mar_bw_ul;
104
+    media_component_rm_local_var->is_max_packet_loss_rate_dl_null = is_max_packet_loss_rate_dl_null;
105
     media_component_rm_local_var->is_max_packet_loss_rate_dl = is_max_packet_loss_rate_dl;
106
     media_component_rm_local_var->max_packet_loss_rate_dl = max_packet_loss_rate_dl;
107
+    media_component_rm_local_var->is_max_packet_loss_rate_ul_null = is_max_packet_loss_rate_ul_null;
108
     media_component_rm_local_var->is_max_packet_loss_rate_ul = is_max_packet_loss_rate_ul;
109
     media_component_rm_local_var->max_packet_loss_rate_ul = max_packet_loss_rate_ul;
110
+    media_component_rm_local_var->is_max_supp_bw_dl_null = is_max_supp_bw_dl_null;
111
     media_component_rm_local_var->max_supp_bw_dl = max_supp_bw_dl;
112
+    media_component_rm_local_var->is_max_supp_bw_ul_null = is_max_supp_bw_ul_null;
113
     media_component_rm_local_var->max_supp_bw_ul = max_supp_bw_ul;
114
     media_component_rm_local_var->med_comp_n = med_comp_n;
115
     media_component_rm_local_var->med_sub_comps = med_sub_comps;
116
     media_component_rm_local_var->med_type = med_type;
117
+    media_component_rm_local_var->is_min_des_bw_dl_null = is_min_des_bw_dl_null;
118
     media_component_rm_local_var->min_des_bw_dl = min_des_bw_dl;
119
+    media_component_rm_local_var->is_min_des_bw_ul_null = is_min_des_bw_ul_null;
120
     media_component_rm_local_var->min_des_bw_ul = min_des_bw_ul;
121
+    media_component_rm_local_var->is_mir_bw_dl_null = is_mir_bw_dl_null;
122
     media_component_rm_local_var->mir_bw_dl = mir_bw_dl;
123
+    media_component_rm_local_var->is_mir_bw_ul_null = is_mir_bw_ul_null;
124
     media_component_rm_local_var->mir_bw_ul = mir_bw_ul;
125
     media_component_rm_local_var->preempt_cap = preempt_cap;
126
     media_component_rm_local_var->preempt_vuln = preempt_vuln;
127
     media_component_rm_local_var->prio_sharing_ind = prio_sharing_ind;
128
     media_component_rm_local_var->res_prio = res_prio;
129
+    media_component_rm_local_var->is_rr_bw_null = is_rr_bw_null;
130
     media_component_rm_local_var->rr_bw = rr_bw;
131
+    media_component_rm_local_var->is_rs_bw_null = is_rs_bw_null;
132
     media_component_rm_local_var->rs_bw = rs_bw;
133
+    media_component_rm_local_var->is_sharing_key_dl_null = is_sharing_key_dl_null;
134
     media_component_rm_local_var->is_sharing_key_dl = is_sharing_key_dl;
135
     media_component_rm_local_var->sharing_key_dl = sharing_key_dl;
136
+    media_component_rm_local_var->is_sharing_key_ul_null = is_sharing_key_ul_null;
137
     media_component_rm_local_var->is_sharing_key_ul = is_sharing_key_ul;
138
     media_component_rm_local_var->sharing_key_ul = sharing_key_ul;
139
+    media_component_rm_local_var->is_tsn_qos_null = is_tsn_qos_null;
140
     media_component_rm_local_var->tsn_qos = tsn_qos;
141
+    media_component_rm_local_var->is_tscai_input_dl_null = is_tscai_input_dl_null;
142
     media_component_rm_local_var->tscai_input_dl = tscai_input_dl;
143
+    media_component_rm_local_var->is_tscai_input_ul_null = is_tscai_input_ul_null;
144
     media_component_rm_local_var->tscai_input_ul = tscai_input_ul;
145
     media_component_rm_local_var->is_tscai_time_dom = is_tscai_time_dom;
146
     media_component_rm_local_var->tscai_time_dom = tscai_time_dom;
147
@@ -252,6 +300,11 @@
148
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed af_rout_req");
149
         goto end;
150
     }
151
+    } else if (media_component_rm->is_af_rout_req_null) {
152
+        if (cJSON_AddNullToObject(item, "afRoutReq") == NULL) {
153
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed af_rout_req");
154
+            goto end;
155
+        }
156
     }
157
 
158
     if (media_component_rm->qos_reference) {
159
@@ -259,6 +312,11 @@
160
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed qos_reference");
161
         goto end;
162
     }
163
+    } else if (media_component_rm->is_qos_reference_null) {
164
+        if (cJSON_AddNullToObject(item, "qosReference") == NULL) {
165
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed qos_reference");
166
+            goto end;
167
+        }
168
     }
169
 
170
     if (media_component_rm->alt_ser_reqs) {
171
@@ -273,6 +331,11 @@
172
             goto end;
173
         }
174
     }
175
+    } else if (media_component_rm->is_alt_ser_reqs_null) {
176
+        if (cJSON_AddNullToObject(item, "altSerReqs") == NULL) {
177
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed alt_ser_reqs");
178
+            goto end;
179
+        }
180
     }
181
 
182
     if (media_component_rm->alt_ser_reqs_data) {
183
@@ -289,6 +352,11 @@
184
         }
185
         cJSON_AddItemToArray(alt_ser_reqs_dataList, itemLocal);
186
     }
187
+    } else if (media_component_rm->is_alt_ser_reqs_data_null) {
188
+        if (cJSON_AddNullToObject(item, "altSerReqsData") == NULL) {
189
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed alt_ser_reqs_data");
190
+            goto end;
191
+        }
192
     }
193
 
194
     if (media_component_rm->is_dis_ue_notif) {
195
@@ -324,6 +392,11 @@
196
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed des_max_latency");
197
         goto end;
198
     }
199
+    } else if (media_component_rm->is_des_max_latency_null) {
200
+        if (cJSON_AddNullToObject(item, "desMaxLatency") == NULL) {
201
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed des_max_latency");
202
+            goto end;
203
+        }
204
     }
205
 
206
     if (media_component_rm->is_des_max_loss) {
207
@@ -331,6 +404,11 @@
208
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed des_max_loss");
209
         goto end;
210
     }
211
+    } else if (media_component_rm->is_des_max_loss_null) {
212
+        if (cJSON_AddNullToObject(item, "desMaxLoss") == NULL) {
213
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed des_max_loss");
214
+            goto end;
215
+        }
216
     }
217
 
218
     if (media_component_rm->flus_id) {
219
@@ -338,6 +416,11 @@
220
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed flus_id");
221
         goto end;
222
     }
223
+    } else if (media_component_rm->is_flus_id_null) {
224
+        if (cJSON_AddNullToObject(item, "flusId") == NULL) {
225
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed flus_id");
226
+            goto end;
227
+        }
228
     }
229
 
230
     if (media_component_rm->f_status != OpenAPI_flow_status_NULL) {
231
@@ -352,6 +435,11 @@
232
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mar_bw_dl");
233
         goto end;
234
     }
235
+    } else if (media_component_rm->is_mar_bw_dl_null) {
236
+        if (cJSON_AddNullToObject(item, "marBwDl") == NULL) {
237
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mar_bw_dl");
238
+            goto end;
239
+        }
240
     }
241
 
242
     if (media_component_rm->mar_bw_ul) {
243
@@ -359,6 +447,11 @@
244
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mar_bw_ul");
245
         goto end;
246
     }
247
+    } else if (media_component_rm->is_mar_bw_ul_null) {
248
+        if (cJSON_AddNullToObject(item, "marBwUl") == NULL) {
249
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mar_bw_ul");
250
+            goto end;
251
+        }
252
     }
253
 
254
     if (media_component_rm->is_max_packet_loss_rate_dl) {
255
@@ -366,6 +459,11 @@
256
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_packet_loss_rate_dl");
257
         goto end;
258
     }
259
+    } else if (media_component_rm->is_max_packet_loss_rate_dl_null) {
260
+        if (cJSON_AddNullToObject(item, "maxPacketLossRateDl") == NULL) {
261
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_packet_loss_rate_dl");
262
+            goto end;
263
+        }
264
     }
265
 
266
     if (media_component_rm->is_max_packet_loss_rate_ul) {
267
@@ -373,6 +471,11 @@
268
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_packet_loss_rate_ul");
269
         goto end;
270
     }
271
+    } else if (media_component_rm->is_max_packet_loss_rate_ul_null) {
272
+        if (cJSON_AddNullToObject(item, "maxPacketLossRateUl") == NULL) {
273
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_packet_loss_rate_ul");
274
+            goto end;
275
+        }
276
     }
277
 
278
     if (media_component_rm->max_supp_bw_dl) {
279
@@ -380,6 +483,11 @@
280
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_supp_bw_dl");
281
         goto end;
282
     }
283
+    } else if (media_component_rm->is_max_supp_bw_dl_null) {
284
+        if (cJSON_AddNullToObject(item, "maxSuppBwDl") == NULL) {
285
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_supp_bw_dl");
286
+            goto end;
287
+        }
288
     }
289
 
290
     if (media_component_rm->max_supp_bw_ul) {
291
@@ -387,6 +495,11 @@
292
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_supp_bw_ul");
293
         goto end;
294
     }
295
+    } else if (media_component_rm->is_max_supp_bw_ul_null) {
296
+        if (cJSON_AddNullToObject(item, "maxSuppBwUl") == NULL) {
297
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed max_supp_bw_ul");
298
+            goto end;
299
+        }
300
     }
301
 
302
     if (cJSON_AddNumberToObject(item, "medCompN", media_component_rm->med_comp_n) == NULL) {
303
@@ -436,6 +549,11 @@
304
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed min_des_bw_dl");
305
         goto end;
306
     }
307
+    } else if (media_component_rm->is_min_des_bw_dl_null) {
308
+        if (cJSON_AddNullToObject(item, "minDesBwDl") == NULL) {
309
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed min_des_bw_dl");
310
+            goto end;
311
+        }
312
     }
313
 
314
     if (media_component_rm->min_des_bw_ul) {
315
@@ -443,6 +561,11 @@
316
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed min_des_bw_ul");
317
         goto end;
318
     }
319
+    } else if (media_component_rm->is_min_des_bw_ul_null) {
320
+        if (cJSON_AddNullToObject(item, "minDesBwUl") == NULL) {
321
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed min_des_bw_ul");
322
+            goto end;
323
+        }
324
     }
325
 
326
     if (media_component_rm->mir_bw_dl) {
327
@@ -450,6 +573,11 @@
328
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mir_bw_dl");
329
         goto end;
330
     }
331
+    } else if (media_component_rm->is_mir_bw_dl_null) {
332
+        if (cJSON_AddNullToObject(item, "mirBwDl") == NULL) {
333
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mir_bw_dl");
334
+            goto end;
335
+        }
336
     }
337
 
338
     if (media_component_rm->mir_bw_ul) {
339
@@ -457,6 +585,11 @@
340
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mir_bw_ul");
341
         goto end;
342
     }
343
+    } else if (media_component_rm->is_mir_bw_ul_null) {
344
+        if (cJSON_AddNullToObject(item, "mirBwUl") == NULL) {
345
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed mir_bw_ul");
346
+            goto end;
347
+        }
348
     }
349
 
350
     if (media_component_rm->preempt_cap) {
351
@@ -504,6 +637,11 @@
352
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed rr_bw");
353
         goto end;
354
     }
355
+    } else if (media_component_rm->is_rr_bw_null) {
356
+        if (cJSON_AddNullToObject(item, "rrBw") == NULL) {
357
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed rr_bw");
358
+            goto end;
359
+        }
360
     }
361
 
362
     if (media_component_rm->rs_bw) {
363
@@ -511,6 +649,11 @@
364
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed rs_bw");
365
         goto end;
366
     }
367
+    } else if (media_component_rm->is_rs_bw_null) {
368
+        if (cJSON_AddNullToObject(item, "rsBw") == NULL) {
369
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed rs_bw");
370
+            goto end;
371
+        }
372
     }
373
 
374
     if (media_component_rm->is_sharing_key_dl) {
375
@@ -518,6 +661,11 @@
376
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed sharing_key_dl");
377
         goto end;
378
     }
379
+    } else if (media_component_rm->is_sharing_key_dl_null) {
380
+        if (cJSON_AddNullToObject(item, "sharingKeyDl") == NULL) {
381
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed sharing_key_dl");
382
+            goto end;
383
+        }
384
     }
385
 
386
     if (media_component_rm->is_sharing_key_ul) {
387
@@ -525,6 +673,11 @@
388
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed sharing_key_ul");
389
         goto end;
390
     }
391
+    } else if (media_component_rm->is_sharing_key_ul_null) {
392
+        if (cJSON_AddNullToObject(item, "sharingKeyUl") == NULL) {
393
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed sharing_key_ul");
394
+            goto end;
395
+        }
396
     }
397
 
398
     if (media_component_rm->tsn_qos) {
399
@@ -538,6 +691,11 @@
400
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed tsn_qos");
401
         goto end;
402
     }
403
+    } else if (media_component_rm->is_tsn_qos_null) {
404
+        if (cJSON_AddNullToObject(item, "tsnQos") == NULL) {
405
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed tsn_qos");
406
+            goto end;
407
+        }
408
     }
409
 
410
     if (media_component_rm->tscai_input_dl) {
411
@@ -551,6 +709,11 @@
412
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed tscai_input_dl");
413
         goto end;
414
     }
415
+    } else if (media_component_rm->is_tscai_input_dl_null) {
416
+        if (cJSON_AddNullToObject(item, "tscaiInputDl") == NULL) {
417
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed tscai_input_dl");
418
+            goto end;
419
+        }
420
     }
421
 
422
     if (media_component_rm->tscai_input_ul) {
423
@@ -564,6 +727,11 @@
424
         ogs_error("OpenAPI_media_component_rm_convertToJSON() failed tscai_input_ul");
425
         goto end;
426
     }
427
+    } else if (media_component_rm->is_tscai_input_ul_null) {
428
+        if (cJSON_AddNullToObject(item, "tscaiInputUl") == NULL) {
429
+            ogs_error("OpenAPI_media_component_rm_convertToJSON() failed tscai_input_ul");
430
+            goto end;
431
+        }
432
     }
433
 
434
     if (media_component_rm->is_tscai_time_dom) {
435
@@ -642,23 +810,28 @@
436
 
437
     af_rout_req = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "afRoutReq");
438
     if (af_rout_req) {
439
+    if (!cJSON_IsNull(af_rout_req)) {
440
     af_rout_req_local_nonprim = OpenAPI_af_routing_requirement_rm_parseFromJSON(af_rout_req);
441
     if (!af_rout_req_local_nonprim) {
442
         ogs_error("OpenAPI_af_routing_requirement_rm_parseFromJSON failed af_rout_req");
443
         goto end;
444
     }
445
     }
446
+    }
447
 
448
     qos_reference = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "qosReference");
449
     if (qos_reference) {
450
+    if (!cJSON_IsNull(qos_reference)) {
451
     if (!cJSON_IsString(qos_reference) && !cJSON_IsNull(qos_reference)) {
452
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed qos_reference");
453
         goto end;
454
     }
455
     }
456
+    }
457
 
458
     alt_ser_reqs = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "altSerReqs");
459
     if (alt_ser_reqs) {
460
+    if (!cJSON_IsNull(alt_ser_reqs)) {
461
         cJSON *alt_ser_reqs_local = NULL;
462
         if (!cJSON_IsArray(alt_ser_reqs)) {
463
             ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed alt_ser_reqs");
464
@@ -677,9 +850,11 @@
465
             OpenAPI_list_add(alt_ser_reqsList, ogs_strdup(alt_ser_reqs_local->valuestring));
466
         }
467
     }
468
+    }
469
 
470
     alt_ser_reqs_data = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "altSerReqsData");
471
     if (alt_ser_reqs_data) {
472
+    if (!cJSON_IsNull(alt_ser_reqs_data)) {
473
         cJSON *alt_ser_reqs_data_local = NULL;
474
         if (!cJSON_IsArray(alt_ser_reqs_data)) {
475
             ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed alt_ser_reqs_data");
476
@@ -701,6 +876,7 @@
477
             OpenAPI_list_add(alt_ser_reqs_dataList, alt_ser_reqs_dataItem);
478
         }
479
     }
480
+    }
481
 
482
     dis_ue_notif = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "disUeNotif");
483
     if (dis_ue_notif) {
484
@@ -741,27 +917,33 @@
485
 
486
     des_max_latency = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "desMaxLatency");
487
     if (des_max_latency) {
488
+    if (!cJSON_IsNull(des_max_latency)) {
489
     if (!cJSON_IsNumber(des_max_latency)) {
490
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed des_max_latency");
491
         goto end;
492
     }
493
     }
494
+    }
495
 
496
     des_max_loss = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "desMaxLoss");
497
     if (des_max_loss) {
498
+    if (!cJSON_IsNull(des_max_loss)) {
499
     if (!cJSON_IsNumber(des_max_loss)) {
500
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed des_max_loss");
501
         goto end;
502
     }
503
     }
504
+    }
505
 
506
     flus_id = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "flusId");
507
     if (flus_id) {
508
+    if (!cJSON_IsNull(flus_id)) {
509
     if (!cJSON_IsString(flus_id) && !cJSON_IsNull(flus_id)) {
510
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed flus_id");
511
         goto end;
512
     }
513
     }
514
+    }
515
 
516
     f_status = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "fStatus");
517
     if (f_status) {
518
@@ -774,51 +956,63 @@
519
 
520
     mar_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "marBwDl");
521
     if (mar_bw_dl) {
522
+    if (!cJSON_IsNull(mar_bw_dl)) {
523
     if (!cJSON_IsString(mar_bw_dl) && !cJSON_IsNull(mar_bw_dl)) {
524
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed mar_bw_dl");
525
         goto end;
526
     }
527
     }
528
+    }
529
 
530
     mar_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "marBwUl");
531
     if (mar_bw_ul) {
532
+    if (!cJSON_IsNull(mar_bw_ul)) {
533
     if (!cJSON_IsString(mar_bw_ul) && !cJSON_IsNull(mar_bw_ul)) {
534
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed mar_bw_ul");
535
         goto end;
536
     }
537
     }
538
+    }
539
 
540
     max_packet_loss_rate_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxPacketLossRateDl");
541
     if (max_packet_loss_rate_dl) {
542
+    if (!cJSON_IsNull(max_packet_loss_rate_dl)) {
543
     if (!cJSON_IsNumber(max_packet_loss_rate_dl)) {
544
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed max_packet_loss_rate_dl");
545
         goto end;
546
     }
547
     }
548
+    }
549
 
550
     max_packet_loss_rate_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxPacketLossRateUl");
551
     if (max_packet_loss_rate_ul) {
552
+    if (!cJSON_IsNull(max_packet_loss_rate_ul)) {
553
     if (!cJSON_IsNumber(max_packet_loss_rate_ul)) {
554
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed max_packet_loss_rate_ul");
555
         goto end;
556
     }
557
     }
558
+    }
559
 
560
     max_supp_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxSuppBwDl");
561
     if (max_supp_bw_dl) {
562
+    if (!cJSON_IsNull(max_supp_bw_dl)) {
563
     if (!cJSON_IsString(max_supp_bw_dl) && !cJSON_IsNull(max_supp_bw_dl)) {
564
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed max_supp_bw_dl");
565
         goto end;
566
     }
567
     }
568
+    }
569
 
570
     max_supp_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxSuppBwUl");
571
     if (max_supp_bw_ul) {
572
+    if (!cJSON_IsNull(max_supp_bw_ul)) {
573
     if (!cJSON_IsString(max_supp_bw_ul) && !cJSON_IsNull(max_supp_bw_ul)) {
574
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed max_supp_bw_ul");
575
         goto end;
576
     }
577
     }
578
+    }
579
 
580
     med_comp_n = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "medCompN");
581
     if (!med_comp_n) {
582
@@ -867,35 +1061,43 @@
583
 
584
     min_des_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "minDesBwDl");
585
     if (min_des_bw_dl) {
586
+    if (!cJSON_IsNull(min_des_bw_dl)) {
587
     if (!cJSON_IsString(min_des_bw_dl) && !cJSON_IsNull(min_des_bw_dl)) {
588
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed min_des_bw_dl");
589
         goto end;
590
     }
591
     }
592
+    }
593
 
594
     min_des_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "minDesBwUl");
595
     if (min_des_bw_ul) {
596
+    if (!cJSON_IsNull(min_des_bw_ul)) {
597
     if (!cJSON_IsString(min_des_bw_ul) && !cJSON_IsNull(min_des_bw_ul)) {
598
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed min_des_bw_ul");
599
         goto end;
600
     }
601
     }
602
+    }
603
 
604
     mir_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "mirBwDl");
605
     if (mir_bw_dl) {
606
+    if (!cJSON_IsNull(mir_bw_dl)) {
607
     if (!cJSON_IsString(mir_bw_dl) && !cJSON_IsNull(mir_bw_dl)) {
608
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed mir_bw_dl");
609
         goto end;
610
     }
611
     }
612
+    }
613
 
614
     mir_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "mirBwUl");
615
     if (mir_bw_ul) {
616
+    if (!cJSON_IsNull(mir_bw_ul)) {
617
     if (!cJSON_IsString(mir_bw_ul) && !cJSON_IsNull(mir_bw_ul)) {
618
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed mir_bw_ul");
619
         goto end;
620
     }
621
     }
622
+    }
623
 
624
     preempt_cap = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "preemptCap");
625
     if (preempt_cap) {
626
@@ -935,62 +1137,76 @@
627
 
628
     rr_bw = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "rrBw");
629
     if (rr_bw) {
630
+    if (!cJSON_IsNull(rr_bw)) {
631
     if (!cJSON_IsString(rr_bw) && !cJSON_IsNull(rr_bw)) {
632
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed rr_bw");
633
         goto end;
634
     }
635
     }
636
+    }
637
 
638
     rs_bw = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "rsBw");
639
     if (rs_bw) {
640
+    if (!cJSON_IsNull(rs_bw)) {
641
     if (!cJSON_IsString(rs_bw) && !cJSON_IsNull(rs_bw)) {
642
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed rs_bw");
643
         goto end;
644
     }
645
     }
646
+    }
647
 
648
     sharing_key_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "sharingKeyDl");
649
     if (sharing_key_dl) {
650
+    if (!cJSON_IsNull(sharing_key_dl)) {
651
     if (!cJSON_IsNumber(sharing_key_dl)) {
652
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed sharing_key_dl");
653
         goto end;
654
     }
655
     }
656
+    }
657
 
658
     sharing_key_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "sharingKeyUl");
659
     if (sharing_key_ul) {
660
+    if (!cJSON_IsNull(sharing_key_ul)) {
661
     if (!cJSON_IsNumber(sharing_key_ul)) {
662
         ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed sharing_key_ul");
663
         goto end;
664
     }
665
     }
666
+    }
667
 
668
     tsn_qos = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "tsnQos");
669
     if (tsn_qos) {
670
+    if (!cJSON_IsNull(tsn_qos)) {
671
     tsn_qos_local_nonprim = OpenAPI_tsn_qos_container_rm_parseFromJSON(tsn_qos);
672
     if (!tsn_qos_local_nonprim) {
673
         ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON failed tsn_qos");
674
         goto end;
675
     }
676
     }
677
+    }
678
 
679
     tscai_input_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "tscaiInputDl");
680
     if (tscai_input_dl) {
681
+    if (!cJSON_IsNull(tscai_input_dl)) {
682
     tscai_input_dl_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_dl);
683
     if (!tscai_input_dl_local_nonprim) {
684
         ogs_error("OpenAPI_tscai_input_container_parseFromJSON failed tscai_input_dl");
685
         goto end;
686
     }
687
     }
688
+    }
689
 
690
     tscai_input_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "tscaiInputUl");
691
     if (tscai_input_ul) {
692
+    if (!cJSON_IsNull(tscai_input_ul)) {
693
     tscai_input_ul_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_ul);
694
     if (!tscai_input_ul_local_nonprim) {
695
         ogs_error("OpenAPI_tscai_input_container_parseFromJSON failed tscai_input_ul");
696
         goto end;
697
     }
698
     }
699
+    }
700
 
701
     tscai_time_dom = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "tscaiTimeDom");
702
     if (tscai_time_dom) {
703
@@ -1002,49 +1218,73 @@
704
 
705
     media_component_rm_local_var = OpenAPI_media_component_rm_create (
706
         af_app_id && !cJSON_IsNull(af_app_id) ? ogs_strdup(af_app_id->valuestring) : NULL,
707
+        af_rout_req && cJSON_IsNull(af_rout_req) ? true : false,
708
         af_rout_req ? af_rout_req_local_nonprim : NULL,
709
+        qos_reference && cJSON_IsNull(qos_reference) ? true : false,
710
         qos_reference && !cJSON_IsNull(qos_reference) ? ogs_strdup(qos_reference->valuestring) : NULL,
711
+        alt_ser_reqs && cJSON_IsNull(alt_ser_reqs) ? true : false,
712
         alt_ser_reqs ? alt_ser_reqsList : NULL,
713
+        alt_ser_reqs_data && cJSON_IsNull(alt_ser_reqs_data) ? true : false,
714
         alt_ser_reqs_data ? alt_ser_reqs_dataList : NULL,
715
         dis_ue_notif ? true : false,
716
         dis_ue_notif ? dis_ue_notif->valueint : 0,
717
         cont_ver ? true : false,
718
         cont_ver ? cont_ver->valuedouble : 0,
719
         codecs ? codecsList : NULL,
720
+        des_max_latency && cJSON_IsNull(des_max_latency) ? true : false,
721
         des_max_latency ? true : false,
722
         des_max_latency ? des_max_latency->valuedouble : 0,
723
+        des_max_loss && cJSON_IsNull(des_max_loss) ? true : false,
724
         des_max_loss ? true : false,
725
         des_max_loss ? des_max_loss->valuedouble : 0,
726
+        flus_id && cJSON_IsNull(flus_id) ? true : false,
727
         flus_id && !cJSON_IsNull(flus_id) ? ogs_strdup(flus_id->valuestring) : NULL,
728
         f_status ? f_statusVariable : 0,
729
+        mar_bw_dl && cJSON_IsNull(mar_bw_dl) ? true : false,
730
         mar_bw_dl && !cJSON_IsNull(mar_bw_dl) ? ogs_strdup(mar_bw_dl->valuestring) : NULL,
731
+        mar_bw_ul && cJSON_IsNull(mar_bw_ul) ? true : false,
732
         mar_bw_ul && !cJSON_IsNull(mar_bw_ul) ? ogs_strdup(mar_bw_ul->valuestring) : NULL,
733
+        max_packet_loss_rate_dl && cJSON_IsNull(max_packet_loss_rate_dl) ? true : false,
734
         max_packet_loss_rate_dl ? true : false,
735
         max_packet_loss_rate_dl ? max_packet_loss_rate_dl->valuedouble : 0,
736
+        max_packet_loss_rate_ul && cJSON_IsNull(max_packet_loss_rate_ul) ? true : false,
737
         max_packet_loss_rate_ul ? true : false,
738
         max_packet_loss_rate_ul ? max_packet_loss_rate_ul->valuedouble : 0,
739
+        max_supp_bw_dl && cJSON_IsNull(max_supp_bw_dl) ? true : false,
740
         max_supp_bw_dl && !cJSON_IsNull(max_supp_bw_dl) ? ogs_strdup(max_supp_bw_dl->valuestring) : NULL,
741
+        max_supp_bw_ul && cJSON_IsNull(max_supp_bw_ul) ? true : false,
742
         max_supp_bw_ul && !cJSON_IsNull(max_supp_bw_ul) ? ogs_strdup(max_supp_bw_ul->valuestring) : NULL,
743
         
744
         med_comp_n->valuedouble,
745
         med_sub_comps ? med_sub_compsList : NULL,
746
         med_type ? med_typeVariable : 0,
747
+        min_des_bw_dl && cJSON_IsNull(min_des_bw_dl) ? true : false,
748
         min_des_bw_dl && !cJSON_IsNull(min_des_bw_dl) ? ogs_strdup(min_des_bw_dl->valuestring) : NULL,
749
+        min_des_bw_ul && cJSON_IsNull(min_des_bw_ul) ? true : false,
750
         min_des_bw_ul && !cJSON_IsNull(min_des_bw_ul) ? ogs_strdup(min_des_bw_ul->valuestring) : NULL,
751
+        mir_bw_dl && cJSON_IsNull(mir_bw_dl) ? true : false,
752
         mir_bw_dl && !cJSON_IsNull(mir_bw_dl) ? ogs_strdup(mir_bw_dl->valuestring) : NULL,
753
+        mir_bw_ul && cJSON_IsNull(mir_bw_ul) ? true : false,
754
         mir_bw_ul && !cJSON_IsNull(mir_bw_ul) ? ogs_strdup(mir_bw_ul->valuestring) : NULL,
755
         preempt_cap ? preempt_cap_local_nonprim : NULL,
756
         preempt_vuln ? preempt_vuln_local_nonprim : NULL,
757
         prio_sharing_ind ? prio_sharing_indVariable : 0,
758
         res_prio ? res_prioVariable : 0,
759
+        rr_bw && cJSON_IsNull(rr_bw) ? true : false,
760
         rr_bw && !cJSON_IsNull(rr_bw) ? ogs_strdup(rr_bw->valuestring) : NULL,
761
+        rs_bw && cJSON_IsNull(rs_bw) ? true : false,
762
         rs_bw && !cJSON_IsNull(rs_bw) ? ogs_strdup(rs_bw->valuestring) : NULL,
763
+        sharing_key_dl && cJSON_IsNull(sharing_key_dl) ? true : false,
764
         sharing_key_dl ? true : false,
765
         sharing_key_dl ? sharing_key_dl->valuedouble : 0,
766
+        sharing_key_ul && cJSON_IsNull(sharing_key_ul) ? true : false,
767
         sharing_key_ul ? true : false,
768
         sharing_key_ul ? sharing_key_ul->valuedouble : 0,
769
+        tsn_qos && cJSON_IsNull(tsn_qos) ? true : false,
770
         tsn_qos ? tsn_qos_local_nonprim : NULL,
771
+        tscai_input_dl && cJSON_IsNull(tscai_input_dl) ? true : false,
772
         tscai_input_dl ? tscai_input_dl_local_nonprim : NULL,
773
+        tscai_input_ul && cJSON_IsNull(tscai_input_ul) ? true : false,
774
         tscai_input_ul ? tscai_input_ul_local_nonprim : NULL,
775
         tscai_time_dom ? true : false,
776
         tscai_time_dom ? tscai_time_dom->valuedouble : 0
777
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/media_component_rm.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/media_component_rm.h Changed
147
 
1
@@ -31,48 +31,72 @@
2
 typedef struct OpenAPI_media_component_rm_s OpenAPI_media_component_rm_t;
3
 typedef struct OpenAPI_media_component_rm_s {
4
     char *af_app_id;
5
+    bool is_af_rout_req_null;
6
     struct OpenAPI_af_routing_requirement_rm_s *af_rout_req;
7
+    bool is_qos_reference_null;
8
     char *qos_reference;
9
+    bool is_alt_ser_reqs_null;
10
     OpenAPI_list_t *alt_ser_reqs;
11
+    bool is_alt_ser_reqs_data_null;
12
     OpenAPI_list_t *alt_ser_reqs_data;
13
     bool is_dis_ue_notif;
14
     int dis_ue_notif;
15
     bool is_cont_ver;
16
     int cont_ver;
17
     OpenAPI_list_t *codecs;
18
+    bool is_des_max_latency_null;
19
     bool is_des_max_latency;
20
     float des_max_latency;
21
+    bool is_des_max_loss_null;
22
     bool is_des_max_loss;
23
     float des_max_loss;
24
+    bool is_flus_id_null;
25
     char *flus_id;
26
     OpenAPI_flow_status_e f_status;
27
+    bool is_mar_bw_dl_null;
28
     char *mar_bw_dl;
29
+    bool is_mar_bw_ul_null;
30
     char *mar_bw_ul;
31
+    bool is_max_packet_loss_rate_dl_null;
32
     bool is_max_packet_loss_rate_dl;
33
     int max_packet_loss_rate_dl;
34
+    bool is_max_packet_loss_rate_ul_null;
35
     bool is_max_packet_loss_rate_ul;
36
     int max_packet_loss_rate_ul;
37
+    bool is_max_supp_bw_dl_null;
38
     char *max_supp_bw_dl;
39
+    bool is_max_supp_bw_ul_null;
40
     char *max_supp_bw_ul;
41
     int med_comp_n;
42
     OpenAPI_list_t* med_sub_comps;
43
     OpenAPI_media_type_e med_type;
44
+    bool is_min_des_bw_dl_null;
45
     char *min_des_bw_dl;
46
+    bool is_min_des_bw_ul_null;
47
     char *min_des_bw_ul;
48
+    bool is_mir_bw_dl_null;
49
     char *mir_bw_dl;
50
+    bool is_mir_bw_ul_null;
51
     char *mir_bw_ul;
52
     struct OpenAPI_preemption_capability_rm_s *preempt_cap;
53
     struct OpenAPI_preemption_vulnerability_rm_s *preempt_vuln;
54
     OpenAPI_priority_sharing_indicator_e prio_sharing_ind;
55
     OpenAPI_reserv_priority_e res_prio;
56
+    bool is_rr_bw_null;
57
     char *rr_bw;
58
+    bool is_rs_bw_null;
59
     char *rs_bw;
60
+    bool is_sharing_key_dl_null;
61
     bool is_sharing_key_dl;
62
     int sharing_key_dl;
63
+    bool is_sharing_key_ul_null;
64
     bool is_sharing_key_ul;
65
     int sharing_key_ul;
66
+    bool is_tsn_qos_null;
67
     struct OpenAPI_tsn_qos_container_rm_s *tsn_qos;
68
+    bool is_tscai_input_dl_null;
69
     struct OpenAPI_tscai_input_container_s *tscai_input_dl;
70
+    bool is_tscai_input_ul_null;
71
     struct OpenAPI_tscai_input_container_s *tscai_input_ul;
72
     bool is_tscai_time_dom;
73
     int tscai_time_dom;
74
@@ -80,48 +104,72 @@
75
 
76
 OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_create(
77
     char *af_app_id,
78
+    bool is_af_rout_req_null,
79
     OpenAPI_af_routing_requirement_rm_t *af_rout_req,
80
+    bool is_qos_reference_null,
81
     char *qos_reference,
82
+    bool is_alt_ser_reqs_null,
83
     OpenAPI_list_t *alt_ser_reqs,
84
+    bool is_alt_ser_reqs_data_null,
85
     OpenAPI_list_t *alt_ser_reqs_data,
86
     bool is_dis_ue_notif,
87
     int dis_ue_notif,
88
     bool is_cont_ver,
89
     int cont_ver,
90
     OpenAPI_list_t *codecs,
91
+    bool is_des_max_latency_null,
92
     bool is_des_max_latency,
93
     float des_max_latency,
94
+    bool is_des_max_loss_null,
95
     bool is_des_max_loss,
96
     float des_max_loss,
97
+    bool is_flus_id_null,
98
     char *flus_id,
99
     OpenAPI_flow_status_e f_status,
100
+    bool is_mar_bw_dl_null,
101
     char *mar_bw_dl,
102
+    bool is_mar_bw_ul_null,
103
     char *mar_bw_ul,
104
+    bool is_max_packet_loss_rate_dl_null,
105
     bool is_max_packet_loss_rate_dl,
106
     int max_packet_loss_rate_dl,
107
+    bool is_max_packet_loss_rate_ul_null,
108
     bool is_max_packet_loss_rate_ul,
109
     int max_packet_loss_rate_ul,
110
+    bool is_max_supp_bw_dl_null,
111
     char *max_supp_bw_dl,
112
+    bool is_max_supp_bw_ul_null,
113
     char *max_supp_bw_ul,
114
     int med_comp_n,
115
     OpenAPI_list_t* med_sub_comps,
116
     OpenAPI_media_type_e med_type,
117
+    bool is_min_des_bw_dl_null,
118
     char *min_des_bw_dl,
119
+    bool is_min_des_bw_ul_null,
120
     char *min_des_bw_ul,
121
+    bool is_mir_bw_dl_null,
122
     char *mir_bw_dl,
123
+    bool is_mir_bw_ul_null,
124
     char *mir_bw_ul,
125
     OpenAPI_preemption_capability_rm_t *preempt_cap,
126
     OpenAPI_preemption_vulnerability_rm_t *preempt_vuln,
127
     OpenAPI_priority_sharing_indicator_e prio_sharing_ind,
128
     OpenAPI_reserv_priority_e res_prio,
129
+    bool is_rr_bw_null,
130
     char *rr_bw,
131
+    bool is_rs_bw_null,
132
     char *rs_bw,
133
+    bool is_sharing_key_dl_null,
134
     bool is_sharing_key_dl,
135
     int sharing_key_dl,
136
+    bool is_sharing_key_ul_null,
137
     bool is_sharing_key_ul,
138
     int sharing_key_ul,
139
+    bool is_tsn_qos_null,
140
     OpenAPI_tsn_qos_container_rm_t *tsn_qos,
141
+    bool is_tscai_input_dl_null,
142
     OpenAPI_tscai_input_container_t *tscai_input_dl,
143
+    bool is_tscai_input_ul_null,
144
     OpenAPI_tscai_input_container_t *tscai_input_ul,
145
     bool is_tscai_time_dom,
146
     int tscai_time_dom
147
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/media_sub_component_rm.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/media_sub_component_rm.c Changed
182
 
1
@@ -6,12 +6,17 @@
2
 
3
 OpenAPI_media_sub_component_rm_t *OpenAPI_media_sub_component_rm_create(
4
     OpenAPI_af_sig_protocol_e af_sig_protocol,
5
+    bool is_ethf_descs_null,
6
     OpenAPI_list_t *ethf_descs,
7
     int f_num,
8
+    bool is_f_descs_null,
9
     OpenAPI_list_t *f_descs,
10
     OpenAPI_flow_status_e f_status,
11
+    bool is_mar_bw_dl_null,
12
     char *mar_bw_dl,
13
+    bool is_mar_bw_ul_null,
14
     char *mar_bw_ul,
15
+    bool is_tos_tr_cl_null,
16
     char *tos_tr_cl,
17
     OpenAPI_flow_usage_e flow_usage
18
 )
19
@@ -20,12 +25,17 @@
20
     ogs_assert(media_sub_component_rm_local_var);
21
 
22
     media_sub_component_rm_local_var->af_sig_protocol = af_sig_protocol;
23
+    media_sub_component_rm_local_var->is_ethf_descs_null = is_ethf_descs_null;
24
     media_sub_component_rm_local_var->ethf_descs = ethf_descs;
25
     media_sub_component_rm_local_var->f_num = f_num;
26
+    media_sub_component_rm_local_var->is_f_descs_null = is_f_descs_null;
27
     media_sub_component_rm_local_var->f_descs = f_descs;
28
     media_sub_component_rm_local_var->f_status = f_status;
29
+    media_sub_component_rm_local_var->is_mar_bw_dl_null = is_mar_bw_dl_null;
30
     media_sub_component_rm_local_var->mar_bw_dl = mar_bw_dl;
31
+    media_sub_component_rm_local_var->is_mar_bw_ul_null = is_mar_bw_ul_null;
32
     media_sub_component_rm_local_var->mar_bw_ul = mar_bw_ul;
33
+    media_sub_component_rm_local_var->is_tos_tr_cl_null = is_tos_tr_cl_null;
34
     media_sub_component_rm_local_var->tos_tr_cl = tos_tr_cl;
35
     media_sub_component_rm_local_var->flow_usage = flow_usage;
36
 
37
@@ -100,6 +110,11 @@
38
         }
39
         cJSON_AddItemToArray(ethf_descsList, itemLocal);
40
     }
41
+    } else if (media_sub_component_rm->is_ethf_descs_null) {
42
+        if (cJSON_AddNullToObject(item, "ethfDescs") == NULL) {
43
+            ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed ethf_descs");
44
+            goto end;
45
+        }
46
     }
47
 
48
     if (cJSON_AddNumberToObject(item, "fNum", media_sub_component_rm->f_num) == NULL) {
49
@@ -119,6 +134,11 @@
50
             goto end;
51
         }
52
     }
53
+    } else if (media_sub_component_rm->is_f_descs_null) {
54
+        if (cJSON_AddNullToObject(item, "fDescs") == NULL) {
55
+            ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed f_descs");
56
+            goto end;
57
+        }
58
     }
59
 
60
     if (media_sub_component_rm->f_status != OpenAPI_flow_status_NULL) {
61
@@ -133,6 +153,11 @@
62
         ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed mar_bw_dl");
63
         goto end;
64
     }
65
+    } else if (media_sub_component_rm->is_mar_bw_dl_null) {
66
+        if (cJSON_AddNullToObject(item, "marBwDl") == NULL) {
67
+            ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed mar_bw_dl");
68
+            goto end;
69
+        }
70
     }
71
 
72
     if (media_sub_component_rm->mar_bw_ul) {
73
@@ -140,6 +165,11 @@
74
         ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed mar_bw_ul");
75
         goto end;
76
     }
77
+    } else if (media_sub_component_rm->is_mar_bw_ul_null) {
78
+        if (cJSON_AddNullToObject(item, "marBwUl") == NULL) {
79
+            ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed mar_bw_ul");
80
+            goto end;
81
+        }
82
     }
83
 
84
     if (media_sub_component_rm->tos_tr_cl) {
85
@@ -147,6 +177,11 @@
86
         ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed tos_tr_cl");
87
         goto end;
88
     }
89
+    } else if (media_sub_component_rm->is_tos_tr_cl_null) {
90
+        if (cJSON_AddNullToObject(item, "tosTrCl") == NULL) {
91
+            ogs_error("OpenAPI_media_sub_component_rm_convertToJSON() failed tos_tr_cl");
92
+            goto end;
93
+        }
94
     }
95
 
96
     if (media_sub_component_rm->flow_usage != OpenAPI_flow_usage_NULL) {
97
@@ -189,6 +224,7 @@
98
 
99
     ethf_descs = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "ethfDescs");
100
     if (ethf_descs) {
101
+    if (!cJSON_IsNull(ethf_descs)) {
102
         cJSON *ethf_descs_local = NULL;
103
         if (!cJSON_IsArray(ethf_descs)) {
104
             ogs_error("OpenAPI_media_sub_component_rm_parseFromJSON() failed ethf_descs");
105
@@ -210,6 +246,7 @@
106
             OpenAPI_list_add(ethf_descsList, ethf_descsItem);
107
         }
108
     }
109
+    }
110
 
111
     f_num = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "fNum");
112
     if (!f_num) {
113
@@ -223,6 +260,7 @@
114
 
115
     f_descs = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "fDescs");
116
     if (f_descs) {
117
+    if (!cJSON_IsNull(f_descs)) {
118
         cJSON *f_descs_local = NULL;
119
         if (!cJSON_IsArray(f_descs)) {
120
             ogs_error("OpenAPI_media_sub_component_rm_parseFromJSON() failed f_descs");
121
@@ -241,6 +279,7 @@
122
             OpenAPI_list_add(f_descsList, ogs_strdup(f_descs_local->valuestring));
123
         }
124
     }
125
+    }
126
 
127
     f_status = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "fStatus");
128
     if (f_status) {
129
@@ -253,27 +292,33 @@
130
 
131
     mar_bw_dl = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "marBwDl");
132
     if (mar_bw_dl) {
133
+    if (!cJSON_IsNull(mar_bw_dl)) {
134
     if (!cJSON_IsString(mar_bw_dl) && !cJSON_IsNull(mar_bw_dl)) {
135
         ogs_error("OpenAPI_media_sub_component_rm_parseFromJSON() failed mar_bw_dl");
136
         goto end;
137
     }
138
     }
139
+    }
140
 
141
     mar_bw_ul = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "marBwUl");
142
     if (mar_bw_ul) {
143
+    if (!cJSON_IsNull(mar_bw_ul)) {
144
     if (!cJSON_IsString(mar_bw_ul) && !cJSON_IsNull(mar_bw_ul)) {
145
         ogs_error("OpenAPI_media_sub_component_rm_parseFromJSON() failed mar_bw_ul");
146
         goto end;
147
     }
148
     }
149
+    }
150
 
151
     tos_tr_cl = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "tosTrCl");
152
     if (tos_tr_cl) {
153
+    if (!cJSON_IsNull(tos_tr_cl)) {
154
     if (!cJSON_IsString(tos_tr_cl) && !cJSON_IsNull(tos_tr_cl)) {
155
         ogs_error("OpenAPI_media_sub_component_rm_parseFromJSON() failed tos_tr_cl");
156
         goto end;
157
     }
158
     }
159
+    }
160
 
161
     flow_usage = cJSON_GetObjectItemCaseSensitive(media_sub_component_rmJSON, "flowUsage");
162
     if (flow_usage) {
163
@@ -286,13 +331,18 @@
164
 
165
     media_sub_component_rm_local_var = OpenAPI_media_sub_component_rm_create (
166
         af_sig_protocol ? af_sig_protocolVariable : 0,
167
+        ethf_descs && cJSON_IsNull(ethf_descs) ? true : false,
168
         ethf_descs ? ethf_descsList : NULL,
169
         
170
         f_num->valuedouble,
171
+        f_descs && cJSON_IsNull(f_descs) ? true : false,
172
         f_descs ? f_descsList : NULL,
173
         f_status ? f_statusVariable : 0,
174
+        mar_bw_dl && cJSON_IsNull(mar_bw_dl) ? true : false,
175
         mar_bw_dl && !cJSON_IsNull(mar_bw_dl) ? ogs_strdup(mar_bw_dl->valuestring) : NULL,
176
+        mar_bw_ul && cJSON_IsNull(mar_bw_ul) ? true : false,
177
         mar_bw_ul && !cJSON_IsNull(mar_bw_ul) ? ogs_strdup(mar_bw_ul->valuestring) : NULL,
178
+        tos_tr_cl && cJSON_IsNull(tos_tr_cl) ? true : false,
179
         tos_tr_cl && !cJSON_IsNull(tos_tr_cl) ? ogs_strdup(tos_tr_cl->valuestring) : NULL,
180
         flow_usage ? flow_usageVariable : 0
181
     );
182
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/media_sub_component_rm.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/media_sub_component_rm.h Changed
36
 
1
@@ -24,24 +24,34 @@
2
 typedef struct OpenAPI_media_sub_component_rm_s OpenAPI_media_sub_component_rm_t;
3
 typedef struct OpenAPI_media_sub_component_rm_s {
4
     OpenAPI_af_sig_protocol_e af_sig_protocol;
5
+    bool is_ethf_descs_null;
6
     OpenAPI_list_t *ethf_descs;
7
     int f_num;
8
+    bool is_f_descs_null;
9
     OpenAPI_list_t *f_descs;
10
     OpenAPI_flow_status_e f_status;
11
+    bool is_mar_bw_dl_null;
12
     char *mar_bw_dl;
13
+    bool is_mar_bw_ul_null;
14
     char *mar_bw_ul;
15
+    bool is_tos_tr_cl_null;
16
     char *tos_tr_cl;
17
     OpenAPI_flow_usage_e flow_usage;
18
 } OpenAPI_media_sub_component_rm_t;
19
 
20
 OpenAPI_media_sub_component_rm_t *OpenAPI_media_sub_component_rm_create(
21
     OpenAPI_af_sig_protocol_e af_sig_protocol,
22
+    bool is_ethf_descs_null,
23
     OpenAPI_list_t *ethf_descs,
24
     int f_num,
25
+    bool is_f_descs_null,
26
     OpenAPI_list_t *f_descs,
27
     OpenAPI_flow_status_e f_status,
28
+    bool is_mar_bw_dl_null,
29
     char *mar_bw_dl,
30
+    bool is_mar_bw_ul_null,
31
     char *mar_bw_ul,
32
+    bool is_tos_tr_cl_null,
33
     char *tos_tr_cl,
34
     OpenAPI_flow_usage_e flow_usage
35
 );
36
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/patch_item.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/patch_item.c Changed
46
 
1
@@ -8,6 +8,7 @@
2
     OpenAPI_patch_operation_e op,
3
     char *path,
4
     char *from,
5
+    bool is_value_null,
6
     OpenAPI_any_type_t *value
7
 )
8
 {
9
@@ -17,6 +18,7 @@
10
     patch_item_local_var->op = op;
11
     patch_item_local_var->path = path;
12
     patch_item_local_var->from = from;
13
+    patch_item_local_var->is_value_null = is_value_null;
14
     patch_item_local_var->value = value;
15
 
16
     return patch_item_local_var;
17
@@ -91,6 +93,11 @@
18
         ogs_error("OpenAPI_patch_item_convertToJSON() failed value");
19
         goto end;
20
     }
21
+    } else if (patch_item->is_value_null) {
22
+        if (cJSON_AddNullToObject(item, "value") == NULL) {
23
+            ogs_error("OpenAPI_patch_item_convertToJSON() failed value");
24
+            goto end;
25
+        }
26
     }
27
 
28
 end:
29
@@ -138,13 +145,16 @@
30
 
31
     value = cJSON_GetObjectItemCaseSensitive(patch_itemJSON, "value");
32
     if (value) {
33
+    if (!cJSON_IsNull(value)) {
34
     value_local_object = OpenAPI_any_type_parseFromJSON(value);
35
     }
36
+    }
37
 
38
     patch_item_local_var = OpenAPI_patch_item_create (
39
         opVariable,
40
         ogs_strdup(path->valuestring),
41
         from && !cJSON_IsNull(from) ? ogs_strdup(from->valuestring) : NULL,
42
+        value && cJSON_IsNull(value) ? true : false,
43
         value ? value_local_object : NULL
44
     );
45
 
46
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/patch_item.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/patch_item.h Changed
17
 
1
@@ -24,6 +24,7 @@
2
     OpenAPI_patch_operation_e op;
3
     char *path;
4
     char *from;
5
+    bool is_value_null;
6
     OpenAPI_any_type_t *value;
7
 } OpenAPI_patch_item_t;
8
 
9
@@ -31,6 +32,7 @@
10
     OpenAPI_patch_operation_e op,
11
     char *path,
12
     char *from,
13
+    bool is_value_null,
14
     OpenAPI_any_type_t *value
15
 );
16
 void OpenAPI_patch_item_free(OpenAPI_patch_item_t *patch_item);
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pcc_rule.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pcc_rule.c Changed
360
 
1
@@ -21,20 +21,31 @@
2
     OpenAPI_list_t *ref_qos_data,
3
     OpenAPI_list_t *ref_alt_qos_params,
4
     OpenAPI_list_t *ref_tc_data,
5
+    bool is_ref_chg_data_null,
6
     OpenAPI_list_t *ref_chg_data,
7
+    bool is_ref_chg_n3g_data_null,
8
     OpenAPI_list_t *ref_chg_n3g_data,
9
+    bool is_ref_um_data_null,
10
     OpenAPI_list_t *ref_um_data,
11
+    bool is_ref_um_n3g_data_null,
12
     OpenAPI_list_t *ref_um_n3g_data,
13
+    bool is_ref_cond_data_null,
14
     char *ref_cond_data,
15
+    bool is_ref_qos_mon_null,
16
     OpenAPI_list_t *ref_qos_mon,
17
+    bool is_addr_preser_ind_null,
18
     bool is_addr_preser_ind,
19
     int addr_preser_ind,
20
+    bool is_tscai_input_dl_null,
21
     OpenAPI_tscai_input_container_t *tscai_input_dl,
22
+    bool is_tscai_input_ul_null,
23
     OpenAPI_tscai_input_container_t *tscai_input_ul,
24
     bool is_tscai_time_dom,
25
     int tscai_time_dom,
26
     OpenAPI_downlink_data_notification_control_t *dd_notif_ctrl,
27
+    bool is_dd_notif_ctrl2_null,
28
     OpenAPI_downlink_data_notification_control_rm_t *dd_notif_ctrl2,
29
+    bool is_dis_ue_notif_null,
30
     bool is_dis_ue_notif,
31
     int dis_ue_notif,
32
     bool is_pack_filt_all_prec,
33
@@ -60,20 +71,31 @@
34
     pcc_rule_local_var->ref_qos_data = ref_qos_data;
35
     pcc_rule_local_var->ref_alt_qos_params = ref_alt_qos_params;
36
     pcc_rule_local_var->ref_tc_data = ref_tc_data;
37
+    pcc_rule_local_var->is_ref_chg_data_null = is_ref_chg_data_null;
38
     pcc_rule_local_var->ref_chg_data = ref_chg_data;
39
+    pcc_rule_local_var->is_ref_chg_n3g_data_null = is_ref_chg_n3g_data_null;
40
     pcc_rule_local_var->ref_chg_n3g_data = ref_chg_n3g_data;
41
+    pcc_rule_local_var->is_ref_um_data_null = is_ref_um_data_null;
42
     pcc_rule_local_var->ref_um_data = ref_um_data;
43
+    pcc_rule_local_var->is_ref_um_n3g_data_null = is_ref_um_n3g_data_null;
44
     pcc_rule_local_var->ref_um_n3g_data = ref_um_n3g_data;
45
+    pcc_rule_local_var->is_ref_cond_data_null = is_ref_cond_data_null;
46
     pcc_rule_local_var->ref_cond_data = ref_cond_data;
47
+    pcc_rule_local_var->is_ref_qos_mon_null = is_ref_qos_mon_null;
48
     pcc_rule_local_var->ref_qos_mon = ref_qos_mon;
49
+    pcc_rule_local_var->is_addr_preser_ind_null = is_addr_preser_ind_null;
50
     pcc_rule_local_var->is_addr_preser_ind = is_addr_preser_ind;
51
     pcc_rule_local_var->addr_preser_ind = addr_preser_ind;
52
+    pcc_rule_local_var->is_tscai_input_dl_null = is_tscai_input_dl_null;
53
     pcc_rule_local_var->tscai_input_dl = tscai_input_dl;
54
+    pcc_rule_local_var->is_tscai_input_ul_null = is_tscai_input_ul_null;
55
     pcc_rule_local_var->tscai_input_ul = tscai_input_ul;
56
     pcc_rule_local_var->is_tscai_time_dom = is_tscai_time_dom;
57
     pcc_rule_local_var->tscai_time_dom = tscai_time_dom;
58
     pcc_rule_local_var->dd_notif_ctrl = dd_notif_ctrl;
59
+    pcc_rule_local_var->is_dd_notif_ctrl2_null = is_dd_notif_ctrl2_null;
60
     pcc_rule_local_var->dd_notif_ctrl2 = dd_notif_ctrl2;
61
+    pcc_rule_local_var->is_dis_ue_notif_null = is_dis_ue_notif_null;
62
     pcc_rule_local_var->is_dis_ue_notif = is_dis_ue_notif;
63
     pcc_rule_local_var->dis_ue_notif = dis_ue_notif;
64
     pcc_rule_local_var->is_pack_filt_all_prec = is_pack_filt_all_prec;
65
@@ -326,6 +348,11 @@
66
             goto end;
67
         }
68
     }
69
+    } else if (pcc_rule->is_ref_chg_data_null) {
70
+        if (cJSON_AddNullToObject(item, "refChgData") == NULL) {
71
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed ref_chg_data");
72
+            goto end;
73
+        }
74
     }
75
 
76
     if (pcc_rule->ref_chg_n3g_data) {
77
@@ -340,6 +367,11 @@
78
             goto end;
79
         }
80
     }
81
+    } else if (pcc_rule->is_ref_chg_n3g_data_null) {
82
+        if (cJSON_AddNullToObject(item, "refChgN3gData") == NULL) {
83
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed ref_chg_n3g_data");
84
+            goto end;
85
+        }
86
     }
87
 
88
     if (pcc_rule->ref_um_data) {
89
@@ -354,6 +386,11 @@
90
             goto end;
91
         }
92
     }
93
+    } else if (pcc_rule->is_ref_um_data_null) {
94
+        if (cJSON_AddNullToObject(item, "refUmData") == NULL) {
95
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed ref_um_data");
96
+            goto end;
97
+        }
98
     }
99
 
100
     if (pcc_rule->ref_um_n3g_data) {
101
@@ -368,6 +405,11 @@
102
             goto end;
103
         }
104
     }
105
+    } else if (pcc_rule->is_ref_um_n3g_data_null) {
106
+        if (cJSON_AddNullToObject(item, "refUmN3gData") == NULL) {
107
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed ref_um_n3g_data");
108
+            goto end;
109
+        }
110
     }
111
 
112
     if (pcc_rule->ref_cond_data) {
113
@@ -375,6 +417,11 @@
114
         ogs_error("OpenAPI_pcc_rule_convertToJSON() failed ref_cond_data");
115
         goto end;
116
     }
117
+    } else if (pcc_rule->is_ref_cond_data_null) {
118
+        if (cJSON_AddNullToObject(item, "refCondData") == NULL) {
119
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed ref_cond_data");
120
+            goto end;
121
+        }
122
     }
123
 
124
     if (pcc_rule->ref_qos_mon) {
125
@@ -389,6 +436,11 @@
126
             goto end;
127
         }
128
     }
129
+    } else if (pcc_rule->is_ref_qos_mon_null) {
130
+        if (cJSON_AddNullToObject(item, "refQosMon") == NULL) {
131
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed ref_qos_mon");
132
+            goto end;
133
+        }
134
     }
135
 
136
     if (pcc_rule->is_addr_preser_ind) {
137
@@ -396,6 +448,11 @@
138
         ogs_error("OpenAPI_pcc_rule_convertToJSON() failed addr_preser_ind");
139
         goto end;
140
     }
141
+    } else if (pcc_rule->is_addr_preser_ind_null) {
142
+        if (cJSON_AddNullToObject(item, "addrPreserInd") == NULL) {
143
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed addr_preser_ind");
144
+            goto end;
145
+        }
146
     }
147
 
148
     if (pcc_rule->tscai_input_dl) {
149
@@ -409,6 +466,11 @@
150
         ogs_error("OpenAPI_pcc_rule_convertToJSON() failed tscai_input_dl");
151
         goto end;
152
     }
153
+    } else if (pcc_rule->is_tscai_input_dl_null) {
154
+        if (cJSON_AddNullToObject(item, "tscaiInputDl") == NULL) {
155
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed tscai_input_dl");
156
+            goto end;
157
+        }
158
     }
159
 
160
     if (pcc_rule->tscai_input_ul) {
161
@@ -422,6 +484,11 @@
162
         ogs_error("OpenAPI_pcc_rule_convertToJSON() failed tscai_input_ul");
163
         goto end;
164
     }
165
+    } else if (pcc_rule->is_tscai_input_ul_null) {
166
+        if (cJSON_AddNullToObject(item, "tscaiInputUl") == NULL) {
167
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed tscai_input_ul");
168
+            goto end;
169
+        }
170
     }
171
 
172
     if (pcc_rule->is_tscai_time_dom) {
173
@@ -455,6 +522,11 @@
174
         ogs_error("OpenAPI_pcc_rule_convertToJSON() failed dd_notif_ctrl2");
175
         goto end;
176
     }
177
+    } else if (pcc_rule->is_dd_notif_ctrl2_null) {
178
+        if (cJSON_AddNullToObject(item, "ddNotifCtrl2") == NULL) {
179
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed dd_notif_ctrl2");
180
+            goto end;
181
+        }
182
     }
183
 
184
     if (pcc_rule->is_dis_ue_notif) {
185
@@ -462,6 +534,11 @@
186
         ogs_error("OpenAPI_pcc_rule_convertToJSON() failed dis_ue_notif");
187
         goto end;
188
     }
189
+    } else if (pcc_rule->is_dis_ue_notif_null) {
190
+        if (cJSON_AddNullToObject(item, "disUeNotif") == NULL) {
191
+            ogs_error("OpenAPI_pcc_rule_convertToJSON() failed dis_ue_notif");
192
+            goto end;
193
+        }
194
     }
195
 
196
     if (pcc_rule->is_pack_filt_all_prec) {
197
@@ -675,6 +752,7 @@
198
 
199
     ref_chg_data = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "refChgData");
200
     if (ref_chg_data) {
201
+    if (!cJSON_IsNull(ref_chg_data)) {
202
         cJSON *ref_chg_data_local = NULL;
203
         if (!cJSON_IsArray(ref_chg_data)) {
204
             ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed ref_chg_data");
205
@@ -693,9 +771,11 @@
206
             OpenAPI_list_add(ref_chg_dataList, ogs_strdup(ref_chg_data_local->valuestring));
207
         }
208
     }
209
+    }
210
 
211
     ref_chg_n3g_data = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "refChgN3gData");
212
     if (ref_chg_n3g_data) {
213
+    if (!cJSON_IsNull(ref_chg_n3g_data)) {
214
         cJSON *ref_chg_n3g_data_local = NULL;
215
         if (!cJSON_IsArray(ref_chg_n3g_data)) {
216
             ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed ref_chg_n3g_data");
217
@@ -714,9 +794,11 @@
218
             OpenAPI_list_add(ref_chg_n3g_dataList, ogs_strdup(ref_chg_n3g_data_local->valuestring));
219
         }
220
     }
221
+    }
222
 
223
     ref_um_data = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "refUmData");
224
     if (ref_um_data) {
225
+    if (!cJSON_IsNull(ref_um_data)) {
226
         cJSON *ref_um_data_local = NULL;
227
         if (!cJSON_IsArray(ref_um_data)) {
228
             ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed ref_um_data");
229
@@ -735,9 +817,11 @@
230
             OpenAPI_list_add(ref_um_dataList, ogs_strdup(ref_um_data_local->valuestring));
231
         }
232
     }
233
+    }
234
 
235
     ref_um_n3g_data = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "refUmN3gData");
236
     if (ref_um_n3g_data) {
237
+    if (!cJSON_IsNull(ref_um_n3g_data)) {
238
         cJSON *ref_um_n3g_data_local = NULL;
239
         if (!cJSON_IsArray(ref_um_n3g_data)) {
240
             ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed ref_um_n3g_data");
241
@@ -756,17 +840,21 @@
242
             OpenAPI_list_add(ref_um_n3g_dataList, ogs_strdup(ref_um_n3g_data_local->valuestring));
243
         }
244
     }
245
+    }
246
 
247
     ref_cond_data = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "refCondData");
248
     if (ref_cond_data) {
249
+    if (!cJSON_IsNull(ref_cond_data)) {
250
     if (!cJSON_IsString(ref_cond_data) && !cJSON_IsNull(ref_cond_data)) {
251
         ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed ref_cond_data");
252
         goto end;
253
     }
254
     }
255
+    }
256
 
257
     ref_qos_mon = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "refQosMon");
258
     if (ref_qos_mon) {
259
+    if (!cJSON_IsNull(ref_qos_mon)) {
260
         cJSON *ref_qos_mon_local = NULL;
261
         if (!cJSON_IsArray(ref_qos_mon)) {
262
             ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed ref_qos_mon");
263
@@ -785,32 +873,39 @@
264
             OpenAPI_list_add(ref_qos_monList, ogs_strdup(ref_qos_mon_local->valuestring));
265
         }
266
     }
267
+    }
268
 
269
     addr_preser_ind = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "addrPreserInd");
270
     if (addr_preser_ind) {
271
+    if (!cJSON_IsNull(addr_preser_ind)) {
272
     if (!cJSON_IsBool(addr_preser_ind)) {
273
         ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed addr_preser_ind");
274
         goto end;
275
     }
276
     }
277
+    }
278
 
279
     tscai_input_dl = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "tscaiInputDl");
280
     if (tscai_input_dl) {
281
+    if (!cJSON_IsNull(tscai_input_dl)) {
282
     tscai_input_dl_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_dl);
283
     if (!tscai_input_dl_local_nonprim) {
284
         ogs_error("OpenAPI_tscai_input_container_parseFromJSON failed tscai_input_dl");
285
         goto end;
286
     }
287
     }
288
+    }
289
 
290
     tscai_input_ul = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "tscaiInputUl");
291
     if (tscai_input_ul) {
292
+    if (!cJSON_IsNull(tscai_input_ul)) {
293
     tscai_input_ul_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_ul);
294
     if (!tscai_input_ul_local_nonprim) {
295
         ogs_error("OpenAPI_tscai_input_container_parseFromJSON failed tscai_input_ul");
296
         goto end;
297
     }
298
     }
299
+    }
300
 
301
     tscai_time_dom = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "tscaiTimeDom");
302
     if (tscai_time_dom) {
303
@@ -831,20 +926,24 @@
304
 
305
     dd_notif_ctrl2 = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "ddNotifCtrl2");
306
     if (dd_notif_ctrl2) {
307
+    if (!cJSON_IsNull(dd_notif_ctrl2)) {
308
     dd_notif_ctrl2_local_nonprim = OpenAPI_downlink_data_notification_control_rm_parseFromJSON(dd_notif_ctrl2);
309
     if (!dd_notif_ctrl2_local_nonprim) {
310
         ogs_error("OpenAPI_downlink_data_notification_control_rm_parseFromJSON failed dd_notif_ctrl2");
311
         goto end;
312
     }
313
     }
314
+    }
315
 
316
     dis_ue_notif = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "disUeNotif");
317
     if (dis_ue_notif) {
318
+    if (!cJSON_IsNull(dis_ue_notif)) {
319
     if (!cJSON_IsBool(dis_ue_notif)) {
320
         ogs_error("OpenAPI_pcc_rule_parseFromJSON() failed dis_ue_notif");
321
         goto end;
322
     }
323
     }
324
+    }
325
 
326
     pack_filt_all_prec = cJSON_GetObjectItemCaseSensitive(pcc_ruleJSON, "packFiltAllPrec");
327
     if (pack_filt_all_prec) {
328
@@ -871,20 +970,31 @@
329
         ref_qos_data ? ref_qos_dataList : NULL,
330
         ref_alt_qos_params ? ref_alt_qos_paramsList : NULL,
331
         ref_tc_data ? ref_tc_dataList : NULL,
332
+        ref_chg_data && cJSON_IsNull(ref_chg_data) ? true : false,
333
         ref_chg_data ? ref_chg_dataList : NULL,
334
+        ref_chg_n3g_data && cJSON_IsNull(ref_chg_n3g_data) ? true : false,
335
         ref_chg_n3g_data ? ref_chg_n3g_dataList : NULL,
336
+        ref_um_data && cJSON_IsNull(ref_um_data) ? true : false,
337
         ref_um_data ? ref_um_dataList : NULL,
338
+        ref_um_n3g_data && cJSON_IsNull(ref_um_n3g_data) ? true : false,
339
         ref_um_n3g_data ? ref_um_n3g_dataList : NULL,
340
+        ref_cond_data && cJSON_IsNull(ref_cond_data) ? true : false,
341
         ref_cond_data && !cJSON_IsNull(ref_cond_data) ? ogs_strdup(ref_cond_data->valuestring) : NULL,
342
+        ref_qos_mon && cJSON_IsNull(ref_qos_mon) ? true : false,
343
         ref_qos_mon ? ref_qos_monList : NULL,
344
+        addr_preser_ind && cJSON_IsNull(addr_preser_ind) ? true : false,
345
         addr_preser_ind ? true : false,
346
         addr_preser_ind ? addr_preser_ind->valueint : 0,
347
+        tscai_input_dl && cJSON_IsNull(tscai_input_dl) ? true : false,
348
         tscai_input_dl ? tscai_input_dl_local_nonprim : NULL,
349
+        tscai_input_ul && cJSON_IsNull(tscai_input_ul) ? true : false,
350
         tscai_input_ul ? tscai_input_ul_local_nonprim : NULL,
351
         tscai_time_dom ? true : false,
352
         tscai_time_dom ? tscai_time_dom->valuedouble : 0,
353
         dd_notif_ctrl ? dd_notif_ctrl_local_nonprim : NULL,
354
+        dd_notif_ctrl2 && cJSON_IsNull(dd_notif_ctrl2) ? true : false,
355
         dd_notif_ctrl2 ? dd_notif_ctrl2_local_nonprim : NULL,
356
+        dis_ue_notif && cJSON_IsNull(dis_ue_notif) ? true : false,
357
         dis_ue_notif ? true : false,
358
         dis_ue_notif ? dis_ue_notif->valueint : 0,
359
         pack_filt_all_prec ? true : false,
360
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pcc_rule.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pcc_rule.h Changed
65
 
1
@@ -40,20 +40,31 @@
2
     OpenAPI_list_t *ref_qos_data;
3
     OpenAPI_list_t *ref_alt_qos_params;
4
     OpenAPI_list_t *ref_tc_data;
5
+    bool is_ref_chg_data_null;
6
     OpenAPI_list_t *ref_chg_data;
7
+    bool is_ref_chg_n3g_data_null;
8
     OpenAPI_list_t *ref_chg_n3g_data;
9
+    bool is_ref_um_data_null;
10
     OpenAPI_list_t *ref_um_data;
11
+    bool is_ref_um_n3g_data_null;
12
     OpenAPI_list_t *ref_um_n3g_data;
13
+    bool is_ref_cond_data_null;
14
     char *ref_cond_data;
15
+    bool is_ref_qos_mon_null;
16
     OpenAPI_list_t *ref_qos_mon;
17
+    bool is_addr_preser_ind_null;
18
     bool is_addr_preser_ind;
19
     int addr_preser_ind;
20
+    bool is_tscai_input_dl_null;
21
     struct OpenAPI_tscai_input_container_s *tscai_input_dl;
22
+    bool is_tscai_input_ul_null;
23
     struct OpenAPI_tscai_input_container_s *tscai_input_ul;
24
     bool is_tscai_time_dom;
25
     int tscai_time_dom;
26
     struct OpenAPI_downlink_data_notification_control_s *dd_notif_ctrl;
27
+    bool is_dd_notif_ctrl2_null;
28
     struct OpenAPI_downlink_data_notification_control_rm_s *dd_notif_ctrl2;
29
+    bool is_dis_ue_notif_null;
30
     bool is_dis_ue_notif;
31
     int dis_ue_notif;
32
     bool is_pack_filt_all_prec;
33
@@ -77,20 +88,31 @@
34
     OpenAPI_list_t *ref_qos_data,
35
     OpenAPI_list_t *ref_alt_qos_params,
36
     OpenAPI_list_t *ref_tc_data,
37
+    bool is_ref_chg_data_null,
38
     OpenAPI_list_t *ref_chg_data,
39
+    bool is_ref_chg_n3g_data_null,
40
     OpenAPI_list_t *ref_chg_n3g_data,
41
+    bool is_ref_um_data_null,
42
     OpenAPI_list_t *ref_um_data,
43
+    bool is_ref_um_n3g_data_null,
44
     OpenAPI_list_t *ref_um_n3g_data,
45
+    bool is_ref_cond_data_null,
46
     char *ref_cond_data,
47
+    bool is_ref_qos_mon_null,
48
     OpenAPI_list_t *ref_qos_mon,
49
+    bool is_addr_preser_ind_null,
50
     bool is_addr_preser_ind,
51
     int addr_preser_ind,
52
+    bool is_tscai_input_dl_null,
53
     OpenAPI_tscai_input_container_t *tscai_input_dl,
54
+    bool is_tscai_input_ul_null,
55
     OpenAPI_tscai_input_container_t *tscai_input_ul,
56
     bool is_tscai_time_dom,
57
     int tscai_time_dom,
58
     OpenAPI_downlink_data_notification_control_t *dd_notif_ctrl,
59
+    bool is_dd_notif_ctrl2_null,
60
     OpenAPI_downlink_data_notification_control_rm_t *dd_notif_ctrl2,
61
+    bool is_dis_ue_notif_null,
62
     bool is_dis_ue_notif,
63
     int dis_ue_notif,
64
     bool is_pack_filt_all_prec,
65
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pcf_binding_patch.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pcf_binding_patch.c Changed
195
 
1
@@ -5,11 +5,17 @@
2
 #include "pcf_binding_patch.h"
3
 
4
 OpenAPI_pcf_binding_patch_t *OpenAPI_pcf_binding_patch_create(
5
+    bool is_ipv4_addr_null,
6
     char *ipv4_addr,
7
+    bool is_ip_domain_null,
8
     char *ip_domain,
9
+    bool is_ipv6_prefix_null,
10
     char *ipv6_prefix,
11
+    bool is_add_ipv6_prefixes_null,
12
     OpenAPI_list_t *add_ipv6_prefixes,
13
+    bool is_mac_addr48_null,
14
     char *mac_addr48,
15
+    bool is_add_mac_addrs_null,
16
     OpenAPI_list_t *add_mac_addrs,
17
     char *pcf_id,
18
     char *pcf_fqdn,
19
@@ -21,11 +27,17 @@
20
     OpenAPI_pcf_binding_patch_t *pcf_binding_patch_local_var = ogs_malloc(sizeof(OpenAPI_pcf_binding_patch_t));
21
     ogs_assert(pcf_binding_patch_local_var);
22
 
23
+    pcf_binding_patch_local_var->is_ipv4_addr_null = is_ipv4_addr_null;
24
     pcf_binding_patch_local_var->ipv4_addr = ipv4_addr;
25
+    pcf_binding_patch_local_var->is_ip_domain_null = is_ip_domain_null;
26
     pcf_binding_patch_local_var->ip_domain = ip_domain;
27
+    pcf_binding_patch_local_var->is_ipv6_prefix_null = is_ipv6_prefix_null;
28
     pcf_binding_patch_local_var->ipv6_prefix = ipv6_prefix;
29
+    pcf_binding_patch_local_var->is_add_ipv6_prefixes_null = is_add_ipv6_prefixes_null;
30
     pcf_binding_patch_local_var->add_ipv6_prefixes = add_ipv6_prefixes;
31
+    pcf_binding_patch_local_var->is_mac_addr48_null = is_mac_addr48_null;
32
     pcf_binding_patch_local_var->mac_addr48 = mac_addr48;
33
+    pcf_binding_patch_local_var->is_add_mac_addrs_null = is_add_mac_addrs_null;
34
     pcf_binding_patch_local_var->add_mac_addrs = add_mac_addrs;
35
     pcf_binding_patch_local_var->pcf_id = pcf_id;
36
     pcf_binding_patch_local_var->pcf_fqdn = pcf_fqdn;
37
@@ -115,6 +127,11 @@
38
         ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed ipv4_addr");
39
         goto end;
40
     }
41
+    } else if (pcf_binding_patch->is_ipv4_addr_null) {
42
+        if (cJSON_AddNullToObject(item, "ipv4Addr") == NULL) {
43
+            ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed ipv4_addr");
44
+            goto end;
45
+        }
46
     }
47
 
48
     if (pcf_binding_patch->ip_domain) {
49
@@ -122,6 +139,11 @@
50
         ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed ip_domain");
51
         goto end;
52
     }
53
+    } else if (pcf_binding_patch->is_ip_domain_null) {
54
+        if (cJSON_AddNullToObject(item, "ipDomain") == NULL) {
55
+            ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed ip_domain");
56
+            goto end;
57
+        }
58
     }
59
 
60
     if (pcf_binding_patch->ipv6_prefix) {
61
@@ -129,6 +151,11 @@
62
         ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed ipv6_prefix");
63
         goto end;
64
     }
65
+    } else if (pcf_binding_patch->is_ipv6_prefix_null) {
66
+        if (cJSON_AddNullToObject(item, "ipv6Prefix") == NULL) {
67
+            ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed ipv6_prefix");
68
+            goto end;
69
+        }
70
     }
71
 
72
     if (pcf_binding_patch->add_ipv6_prefixes) {
73
@@ -143,6 +170,11 @@
74
             goto end;
75
         }
76
     }
77
+    } else if (pcf_binding_patch->is_add_ipv6_prefixes_null) {
78
+        if (cJSON_AddNullToObject(item, "addIpv6Prefixes") == NULL) {
79
+            ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed add_ipv6_prefixes");
80
+            goto end;
81
+        }
82
     }
83
 
84
     if (pcf_binding_patch->mac_addr48) {
85
@@ -150,6 +182,11 @@
86
         ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed mac_addr48");
87
         goto end;
88
     }
89
+    } else if (pcf_binding_patch->is_mac_addr48_null) {
90
+        if (cJSON_AddNullToObject(item, "macAddr48") == NULL) {
91
+            ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed mac_addr48");
92
+            goto end;
93
+        }
94
     }
95
 
96
     if (pcf_binding_patch->add_mac_addrs) {
97
@@ -164,6 +201,11 @@
98
             goto end;
99
         }
100
     }
101
+    } else if (pcf_binding_patch->is_add_mac_addrs_null) {
102
+        if (cJSON_AddNullToObject(item, "addMacAddrs") == NULL) {
103
+            ogs_error("OpenAPI_pcf_binding_patch_convertToJSON() failed add_mac_addrs");
104
+            goto end;
105
+        }
106
     }
107
 
108
     if (pcf_binding_patch->pcf_id) {
109
@@ -234,30 +276,37 @@
110
     cJSON *pcf_diam_realm = NULL;
111
     ipv4_addr = cJSON_GetObjectItemCaseSensitive(pcf_binding_patchJSON, "ipv4Addr");
112
     if (ipv4_addr) {
113
+    if (!cJSON_IsNull(ipv4_addr)) {
114
     if (!cJSON_IsString(ipv4_addr) && !cJSON_IsNull(ipv4_addr)) {
115
         ogs_error("OpenAPI_pcf_binding_patch_parseFromJSON() failed ipv4_addr");
116
         goto end;
117
     }
118
     }
119
+    }
120
 
121
     ip_domain = cJSON_GetObjectItemCaseSensitive(pcf_binding_patchJSON, "ipDomain");
122
     if (ip_domain) {
123
+    if (!cJSON_IsNull(ip_domain)) {
124
     if (!cJSON_IsString(ip_domain) && !cJSON_IsNull(ip_domain)) {
125
         ogs_error("OpenAPI_pcf_binding_patch_parseFromJSON() failed ip_domain");
126
         goto end;
127
     }
128
     }
129
+    }
130
 
131
     ipv6_prefix = cJSON_GetObjectItemCaseSensitive(pcf_binding_patchJSON, "ipv6Prefix");
132
     if (ipv6_prefix) {
133
+    if (!cJSON_IsNull(ipv6_prefix)) {
134
     if (!cJSON_IsString(ipv6_prefix) && !cJSON_IsNull(ipv6_prefix)) {
135
         ogs_error("OpenAPI_pcf_binding_patch_parseFromJSON() failed ipv6_prefix");
136
         goto end;
137
     }
138
     }
139
+    }
140
 
141
     add_ipv6_prefixes = cJSON_GetObjectItemCaseSensitive(pcf_binding_patchJSON, "addIpv6Prefixes");
142
     if (add_ipv6_prefixes) {
143
+    if (!cJSON_IsNull(add_ipv6_prefixes)) {
144
         cJSON *add_ipv6_prefixes_local = NULL;
145
         if (!cJSON_IsArray(add_ipv6_prefixes)) {
146
             ogs_error("OpenAPI_pcf_binding_patch_parseFromJSON() failed add_ipv6_prefixes");
147
@@ -276,17 +325,21 @@
148
             OpenAPI_list_add(add_ipv6_prefixesList, ogs_strdup(add_ipv6_prefixes_local->valuestring));
149
         }
150
     }
151
+    }
152
 
153
     mac_addr48 = cJSON_GetObjectItemCaseSensitive(pcf_binding_patchJSON, "macAddr48");
154
     if (mac_addr48) {
155
+    if (!cJSON_IsNull(mac_addr48)) {
156
     if (!cJSON_IsString(mac_addr48) && !cJSON_IsNull(mac_addr48)) {
157
         ogs_error("OpenAPI_pcf_binding_patch_parseFromJSON() failed mac_addr48");
158
         goto end;
159
     }
160
     }
161
+    }
162
 
163
     add_mac_addrs = cJSON_GetObjectItemCaseSensitive(pcf_binding_patchJSON, "addMacAddrs");
164
     if (add_mac_addrs) {
165
+    if (!cJSON_IsNull(add_mac_addrs)) {
166
         cJSON *add_mac_addrs_local = NULL;
167
         if (!cJSON_IsArray(add_mac_addrs)) {
168
             ogs_error("OpenAPI_pcf_binding_patch_parseFromJSON() failed add_mac_addrs");
169
@@ -305,6 +358,7 @@
170
             OpenAPI_list_add(add_mac_addrsList, ogs_strdup(add_mac_addrs_local->valuestring));
171
         }
172
     }
173
+    }
174
 
175
     pcf_id = cJSON_GetObjectItemCaseSensitive(pcf_binding_patchJSON, "pcfId");
176
     if (pcf_id) {
177
@@ -363,11 +417,17 @@
178
     }
179
 
180
     pcf_binding_patch_local_var = OpenAPI_pcf_binding_patch_create (
181
+        ipv4_addr && cJSON_IsNull(ipv4_addr) ? true : false,
182
         ipv4_addr && !cJSON_IsNull(ipv4_addr) ? ogs_strdup(ipv4_addr->valuestring) : NULL,
183
+        ip_domain && cJSON_IsNull(ip_domain) ? true : false,
184
         ip_domain && !cJSON_IsNull(ip_domain) ? ogs_strdup(ip_domain->valuestring) : NULL,
185
+        ipv6_prefix && cJSON_IsNull(ipv6_prefix) ? true : false,
186
         ipv6_prefix && !cJSON_IsNull(ipv6_prefix) ? ogs_strdup(ipv6_prefix->valuestring) : NULL,
187
+        add_ipv6_prefixes && cJSON_IsNull(add_ipv6_prefixes) ? true : false,
188
         add_ipv6_prefixes ? add_ipv6_prefixesList : NULL,
189
+        mac_addr48 && cJSON_IsNull(mac_addr48) ? true : false,
190
         mac_addr48 && !cJSON_IsNull(mac_addr48) ? ogs_strdup(mac_addr48->valuestring) : NULL,
191
+        add_mac_addrs && cJSON_IsNull(add_mac_addrs) ? true : false,
192
         add_mac_addrs ? add_mac_addrsList : NULL,
193
         pcf_id && !cJSON_IsNull(pcf_id) ? ogs_strdup(pcf_id->valuestring) : NULL,
194
         pcf_fqdn && !cJSON_IsNull(pcf_fqdn) ? ogs_strdup(pcf_fqdn->valuestring) : NULL,
195
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pcf_binding_patch.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pcf_binding_patch.h Changed
37
 
1
@@ -20,11 +20,17 @@
2
 
3
 typedef struct OpenAPI_pcf_binding_patch_s OpenAPI_pcf_binding_patch_t;
4
 typedef struct OpenAPI_pcf_binding_patch_s {
5
+    bool is_ipv4_addr_null;
6
     char *ipv4_addr;
7
+    bool is_ip_domain_null;
8
     char *ip_domain;
9
+    bool is_ipv6_prefix_null;
10
     char *ipv6_prefix;
11
+    bool is_add_ipv6_prefixes_null;
12
     OpenAPI_list_t *add_ipv6_prefixes;
13
+    bool is_mac_addr48_null;
14
     char *mac_addr48;
15
+    bool is_add_mac_addrs_null;
16
     OpenAPI_list_t *add_mac_addrs;
17
     char *pcf_id;
18
     char *pcf_fqdn;
19
@@ -34,11 +40,17 @@
20
 } OpenAPI_pcf_binding_patch_t;
21
 
22
 OpenAPI_pcf_binding_patch_t *OpenAPI_pcf_binding_patch_create(
23
+    bool is_ipv4_addr_null,
24
     char *ipv4_addr,
25
+    bool is_ip_domain_null,
26
     char *ip_domain,
27
+    bool is_ipv6_prefix_null,
28
     char *ipv6_prefix,
29
+    bool is_add_ipv6_prefixes_null,
30
     OpenAPI_list_t *add_ipv6_prefixes,
31
+    bool is_mac_addr48_null,
32
     char *mac_addr48,
33
+    bool is_add_mac_addrs_null,
34
     OpenAPI_list_t *add_mac_addrs,
35
     char *pcf_id,
36
     char *pcf_fqdn,
37
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pcf_for_pdu_session_info.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pcf_for_pdu_session_info.c Changed
51
 
1
@@ -9,6 +9,7 @@
2
     OpenAPI_snssai_t *snssai,
3
     char *pcf_fqdn,
4
     OpenAPI_list_t *pcf_ip_end_points,
5
+    bool is_ipv4_addr_null,
6
     char *ipv4_addr,
7
     char *ip_domain,
8
     OpenAPI_list_t *ipv6_prefixes,
9
@@ -25,6 +26,7 @@
10
     pcf_for_pdu_session_info_local_var->snssai = snssai;
11
     pcf_for_pdu_session_info_local_var->pcf_fqdn = pcf_fqdn;
12
     pcf_for_pdu_session_info_local_var->pcf_ip_end_points = pcf_ip_end_points;
13
+    pcf_for_pdu_session_info_local_var->is_ipv4_addr_null = is_ipv4_addr_null;
14
     pcf_for_pdu_session_info_local_var->ipv4_addr = ipv4_addr;
15
     pcf_for_pdu_session_info_local_var->ip_domain = ip_domain;
16
     pcf_for_pdu_session_info_local_var->ipv6_prefixes = ipv6_prefixes;
17
@@ -158,6 +160,11 @@
18
         ogs_error("OpenAPI_pcf_for_pdu_session_info_convertToJSON() failed ipv4_addr");
19
         goto end;
20
     }
21
+    } else if (pcf_for_pdu_session_info->is_ipv4_addr_null) {
22
+        if (cJSON_AddNullToObject(item, "ipv4Addr") == NULL) {
23
+            ogs_error("OpenAPI_pcf_for_pdu_session_info_convertToJSON() failed ipv4_addr");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (pcf_for_pdu_session_info->ip_domain) {
29
@@ -295,11 +302,13 @@
30
 
31
     ipv4_addr = cJSON_GetObjectItemCaseSensitive(pcf_for_pdu_session_infoJSON, "ipv4Addr");
32
     if (ipv4_addr) {
33
+    if (!cJSON_IsNull(ipv4_addr)) {
34
     if (!cJSON_IsString(ipv4_addr) && !cJSON_IsNull(ipv4_addr)) {
35
         ogs_error("OpenAPI_pcf_for_pdu_session_info_parseFromJSON() failed ipv4_addr");
36
         goto end;
37
     }
38
     }
39
+    }
40
 
41
     ip_domain = cJSON_GetObjectItemCaseSensitive(pcf_for_pdu_session_infoJSON, "ipDomain");
42
     if (ip_domain) {
43
@@ -381,6 +390,7 @@
44
         snssai_local_nonprim,
45
         pcf_fqdn && !cJSON_IsNull(pcf_fqdn) ? ogs_strdup(pcf_fqdn->valuestring) : NULL,
46
         pcf_ip_end_points ? pcf_ip_end_pointsList : NULL,
47
+        ipv4_addr && cJSON_IsNull(ipv4_addr) ? true : false,
48
         ipv4_addr && !cJSON_IsNull(ipv4_addr) ? ogs_strdup(ipv4_addr->valuestring) : NULL,
49
         ip_domain && !cJSON_IsNull(ip_domain) ? ogs_strdup(ip_domain->valuestring) : NULL,
50
         ipv6_prefixes ? ipv6_prefixesList : NULL,
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pcf_for_pdu_session_info.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pcf_for_pdu_session_info.h Changed
17
 
1
@@ -26,6 +26,7 @@
2
     struct OpenAPI_snssai_s *snssai;
3
     char *pcf_fqdn;
4
     OpenAPI_list_t *pcf_ip_end_points;
5
+    bool is_ipv4_addr_null;
6
     char *ipv4_addr;
7
     char *ip_domain;
8
     OpenAPI_list_t *ipv6_prefixes;
9
@@ -40,6 +41,7 @@
10
     OpenAPI_snssai_t *snssai,
11
     char *pcf_fqdn,
12
     OpenAPI_list_t *pcf_ip_end_points,
13
+    bool is_ipv4_addr_null,
14
     char *ipv4_addr,
15
     char *ip_domain,
16
     OpenAPI_list_t *ipv6_prefixes,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.c Changed
52
 
1
@@ -87,6 +87,7 @@
2
     char *old_pdu_session_ref,
3
     bool is_sm_policy_notify_ind,
4
     int sm_policy_notify_ind,
5
+    bool is_pcf_ue_callback_info_null,
6
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
7
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat,
8
     bool is_upip_supported,
9
@@ -181,6 +182,7 @@
10
     pdu_session_create_data_local_var->old_pdu_session_ref = old_pdu_session_ref;
11
     pdu_session_create_data_local_var->is_sm_policy_notify_ind = is_sm_policy_notify_ind;
12
     pdu_session_create_data_local_var->sm_policy_notify_ind = sm_policy_notify_ind;
13
+    pdu_session_create_data_local_var->is_pcf_ue_callback_info_null = is_pcf_ue_callback_info_null;
14
     pdu_session_create_data_local_var->pcf_ue_callback_info = pcf_ue_callback_info;
15
     pdu_session_create_data_local_var->satellite_backhaul_cat = satellite_backhaul_cat;
16
     pdu_session_create_data_local_var->is_upip_supported = is_upip_supported;
17
@@ -1049,6 +1051,11 @@
18
         ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed pcf_ue_callback_info");
19
         goto end;
20
     }
21
+    } else if (pdu_session_create_data->is_pcf_ue_callback_info_null) {
22
+        if (cJSON_AddNullToObject(item, "pcfUeCallbackInfo") == NULL) {
23
+            ogs_error("OpenAPI_pdu_session_create_data_convertToJSON() failed pcf_ue_callback_info");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (pdu_session_create_data->satellite_backhaul_cat != OpenAPI_satellite_backhaul_category_NULL) {
29
@@ -1829,12 +1836,14 @@
30
 
31
     pcf_ue_callback_info = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "pcfUeCallbackInfo");
32
     if (pcf_ue_callback_info) {
33
+    if (!cJSON_IsNull(pcf_ue_callback_info)) {
34
     pcf_ue_callback_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_callback_info);
35
     if (!pcf_ue_callback_info_local_nonprim) {
36
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_callback_info");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     satellite_backhaul_cat = cJSON_GetObjectItemCaseSensitive(pdu_session_create_dataJSON, "satelliteBackhaulCat");
43
     if (satellite_backhaul_cat) {
44
@@ -1953,6 +1962,7 @@
45
         old_pdu_session_ref && !cJSON_IsNull(old_pdu_session_ref) ? ogs_strdup(old_pdu_session_ref->valuestring) : NULL,
46
         sm_policy_notify_ind ? true : false,
47
         sm_policy_notify_ind ? sm_policy_notify_ind->valueint : 0,
48
+        pcf_ue_callback_info && cJSON_IsNull(pcf_ue_callback_info) ? true : false,
49
         pcf_ue_callback_info ? pcf_ue_callback_info_local_nonprim : NULL,
50
         satellite_backhaul_cat ? satellite_backhaul_catVariable : 0,
51
         upip_supported ? true : false,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pdu_session_create_data.h Changed
17
 
1
@@ -124,6 +124,7 @@
2
     char *old_pdu_session_ref;
3
     bool is_sm_policy_notify_ind;
4
     int sm_policy_notify_ind;
5
+    bool is_pcf_ue_callback_info_null;
6
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_callback_info;
7
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat;
8
     bool is_upip_supported;
9
@@ -216,6 +217,7 @@
10
     char *old_pdu_session_ref,
11
     bool is_sm_policy_notify_ind,
12
     int sm_policy_notify_ind,
13
+    bool is_pcf_ue_callback_info_null,
14
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
15
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat,
16
     bool is_upip_supported,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_association.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_association.c Changed
156
 
1
@@ -13,13 +13,17 @@
2
     int rfsp,
3
     bool is_target_rfsp,
4
     int target_rfsp,
5
+    bool is_smf_sel_info_null,
6
     OpenAPI_smf_selection_data_t *smf_sel_info,
7
     OpenAPI_ambr_t *ue_ambr,
8
     OpenAPI_list_t *ue_slice_mbrs,
9
     OpenAPI_list_t* pras,
10
     char *supp_feat,
11
+    bool is_pcf_ue_info_null,
12
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
13
+    bool is_match_pdus_null,
14
     OpenAPI_list_t *match_pdus,
15
+    bool is_as_time_dis_param_null,
16
     OpenAPI_as_time_distribution_param_t *as_time_dis_param
17
 )
18
 {
19
@@ -34,13 +38,17 @@
20
     policy_association_local_var->rfsp = rfsp;
21
     policy_association_local_var->is_target_rfsp = is_target_rfsp;
22
     policy_association_local_var->target_rfsp = target_rfsp;
23
+    policy_association_local_var->is_smf_sel_info_null = is_smf_sel_info_null;
24
     policy_association_local_var->smf_sel_info = smf_sel_info;
25
     policy_association_local_var->ue_ambr = ue_ambr;
26
     policy_association_local_var->ue_slice_mbrs = ue_slice_mbrs;
27
     policy_association_local_var->pras = pras;
28
     policy_association_local_var->supp_feat = supp_feat;
29
+    policy_association_local_var->is_pcf_ue_info_null = is_pcf_ue_info_null;
30
     policy_association_local_var->pcf_ue_info = pcf_ue_info;
31
+    policy_association_local_var->is_match_pdus_null = is_match_pdus_null;
32
     policy_association_local_var->match_pdus = match_pdus;
33
+    policy_association_local_var->is_as_time_dis_param_null = is_as_time_dis_param_null;
34
     policy_association_local_var->as_time_dis_param = as_time_dis_param;
35
 
36
     return policy_association_local_var;
37
@@ -205,6 +213,11 @@
38
         ogs_error("OpenAPI_policy_association_convertToJSON() failed smf_sel_info");
39
         goto end;
40
     }
41
+    } else if (policy_association->is_smf_sel_info_null) {
42
+        if (cJSON_AddNullToObject(item, "smfSelInfo") == NULL) {
43
+            ogs_error("OpenAPI_policy_association_convertToJSON() failed smf_sel_info");
44
+            goto end;
45
+        }
46
     }
47
 
48
     if (policy_association->ue_ambr) {
49
@@ -286,6 +299,11 @@
50
         ogs_error("OpenAPI_policy_association_convertToJSON() failed pcf_ue_info");
51
         goto end;
52
     }
53
+    } else if (policy_association->is_pcf_ue_info_null) {
54
+        if (cJSON_AddNullToObject(item, "pcfUeInfo") == NULL) {
55
+            ogs_error("OpenAPI_policy_association_convertToJSON() failed pcf_ue_info");
56
+            goto end;
57
+        }
58
     }
59
 
60
     if (policy_association->match_pdus) {
61
@@ -302,6 +320,11 @@
62
         }
63
         cJSON_AddItemToArray(match_pdusList, itemLocal);
64
     }
65
+    } else if (policy_association->is_match_pdus_null) {
66
+        if (cJSON_AddNullToObject(item, "matchPdus") == NULL) {
67
+            ogs_error("OpenAPI_policy_association_convertToJSON() failed match_pdus");
68
+            goto end;
69
+        }
70
     }
71
 
72
     if (policy_association->as_time_dis_param) {
73
@@ -315,6 +338,11 @@
74
         ogs_error("OpenAPI_policy_association_convertToJSON() failed as_time_dis_param");
75
         goto end;
76
     }
77
+    } else if (policy_association->is_as_time_dis_param_null) {
78
+        if (cJSON_AddNullToObject(item, "asTimeDisParam") == NULL) {
79
+            ogs_error("OpenAPI_policy_association_convertToJSON() failed as_time_dis_param");
80
+            goto end;
81
+        }
82
     }
83
 
84
 end:
85
@@ -420,12 +448,14 @@
86
 
87
     smf_sel_info = cJSON_GetObjectItemCaseSensitive(policy_associationJSON, "smfSelInfo");
88
     if (smf_sel_info) {
89
+    if (!cJSON_IsNull(smf_sel_info)) {
90
     smf_sel_info_local_nonprim = OpenAPI_smf_selection_data_parseFromJSON(smf_sel_info);
91
     if (!smf_sel_info_local_nonprim) {
92
         ogs_error("OpenAPI_smf_selection_data_parseFromJSON failed smf_sel_info");
93
         goto end;
94
     }
95
     }
96
+    }
97
 
98
     ue_ambr = cJSON_GetObjectItemCaseSensitive(policy_associationJSON, "ueAmbr");
99
     if (ue_ambr) {
100
@@ -498,15 +528,18 @@
101
 
102
     pcf_ue_info = cJSON_GetObjectItemCaseSensitive(policy_associationJSON, "pcfUeInfo");
103
     if (pcf_ue_info) {
104
+    if (!cJSON_IsNull(pcf_ue_info)) {
105
     pcf_ue_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_info);
106
     if (!pcf_ue_info_local_nonprim) {
107
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_info");
108
         goto end;
109
     }
110
     }
111
+    }
112
 
113
     match_pdus = cJSON_GetObjectItemCaseSensitive(policy_associationJSON, "matchPdus");
114
     if (match_pdus) {
115
+    if (!cJSON_IsNull(match_pdus)) {
116
         cJSON *match_pdus_local = NULL;
117
         if (!cJSON_IsArray(match_pdus)) {
118
             ogs_error("OpenAPI_policy_association_parseFromJSON() failed match_pdus");
119
@@ -528,15 +561,18 @@
120
             OpenAPI_list_add(match_pdusList, match_pdusItem);
121
         }
122
     }
123
+    }
124
 
125
     as_time_dis_param = cJSON_GetObjectItemCaseSensitive(policy_associationJSON, "asTimeDisParam");
126
     if (as_time_dis_param) {
127
+    if (!cJSON_IsNull(as_time_dis_param)) {
128
     as_time_dis_param_local_nonprim = OpenAPI_as_time_distribution_param_parseFromJSON(as_time_dis_param);
129
     if (!as_time_dis_param_local_nonprim) {
130
         ogs_error("OpenAPI_as_time_distribution_param_parseFromJSON failed as_time_dis_param");
131
         goto end;
132
     }
133
     }
134
+    }
135
 
136
     policy_association_local_var = OpenAPI_policy_association_create (
137
         request ? request_local_nonprim : NULL,
138
@@ -547,13 +583,17 @@
139
         rfsp ? rfsp->valuedouble : 0,
140
         target_rfsp ? true : false,
141
         target_rfsp ? target_rfsp->valuedouble : 0,
142
+        smf_sel_info && cJSON_IsNull(smf_sel_info) ? true : false,
143
         smf_sel_info ? smf_sel_info_local_nonprim : NULL,
144
         ue_ambr ? ue_ambr_local_nonprim : NULL,
145
         ue_slice_mbrs ? ue_slice_mbrsList : NULL,
146
         pras ? prasList : NULL,
147
         ogs_strdup(supp_feat->valuestring),
148
+        pcf_ue_info && cJSON_IsNull(pcf_ue_info) ? true : false,
149
         pcf_ue_info ? pcf_ue_info_local_nonprim : NULL,
150
+        match_pdus && cJSON_IsNull(match_pdus) ? true : false,
151
         match_pdus ? match_pdusList : NULL,
152
+        as_time_dis_param && cJSON_IsNull(as_time_dis_param) ? true : false,
153
         as_time_dis_param ? as_time_dis_param_local_nonprim : NULL
154
     );
155
 
156
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_association.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_association.h Changed
37
 
1
@@ -38,13 +38,17 @@
2
     int rfsp;
3
     bool is_target_rfsp;
4
     int target_rfsp;
5
+    bool is_smf_sel_info_null;
6
     struct OpenAPI_smf_selection_data_s *smf_sel_info;
7
     struct OpenAPI_ambr_s *ue_ambr;
8
     OpenAPI_list_t *ue_slice_mbrs;
9
     OpenAPI_list_t* pras;
10
     char *supp_feat;
11
+    bool is_pcf_ue_info_null;
12
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_info;
13
+    bool is_match_pdus_null;
14
     OpenAPI_list_t *match_pdus;
15
+    bool is_as_time_dis_param_null;
16
     struct OpenAPI_as_time_distribution_param_s *as_time_dis_param;
17
 } OpenAPI_policy_association_t;
18
 
19
@@ -57,13 +61,17 @@
20
     int rfsp,
21
     bool is_target_rfsp,
22
     int target_rfsp,
23
+    bool is_smf_sel_info_null,
24
     OpenAPI_smf_selection_data_t *smf_sel_info,
25
     OpenAPI_ambr_t *ue_ambr,
26
     OpenAPI_list_t *ue_slice_mbrs,
27
     OpenAPI_list_t* pras,
28
     char *supp_feat,
29
+    bool is_pcf_ue_info_null,
30
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
31
+    bool is_match_pdus_null,
32
     OpenAPI_list_t *match_pdus,
33
+    bool is_as_time_dis_param_null,
34
     OpenAPI_as_time_distribution_param_t *as_time_dis_param
35
 );
36
 void OpenAPI_policy_association_free(OpenAPI_policy_association_t *policy_association);
37
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_association_request.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_association_request.c Changed
52
 
1
@@ -32,6 +32,7 @@
2
     OpenAPI_list_t *n3g_allowed_snssais,
3
     OpenAPI_guami_t *guami,
4
     char *service_name,
5
+    bool is_trace_req_null,
6
     OpenAPI_trace_data_t *trace_req,
7
     OpenAPI_list_t *nwdaf_datas,
8
     char *supp_feat
9
@@ -67,6 +68,7 @@
10
     policy_association_request_local_var->n3g_allowed_snssais = n3g_allowed_snssais;
11
     policy_association_request_local_var->guami = guami;
12
     policy_association_request_local_var->service_name = service_name;
13
+    policy_association_request_local_var->is_trace_req_null = is_trace_req_null;
14
     policy_association_request_local_var->trace_req = trace_req;
15
     policy_association_request_local_var->nwdaf_datas = nwdaf_datas;
16
     policy_association_request_local_var->supp_feat = supp_feat;
17
@@ -549,6 +551,11 @@
18
         ogs_error("OpenAPI_policy_association_request_convertToJSON() failed trace_req");
19
         goto end;
20
     }
21
+    } else if (policy_association_request->is_trace_req_null) {
22
+        if (cJSON_AddNullToObject(item, "traceReq") == NULL) {
23
+            ogs_error("OpenAPI_policy_association_request_convertToJSON() failed trace_req");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (policy_association_request->nwdaf_datas) {
29
@@ -1022,12 +1029,14 @@
30
 
31
     trace_req = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "traceReq");
32
     if (trace_req) {
33
+    if (!cJSON_IsNull(trace_req)) {
34
     trace_req_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_req);
35
     if (!trace_req_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_req");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     nwdaf_datas = cJSON_GetObjectItemCaseSensitive(policy_association_requestJSON, "nwdafDatas");
43
     if (nwdaf_datas) {
44
@@ -1091,6 +1100,7 @@
45
         n3g_allowed_snssais ? n3g_allowed_snssaisList : NULL,
46
         guami ? guami_local_nonprim : NULL,
47
         service_name && !cJSON_IsNull(service_name) ? ogs_strdup(service_name->valuestring) : NULL,
48
+        trace_req && cJSON_IsNull(trace_req) ? true : false,
49
         trace_req ? trace_req_local_nonprim : NULL,
50
         nwdaf_datas ? nwdaf_datasList : NULL,
51
         ogs_strdup(supp_feat->valuestring)
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_association_request.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_association_request.h Changed
17
 
1
@@ -59,6 +59,7 @@
2
     OpenAPI_list_t *n3g_allowed_snssais;
3
     struct OpenAPI_guami_s *guami;
4
     char *service_name;
5
+    bool is_trace_req_null;
6
     struct OpenAPI_trace_data_s *trace_req;
7
     OpenAPI_list_t *nwdaf_datas;
8
     char *supp_feat;
9
@@ -92,6 +93,7 @@
10
     OpenAPI_list_t *n3g_allowed_snssais,
11
     OpenAPI_guami_t *guami,
12
     char *service_name,
13
+    bool is_trace_req_null,
14
     OpenAPI_trace_data_t *trace_req,
15
     OpenAPI_list_t *nwdaf_datas,
16
     char *supp_feat
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_association_update_request.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_association_update_request.c Changed
140
 
1
@@ -14,6 +14,7 @@
2
     OpenAPI_wireline_service_area_restriction_t *wl_serv_area_res,
3
     bool is_rfsp,
4
     int rfsp,
5
+    bool is_smf_sel_info_null,
6
     OpenAPI_smf_selection_data_t *smf_sel_info,
7
     OpenAPI_ambr_t *ue_ambr,
8
     OpenAPI_list_t *ue_slice_mbrs,
9
@@ -25,8 +26,10 @@
10
     OpenAPI_list_t *access_types,
11
     OpenAPI_list_t *rat_types,
12
     OpenAPI_list_t *n3g_allowed_snssais,
13
+    bool is_trace_req_null,
14
     OpenAPI_trace_data_t *trace_req,
15
     OpenAPI_guami_t *guami,
16
+    bool is_nwdaf_datas_null,
17
     OpenAPI_list_t *nwdaf_datas
18
 )
19
 {
20
@@ -42,6 +45,7 @@
21
     policy_association_update_request_local_var->wl_serv_area_res = wl_serv_area_res;
22
     policy_association_update_request_local_var->is_rfsp = is_rfsp;
23
     policy_association_update_request_local_var->rfsp = rfsp;
24
+    policy_association_update_request_local_var->is_smf_sel_info_null = is_smf_sel_info_null;
25
     policy_association_update_request_local_var->smf_sel_info = smf_sel_info;
26
     policy_association_update_request_local_var->ue_ambr = ue_ambr;
27
     policy_association_update_request_local_var->ue_slice_mbrs = ue_slice_mbrs;
28
@@ -53,8 +57,10 @@
29
     policy_association_update_request_local_var->access_types = access_types;
30
     policy_association_update_request_local_var->rat_types = rat_types;
31
     policy_association_update_request_local_var->n3g_allowed_snssais = n3g_allowed_snssais;
32
+    policy_association_update_request_local_var->is_trace_req_null = is_trace_req_null;
33
     policy_association_update_request_local_var->trace_req = trace_req;
34
     policy_association_update_request_local_var->guami = guami;
35
+    policy_association_update_request_local_var->is_nwdaf_datas_null = is_nwdaf_datas_null;
36
     policy_association_update_request_local_var->nwdaf_datas = nwdaf_datas;
37
 
38
     return policy_association_update_request_local_var;
39
@@ -305,6 +311,11 @@
40
         ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed smf_sel_info");
41
         goto end;
42
     }
43
+    } else if (policy_association_update_request->is_smf_sel_info_null) {
44
+        if (cJSON_AddNullToObject(item, "smfSelInfo") == NULL) {
45
+            ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed smf_sel_info");
46
+            goto end;
47
+        }
48
     }
49
 
50
     if (policy_association_update_request->ue_ambr) {
51
@@ -482,6 +493,11 @@
52
         ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed trace_req");
53
         goto end;
54
     }
55
+    } else if (policy_association_update_request->is_trace_req_null) {
56
+        if (cJSON_AddNullToObject(item, "traceReq") == NULL) {
57
+            ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed trace_req");
58
+            goto end;
59
+        }
60
     }
61
 
62
     if (policy_association_update_request->guami) {
63
@@ -511,6 +527,11 @@
64
         }
65
         cJSON_AddItemToArray(nwdaf_datasList, itemLocal);
66
     }
67
+    } else if (policy_association_update_request->is_nwdaf_datas_null) {
68
+        if (cJSON_AddNullToObject(item, "nwdafDatas") == NULL) {
69
+            ogs_error("OpenAPI_policy_association_update_request_convertToJSON() failed nwdaf_datas");
70
+            goto end;
71
+        }
72
     }
73
 
74
 end:
75
@@ -687,12 +708,14 @@
76
 
77
     smf_sel_info = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "smfSelInfo");
78
     if (smf_sel_info) {
79
+    if (!cJSON_IsNull(smf_sel_info)) {
80
     smf_sel_info_local_nonprim = OpenAPI_smf_selection_data_parseFromJSON(smf_sel_info);
81
     if (!smf_sel_info_local_nonprim) {
82
         ogs_error("OpenAPI_smf_selection_data_parseFromJSON failed smf_sel_info");
83
         goto end;
84
     }
85
     }
86
+    }
87
 
88
     ue_ambr = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "ueAmbr");
89
     if (ue_ambr) {
90
@@ -910,12 +933,14 @@
91
 
92
     trace_req = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "traceReq");
93
     if (trace_req) {
94
+    if (!cJSON_IsNull(trace_req)) {
95
     trace_req_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_req);
96
     if (!trace_req_local_nonprim) {
97
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_req");
98
         goto end;
99
     }
100
     }
101
+    }
102
 
103
     guami = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "guami");
104
     if (guami) {
105
@@ -928,6 +953,7 @@
106
 
107
     nwdaf_datas = cJSON_GetObjectItemCaseSensitive(policy_association_update_requestJSON, "nwdafDatas");
108
     if (nwdaf_datas) {
109
+    if (!cJSON_IsNull(nwdaf_datas)) {
110
         cJSON *nwdaf_datas_local = NULL;
111
         if (!cJSON_IsArray(nwdaf_datas)) {
112
             ogs_error("OpenAPI_policy_association_update_request_parseFromJSON() failed nwdaf_datas");
113
@@ -949,6 +975,7 @@
114
             OpenAPI_list_add(nwdaf_datasList, nwdaf_datasItem);
115
         }
116
     }
117
+    }
118
 
119
     policy_association_update_request_local_var = OpenAPI_policy_association_update_request_create (
120
         notification_uri && !cJSON_IsNull(notification_uri) ? ogs_strdup(notification_uri->valuestring) : NULL,
121
@@ -960,6 +987,7 @@
122
         wl_serv_area_res ? wl_serv_area_res_local_nonprim : NULL,
123
         rfsp ? true : false,
124
         rfsp ? rfsp->valuedouble : 0,
125
+        smf_sel_info && cJSON_IsNull(smf_sel_info) ? true : false,
126
         smf_sel_info ? smf_sel_info_local_nonprim : NULL,
127
         ue_ambr ? ue_ambr_local_nonprim : NULL,
128
         ue_slice_mbrs ? ue_slice_mbrsList : NULL,
129
@@ -971,8 +999,10 @@
130
         access_types ? access_typesList : NULL,
131
         rat_types ? rat_typesList : NULL,
132
         n3g_allowed_snssais ? n3g_allowed_snssaisList : NULL,
133
+        trace_req && cJSON_IsNull(trace_req) ? true : false,
134
         trace_req ? trace_req_local_nonprim : NULL,
135
         guami ? guami_local_nonprim : NULL,
136
+        nwdaf_datas && cJSON_IsNull(nwdaf_datas) ? true : false,
137
         nwdaf_datas ? nwdaf_datasList : NULL
138
     );
139
 
140
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_association_update_request.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_association_update_request.h Changed
39
 
1
@@ -43,6 +43,7 @@
2
     struct OpenAPI_wireline_service_area_restriction_s *wl_serv_area_res;
3
     bool is_rfsp;
4
     int rfsp;
5
+    bool is_smf_sel_info_null;
6
     struct OpenAPI_smf_selection_data_s *smf_sel_info;
7
     struct OpenAPI_ambr_s *ue_ambr;
8
     OpenAPI_list_t *ue_slice_mbrs;
9
@@ -54,8 +55,10 @@
10
     OpenAPI_list_t *access_types;
11
     OpenAPI_list_t *rat_types;
12
     OpenAPI_list_t *n3g_allowed_snssais;
13
+    bool is_trace_req_null;
14
     struct OpenAPI_trace_data_s *trace_req;
15
     struct OpenAPI_guami_s *guami;
16
+    bool is_nwdaf_datas_null;
17
     OpenAPI_list_t *nwdaf_datas;
18
 } OpenAPI_policy_association_update_request_t;
19
 
20
@@ -69,6 +72,7 @@
21
     OpenAPI_wireline_service_area_restriction_t *wl_serv_area_res,
22
     bool is_rfsp,
23
     int rfsp,
24
+    bool is_smf_sel_info_null,
25
     OpenAPI_smf_selection_data_t *smf_sel_info,
26
     OpenAPI_ambr_t *ue_ambr,
27
     OpenAPI_list_t *ue_slice_mbrs,
28
@@ -80,8 +84,10 @@
29
     OpenAPI_list_t *access_types,
30
     OpenAPI_list_t *rat_types,
31
     OpenAPI_list_t *n3g_allowed_snssais,
32
+    bool is_trace_req_null,
33
     OpenAPI_trace_data_t *trace_req,
34
     OpenAPI_guami_t *guami,
35
+    bool is_nwdaf_datas_null,
36
     OpenAPI_list_t *nwdaf_datas
37
 );
38
 void OpenAPI_policy_association_update_request_free(OpenAPI_policy_association_update_request_t *policy_association_update_request);
39
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_update.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_update.c Changed
228
 
1
@@ -6,6 +6,7 @@
2
 
3
 OpenAPI_policy_update_t *OpenAPI_policy_update_create(
4
     char *resource_uri,
5
+    bool is_triggers_null,
6
     OpenAPI_list_t *triggers,
7
     OpenAPI_service_area_restriction_t *serv_area_res,
8
     OpenAPI_wireline_service_area_restriction_t *wl_serv_area_res,
9
@@ -13,12 +14,17 @@
10
     int rfsp,
11
     bool is_target_rfsp,
12
     int target_rfsp,
13
+    bool is_smf_sel_info_null,
14
     OpenAPI_smf_selection_data_t *smf_sel_info,
15
     OpenAPI_ambr_t *ue_ambr,
16
     OpenAPI_list_t *ue_slice_mbrs,
17
+    bool is_pras_null,
18
     OpenAPI_list_t* pras,
19
+    bool is_pcf_ue_info_null,
20
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
21
+    bool is_match_pdus_null,
22
     OpenAPI_list_t *match_pdus,
23
+    bool is_as_time_dis_param_null,
24
     OpenAPI_as_time_distribution_param_t *as_time_dis_param
25
 )
26
 {
27
@@ -26,6 +32,7 @@
28
     ogs_assert(policy_update_local_var);
29
 
30
     policy_update_local_var->resource_uri = resource_uri;
31
+    policy_update_local_var->is_triggers_null = is_triggers_null;
32
     policy_update_local_var->triggers = triggers;
33
     policy_update_local_var->serv_area_res = serv_area_res;
34
     policy_update_local_var->wl_serv_area_res = wl_serv_area_res;
35
@@ -33,12 +40,17 @@
36
     policy_update_local_var->rfsp = rfsp;
37
     policy_update_local_var->is_target_rfsp = is_target_rfsp;
38
     policy_update_local_var->target_rfsp = target_rfsp;
39
+    policy_update_local_var->is_smf_sel_info_null = is_smf_sel_info_null;
40
     policy_update_local_var->smf_sel_info = smf_sel_info;
41
     policy_update_local_var->ue_ambr = ue_ambr;
42
     policy_update_local_var->ue_slice_mbrs = ue_slice_mbrs;
43
+    policy_update_local_var->is_pras_null = is_pras_null;
44
     policy_update_local_var->pras = pras;
45
+    policy_update_local_var->is_pcf_ue_info_null = is_pcf_ue_info_null;
46
     policy_update_local_var->pcf_ue_info = pcf_ue_info;
47
+    policy_update_local_var->is_match_pdus_null = is_match_pdus_null;
48
     policy_update_local_var->match_pdus = match_pdus;
49
+    policy_update_local_var->is_as_time_dis_param_null = is_as_time_dis_param_null;
50
     policy_update_local_var->as_time_dis_param = as_time_dis_param;
51
 
52
     return policy_update_local_var;
53
@@ -142,6 +154,11 @@
54
             goto end;
55
         }
56
     }
57
+    } else if (policy_update->is_triggers_null) {
58
+        if (cJSON_AddNullToObject(item, "triggers") == NULL) {
59
+            ogs_error("OpenAPI_policy_update_convertToJSON() failed triggers");
60
+            goto end;
61
+        }
62
     }
63
 
64
     if (policy_update->serv_area_res) {
65
@@ -195,6 +212,11 @@
66
         ogs_error("OpenAPI_policy_update_convertToJSON() failed smf_sel_info");
67
         goto end;
68
     }
69
+    } else if (policy_update->is_smf_sel_info_null) {
70
+        if (cJSON_AddNullToObject(item, "smfSelInfo") == NULL) {
71
+            ogs_error("OpenAPI_policy_update_convertToJSON() failed smf_sel_info");
72
+            goto end;
73
+        }
74
     }
75
 
76
     if (policy_update->ue_ambr) {
77
@@ -254,6 +276,11 @@
78
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
79
         }
80
     }
81
+    } else if (policy_update->is_pras_null) {
82
+        if (cJSON_AddNullToObject(item, "pras") == NULL) {
83
+            ogs_error("OpenAPI_policy_update_convertToJSON() failed pras");
84
+            goto end;
85
+        }
86
     }
87
 
88
     if (policy_update->pcf_ue_info) {
89
@@ -267,6 +294,11 @@
90
         ogs_error("OpenAPI_policy_update_convertToJSON() failed pcf_ue_info");
91
         goto end;
92
     }
93
+    } else if (policy_update->is_pcf_ue_info_null) {
94
+        if (cJSON_AddNullToObject(item, "pcfUeInfo") == NULL) {
95
+            ogs_error("OpenAPI_policy_update_convertToJSON() failed pcf_ue_info");
96
+            goto end;
97
+        }
98
     }
99
 
100
     if (policy_update->match_pdus) {
101
@@ -283,6 +315,11 @@
102
         }
103
         cJSON_AddItemToArray(match_pdusList, itemLocal);
104
     }
105
+    } else if (policy_update->is_match_pdus_null) {
106
+        if (cJSON_AddNullToObject(item, "matchPdus") == NULL) {
107
+            ogs_error("OpenAPI_policy_update_convertToJSON() failed match_pdus");
108
+            goto end;
109
+        }
110
     }
111
 
112
     if (policy_update->as_time_dis_param) {
113
@@ -296,6 +333,11 @@
114
         ogs_error("OpenAPI_policy_update_convertToJSON() failed as_time_dis_param");
115
         goto end;
116
     }
117
+    } else if (policy_update->is_as_time_dis_param_null) {
118
+        if (cJSON_AddNullToObject(item, "asTimeDisParam") == NULL) {
119
+            ogs_error("OpenAPI_policy_update_convertToJSON() failed as_time_dis_param");
120
+            goto end;
121
+        }
122
     }
123
 
124
 end:
125
@@ -341,6 +383,7 @@
126
 
127
     triggers = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "triggers");
128
     if (triggers) {
129
+    if (!cJSON_IsNull(triggers)) {
130
         cJSON *triggers_local = NULL;
131
         if (!cJSON_IsArray(triggers)) {
132
             ogs_error("OpenAPI_policy_update_parseFromJSON() failed triggers");
133
@@ -363,6 +406,7 @@
134
             OpenAPI_list_add(triggersList, (void *)localEnum);
135
         }
136
     }
137
+    }
138
 
139
     serv_area_res = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "servAreaRes");
140
     if (serv_area_res) {
141
@@ -400,12 +444,14 @@
142
 
143
     smf_sel_info = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "smfSelInfo");
144
     if (smf_sel_info) {
145
+    if (!cJSON_IsNull(smf_sel_info)) {
146
     smf_sel_info_local_nonprim = OpenAPI_smf_selection_data_parseFromJSON(smf_sel_info);
147
     if (!smf_sel_info_local_nonprim) {
148
         ogs_error("OpenAPI_smf_selection_data_parseFromJSON failed smf_sel_info");
149
         goto end;
150
     }
151
     }
152
+    }
153
 
154
     ue_ambr = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "ueAmbr");
155
     if (ue_ambr) {
156
@@ -442,6 +488,7 @@
157
 
158
     pras = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "pras");
159
     if (pras) {
160
+    if (!cJSON_IsNull(pras)) {
161
         cJSON *pras_local_map = NULL;
162
         if (!cJSON_IsObject(pras) && !cJSON_IsNull(pras)) {
163
             ogs_error("OpenAPI_policy_update_parseFromJSON() failed pras");
164
@@ -465,18 +512,22 @@
165
             }
166
         }
167
     }
168
+    }
169
 
170
     pcf_ue_info = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "pcfUeInfo");
171
     if (pcf_ue_info) {
172
+    if (!cJSON_IsNull(pcf_ue_info)) {
173
     pcf_ue_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_info);
174
     if (!pcf_ue_info_local_nonprim) {
175
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_info");
176
         goto end;
177
     }
178
     }
179
+    }
180
 
181
     match_pdus = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "matchPdus");
182
     if (match_pdus) {
183
+    if (!cJSON_IsNull(match_pdus)) {
184
         cJSON *match_pdus_local = NULL;
185
         if (!cJSON_IsArray(match_pdus)) {
186
             ogs_error("OpenAPI_policy_update_parseFromJSON() failed match_pdus");
187
@@ -498,18 +549,22 @@
188
             OpenAPI_list_add(match_pdusList, match_pdusItem);
189
         }
190
     }
191
+    }
192
 
193
     as_time_dis_param = cJSON_GetObjectItemCaseSensitive(policy_updateJSON, "asTimeDisParam");
194
     if (as_time_dis_param) {
195
+    if (!cJSON_IsNull(as_time_dis_param)) {
196
     as_time_dis_param_local_nonprim = OpenAPI_as_time_distribution_param_parseFromJSON(as_time_dis_param);
197
     if (!as_time_dis_param_local_nonprim) {
198
         ogs_error("OpenAPI_as_time_distribution_param_parseFromJSON failed as_time_dis_param");
199
         goto end;
200
     }
201
     }
202
+    }
203
 
204
     policy_update_local_var = OpenAPI_policy_update_create (
205
         ogs_strdup(resource_uri->valuestring),
206
+        triggers && cJSON_IsNull(triggers) ? true : false,
207
         triggers ? triggersList : NULL,
208
         serv_area_res ? serv_area_res_local_nonprim : NULL,
209
         wl_serv_area_res ? wl_serv_area_res_local_nonprim : NULL,
210
@@ -517,12 +572,17 @@
211
         rfsp ? rfsp->valuedouble : 0,
212
         target_rfsp ? true : false,
213
         target_rfsp ? target_rfsp->valuedouble : 0,
214
+        smf_sel_info && cJSON_IsNull(smf_sel_info) ? true : false,
215
         smf_sel_info ? smf_sel_info_local_nonprim : NULL,
216
         ue_ambr ? ue_ambr_local_nonprim : NULL,
217
         ue_slice_mbrs ? ue_slice_mbrsList : NULL,
218
+        pras && cJSON_IsNull(pras) ? true : false,
219
         pras ? prasList : NULL,
220
+        pcf_ue_info && cJSON_IsNull(pcf_ue_info) ? true : false,
221
         pcf_ue_info ? pcf_ue_info_local_nonprim : NULL,
222
+        match_pdus && cJSON_IsNull(match_pdus) ? true : false,
223
         match_pdus ? match_pdusList : NULL,
224
+        as_time_dis_param && cJSON_IsNull(as_time_dis_param) ? true : false,
225
         as_time_dis_param ? as_time_dis_param_local_nonprim : NULL
226
     );
227
 
228
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/policy_update.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/policy_update.h Changed
51
 
1
@@ -30,6 +30,7 @@
2
 typedef struct OpenAPI_policy_update_s OpenAPI_policy_update_t;
3
 typedef struct OpenAPI_policy_update_s {
4
     char *resource_uri;
5
+    bool is_triggers_null;
6
     OpenAPI_list_t *triggers;
7
     struct OpenAPI_service_area_restriction_s *serv_area_res;
8
     struct OpenAPI_wireline_service_area_restriction_s *wl_serv_area_res;
9
@@ -37,17 +38,23 @@
10
     int rfsp;
11
     bool is_target_rfsp;
12
     int target_rfsp;
13
+    bool is_smf_sel_info_null;
14
     struct OpenAPI_smf_selection_data_s *smf_sel_info;
15
     struct OpenAPI_ambr_s *ue_ambr;
16
     OpenAPI_list_t *ue_slice_mbrs;
17
+    bool is_pras_null;
18
     OpenAPI_list_t* pras;
19
+    bool is_pcf_ue_info_null;
20
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_info;
21
+    bool is_match_pdus_null;
22
     OpenAPI_list_t *match_pdus;
23
+    bool is_as_time_dis_param_null;
24
     struct OpenAPI_as_time_distribution_param_s *as_time_dis_param;
25
 } OpenAPI_policy_update_t;
26
 
27
 OpenAPI_policy_update_t *OpenAPI_policy_update_create(
28
     char *resource_uri,
29
+    bool is_triggers_null,
30
     OpenAPI_list_t *triggers,
31
     OpenAPI_service_area_restriction_t *serv_area_res,
32
     OpenAPI_wireline_service_area_restriction_t *wl_serv_area_res,
33
@@ -55,12 +62,17 @@
34
     int rfsp,
35
     bool is_target_rfsp,
36
     int target_rfsp,
37
+    bool is_smf_sel_info_null,
38
     OpenAPI_smf_selection_data_t *smf_sel_info,
39
     OpenAPI_ambr_t *ue_ambr,
40
     OpenAPI_list_t *ue_slice_mbrs,
41
+    bool is_pras_null,
42
     OpenAPI_list_t* pras,
43
+    bool is_pcf_ue_info_null,
44
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
45
+    bool is_match_pdus_null,
46
     OpenAPI_list_t *match_pdus,
47
+    bool is_as_time_dis_param_null,
48
     OpenAPI_as_time_distribution_param_t *as_time_dis_param
49
 );
50
 void OpenAPI_policy_update_free(OpenAPI_policy_update_t *policy_update);
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pp_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pp_data.c Changed
211
 
1
@@ -5,28 +5,40 @@
2
 #include "pp_data.h"
3
 
4
 OpenAPI_pp_data_t *OpenAPI_pp_data_create(
5
+    bool is_communication_characteristics_null,
6
     OpenAPI_communication_characteristics_t *communication_characteristics,
7
     char *supported_features,
8
+    bool is_expected_ue_behaviour_parameters_null,
9
     OpenAPI_expected_ue_behaviour_t *expected_ue_behaviour_parameters,
10
+    bool is_ec_restriction_null,
11
     OpenAPI_ec_restriction_t *ec_restriction,
12
     OpenAPI_acs_info_rm_t *acs_info,
13
+    bool is_stn_sr_null,
14
     char *stn_sr,
15
+    bool is_lcs_privacy_null,
16
     OpenAPI_lcs_privacy_t *lcs_privacy,
17
     OpenAPI_sor_info_t *sor_info,
18
+    bool is__5mbs_authorization_info_null,
19
     OpenAPI_model_5_mbs_authorization_info_t *_5mbs_authorization_info
20
 )
21
 {
22
     OpenAPI_pp_data_t *pp_data_local_var = ogs_malloc(sizeof(OpenAPI_pp_data_t));
23
     ogs_assert(pp_data_local_var);
24
 
25
+    pp_data_local_var->is_communication_characteristics_null = is_communication_characteristics_null;
26
     pp_data_local_var->communication_characteristics = communication_characteristics;
27
     pp_data_local_var->supported_features = supported_features;
28
+    pp_data_local_var->is_expected_ue_behaviour_parameters_null = is_expected_ue_behaviour_parameters_null;
29
     pp_data_local_var->expected_ue_behaviour_parameters = expected_ue_behaviour_parameters;
30
+    pp_data_local_var->is_ec_restriction_null = is_ec_restriction_null;
31
     pp_data_local_var->ec_restriction = ec_restriction;
32
     pp_data_local_var->acs_info = acs_info;
33
+    pp_data_local_var->is_stn_sr_null = is_stn_sr_null;
34
     pp_data_local_var->stn_sr = stn_sr;
35
+    pp_data_local_var->is_lcs_privacy_null = is_lcs_privacy_null;
36
     pp_data_local_var->lcs_privacy = lcs_privacy;
37
     pp_data_local_var->sor_info = sor_info;
38
+    pp_data_local_var->is__5mbs_authorization_info_null = is__5mbs_authorization_info_null;
39
     pp_data_local_var->_5mbs_authorization_info = _5mbs_authorization_info;
40
 
41
     return pp_data_local_var;
42
@@ -100,6 +112,11 @@
43
         ogs_error("OpenAPI_pp_data_convertToJSON() failed communication_characteristics");
44
         goto end;
45
     }
46
+    } else if (pp_data->is_communication_characteristics_null) {
47
+        if (cJSON_AddNullToObject(item, "communicationCharacteristics") == NULL) {
48
+            ogs_error("OpenAPI_pp_data_convertToJSON() failed communication_characteristics");
49
+            goto end;
50
+        }
51
     }
52
 
53
     if (pp_data->supported_features) {
54
@@ -120,6 +137,11 @@
55
         ogs_error("OpenAPI_pp_data_convertToJSON() failed expected_ue_behaviour_parameters");
56
         goto end;
57
     }
58
+    } else if (pp_data->is_expected_ue_behaviour_parameters_null) {
59
+        if (cJSON_AddNullToObject(item, "expectedUeBehaviourParameters") == NULL) {
60
+            ogs_error("OpenAPI_pp_data_convertToJSON() failed expected_ue_behaviour_parameters");
61
+            goto end;
62
+        }
63
     }
64
 
65
     if (pp_data->ec_restriction) {
66
@@ -133,6 +155,11 @@
67
         ogs_error("OpenAPI_pp_data_convertToJSON() failed ec_restriction");
68
         goto end;
69
     }
70
+    } else if (pp_data->is_ec_restriction_null) {
71
+        if (cJSON_AddNullToObject(item, "ecRestriction") == NULL) {
72
+            ogs_error("OpenAPI_pp_data_convertToJSON() failed ec_restriction");
73
+            goto end;
74
+        }
75
     }
76
 
77
     if (pp_data->acs_info) {
78
@@ -153,6 +180,11 @@
79
         ogs_error("OpenAPI_pp_data_convertToJSON() failed stn_sr");
80
         goto end;
81
     }
82
+    } else if (pp_data->is_stn_sr_null) {
83
+        if (cJSON_AddNullToObject(item, "stnSr") == NULL) {
84
+            ogs_error("OpenAPI_pp_data_convertToJSON() failed stn_sr");
85
+            goto end;
86
+        }
87
     }
88
 
89
     if (pp_data->lcs_privacy) {
90
@@ -166,6 +198,11 @@
91
         ogs_error("OpenAPI_pp_data_convertToJSON() failed lcs_privacy");
92
         goto end;
93
     }
94
+    } else if (pp_data->is_lcs_privacy_null) {
95
+        if (cJSON_AddNullToObject(item, "lcsPrivacy") == NULL) {
96
+            ogs_error("OpenAPI_pp_data_convertToJSON() failed lcs_privacy");
97
+            goto end;
98
+        }
99
     }
100
 
101
     if (pp_data->sor_info) {
102
@@ -192,6 +229,11 @@
103
         ogs_error("OpenAPI_pp_data_convertToJSON() failed _5mbs_authorization_info");
104
         goto end;
105
     }
106
+    } else if (pp_data->is__5mbs_authorization_info_null) {
107
+        if (cJSON_AddNullToObject(item, "5mbsAuthorizationInfo") == NULL) {
108
+            ogs_error("OpenAPI_pp_data_convertToJSON() failed _5mbs_authorization_info");
109
+            goto end;
110
+        }
111
     }
112
 
113
 end:
114
@@ -220,12 +262,14 @@
115
     OpenAPI_model_5_mbs_authorization_info_t *_5mbs_authorization_info_local_nonprim = NULL;
116
     communication_characteristics = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "communicationCharacteristics");
117
     if (communication_characteristics) {
118
+    if (!cJSON_IsNull(communication_characteristics)) {
119
     communication_characteristics_local_nonprim = OpenAPI_communication_characteristics_parseFromJSON(communication_characteristics);
120
     if (!communication_characteristics_local_nonprim) {
121
         ogs_error("OpenAPI_communication_characteristics_parseFromJSON failed communication_characteristics");
122
         goto end;
123
     }
124
     }
125
+    }
126
 
127
     supported_features = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "supportedFeatures");
128
     if (supported_features) {
129
@@ -237,21 +281,25 @@
130
 
131
     expected_ue_behaviour_parameters = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "expectedUeBehaviourParameters");
132
     if (expected_ue_behaviour_parameters) {
133
+    if (!cJSON_IsNull(expected_ue_behaviour_parameters)) {
134
     expected_ue_behaviour_parameters_local_nonprim = OpenAPI_expected_ue_behaviour_parseFromJSON(expected_ue_behaviour_parameters);
135
     if (!expected_ue_behaviour_parameters_local_nonprim) {
136
         ogs_error("OpenAPI_expected_ue_behaviour_parseFromJSON failed expected_ue_behaviour_parameters");
137
         goto end;
138
     }
139
     }
140
+    }
141
 
142
     ec_restriction = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "ecRestriction");
143
     if (ec_restriction) {
144
+    if (!cJSON_IsNull(ec_restriction)) {
145
     ec_restriction_local_nonprim = OpenAPI_ec_restriction_parseFromJSON(ec_restriction);
146
     if (!ec_restriction_local_nonprim) {
147
         ogs_error("OpenAPI_ec_restriction_parseFromJSON failed ec_restriction");
148
         goto end;
149
     }
150
     }
151
+    }
152
 
153
     acs_info = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "acsInfo");
154
     if (acs_info) {
155
@@ -264,20 +312,24 @@
156
 
157
     stn_sr = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "stnSr");
158
     if (stn_sr) {
159
+    if (!cJSON_IsNull(stn_sr)) {
160
     if (!cJSON_IsString(stn_sr) && !cJSON_IsNull(stn_sr)) {
161
         ogs_error("OpenAPI_pp_data_parseFromJSON() failed stn_sr");
162
         goto end;
163
     }
164
     }
165
+    }
166
 
167
     lcs_privacy = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "lcsPrivacy");
168
     if (lcs_privacy) {
169
+    if (!cJSON_IsNull(lcs_privacy)) {
170
     lcs_privacy_local_nonprim = OpenAPI_lcs_privacy_parseFromJSON(lcs_privacy);
171
     if (!lcs_privacy_local_nonprim) {
172
         ogs_error("OpenAPI_lcs_privacy_parseFromJSON failed lcs_privacy");
173
         goto end;
174
     }
175
     }
176
+    }
177
 
178
     sor_info = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "sorInfo");
179
     if (sor_info) {
180
@@ -290,22 +342,30 @@
181
 
182
     _5mbs_authorization_info = cJSON_GetObjectItemCaseSensitive(pp_dataJSON, "5mbsAuthorizationInfo");
183
     if (_5mbs_authorization_info) {
184
+    if (!cJSON_IsNull(_5mbs_authorization_info)) {
185
     _5mbs_authorization_info_local_nonprim = OpenAPI_model_5_mbs_authorization_info_parseFromJSON(_5mbs_authorization_info);
186
     if (!_5mbs_authorization_info_local_nonprim) {
187
         ogs_error("OpenAPI_model_5_mbs_authorization_info_parseFromJSON failed _5mbs_authorization_info");
188
         goto end;
189
     }
190
     }
191
+    }
192
 
193
     pp_data_local_var = OpenAPI_pp_data_create (
194
+        communication_characteristics && cJSON_IsNull(communication_characteristics) ? true : false,
195
         communication_characteristics ? communication_characteristics_local_nonprim : NULL,
196
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL,
197
+        expected_ue_behaviour_parameters && cJSON_IsNull(expected_ue_behaviour_parameters) ? true : false,
198
         expected_ue_behaviour_parameters ? expected_ue_behaviour_parameters_local_nonprim : NULL,
199
+        ec_restriction && cJSON_IsNull(ec_restriction) ? true : false,
200
         ec_restriction ? ec_restriction_local_nonprim : NULL,
201
         acs_info ? acs_info_local_nonprim : NULL,
202
+        stn_sr && cJSON_IsNull(stn_sr) ? true : false,
203
         stn_sr && !cJSON_IsNull(stn_sr) ? ogs_strdup(stn_sr->valuestring) : NULL,
204
+        lcs_privacy && cJSON_IsNull(lcs_privacy) ? true : false,
205
         lcs_privacy ? lcs_privacy_local_nonprim : NULL,
206
         sor_info ? sor_info_local_nonprim : NULL,
207
+        _5mbs_authorization_info && cJSON_IsNull(_5mbs_authorization_info) ? true : false,
208
         _5mbs_authorization_info ? _5mbs_authorization_info_local_nonprim : NULL
209
     );
210
 
211
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pp_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pp_data.h Changed
40
 
1
@@ -26,26 +26,38 @@
2
 
3
 typedef struct OpenAPI_pp_data_s OpenAPI_pp_data_t;
4
 typedef struct OpenAPI_pp_data_s {
5
+    bool is_communication_characteristics_null;
6
     struct OpenAPI_communication_characteristics_s *communication_characteristics;
7
     char *supported_features;
8
+    bool is_expected_ue_behaviour_parameters_null;
9
     struct OpenAPI_expected_ue_behaviour_s *expected_ue_behaviour_parameters;
10
+    bool is_ec_restriction_null;
11
     struct OpenAPI_ec_restriction_s *ec_restriction;
12
     struct OpenAPI_acs_info_rm_s *acs_info;
13
+    bool is_stn_sr_null;
14
     char *stn_sr;
15
+    bool is_lcs_privacy_null;
16
     struct OpenAPI_lcs_privacy_s *lcs_privacy;
17
     struct OpenAPI_sor_info_s *sor_info;
18
+    bool is__5mbs_authorization_info_null;
19
     struct OpenAPI_model_5_mbs_authorization_info_s *_5mbs_authorization_info;
20
 } OpenAPI_pp_data_t;
21
 
22
 OpenAPI_pp_data_t *OpenAPI_pp_data_create(
23
+    bool is_communication_characteristics_null,
24
     OpenAPI_communication_characteristics_t *communication_characteristics,
25
     char *supported_features,
26
+    bool is_expected_ue_behaviour_parameters_null,
27
     OpenAPI_expected_ue_behaviour_t *expected_ue_behaviour_parameters,
28
+    bool is_ec_restriction_null,
29
     OpenAPI_ec_restriction_t *ec_restriction,
30
     OpenAPI_acs_info_rm_t *acs_info,
31
+    bool is_stn_sr_null,
32
     char *stn_sr,
33
+    bool is_lcs_privacy_null,
34
     OpenAPI_lcs_privacy_t *lcs_privacy,
35
     OpenAPI_sor_info_t *sor_info,
36
+    bool is__5mbs_authorization_info_null,
37
     OpenAPI_model_5_mbs_authorization_info_t *_5mbs_authorization_info
38
 );
39
 void OpenAPI_pp_data_free(OpenAPI_pp_data_t *pp_data);
40
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pp_data_entry.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pp_data_entry.c Changed
130
 
1
@@ -5,28 +5,34 @@
2
 #include "pp_data_entry.h"
3
 
4
 OpenAPI_pp_data_entry_t *OpenAPI_pp_data_entry_create(
5
+    bool is_communication_characteristics_null,
6
     OpenAPI_communication_characteristics_af_t *communication_characteristics,
7
     bool is_reference_id,
8
     int reference_id,
9
     char *validity_time,
10
     char *mtc_provider_information,
11
     char *supported_features,
12
+    bool is_ecs_addr_config_info_null,
13
     OpenAPI_ecs_addr_config_info_1_t *ecs_addr_config_info,
14
     OpenAPI_list_t *additional_ecs_addr_config_infos,
15
+    bool is_ec_restriction_null,
16
     OpenAPI_ec_restriction_1_t *ec_restriction
17
 )
18
 {
19
     OpenAPI_pp_data_entry_t *pp_data_entry_local_var = ogs_malloc(sizeof(OpenAPI_pp_data_entry_t));
20
     ogs_assert(pp_data_entry_local_var);
21
 
22
+    pp_data_entry_local_var->is_communication_characteristics_null = is_communication_characteristics_null;
23
     pp_data_entry_local_var->communication_characteristics = communication_characteristics;
24
     pp_data_entry_local_var->is_reference_id = is_reference_id;
25
     pp_data_entry_local_var->reference_id = reference_id;
26
     pp_data_entry_local_var->validity_time = validity_time;
27
     pp_data_entry_local_var->mtc_provider_information = mtc_provider_information;
28
     pp_data_entry_local_var->supported_features = supported_features;
29
+    pp_data_entry_local_var->is_ecs_addr_config_info_null = is_ecs_addr_config_info_null;
30
     pp_data_entry_local_var->ecs_addr_config_info = ecs_addr_config_info;
31
     pp_data_entry_local_var->additional_ecs_addr_config_infos = additional_ecs_addr_config_infos;
32
+    pp_data_entry_local_var->is_ec_restriction_null = is_ec_restriction_null;
33
     pp_data_entry_local_var->ec_restriction = ec_restriction;
34
 
35
     return pp_data_entry_local_var;
36
@@ -95,6 +101,11 @@
37
         ogs_error("OpenAPI_pp_data_entry_convertToJSON() failed communication_characteristics");
38
         goto end;
39
     }
40
+    } else if (pp_data_entry->is_communication_characteristics_null) {
41
+        if (cJSON_AddNullToObject(item, "communicationCharacteristics") == NULL) {
42
+            ogs_error("OpenAPI_pp_data_entry_convertToJSON() failed communication_characteristics");
43
+            goto end;
44
+        }
45
     }
46
 
47
     if (pp_data_entry->is_reference_id) {
48
@@ -136,6 +147,11 @@
49
         ogs_error("OpenAPI_pp_data_entry_convertToJSON() failed ecs_addr_config_info");
50
         goto end;
51
     }
52
+    } else if (pp_data_entry->is_ecs_addr_config_info_null) {
53
+        if (cJSON_AddNullToObject(item, "ecsAddrConfigInfo") == NULL) {
54
+            ogs_error("OpenAPI_pp_data_entry_convertToJSON() failed ecs_addr_config_info");
55
+            goto end;
56
+        }
57
     }
58
 
59
     if (pp_data_entry->additional_ecs_addr_config_infos) {
60
@@ -165,6 +181,11 @@
61
         ogs_error("OpenAPI_pp_data_entry_convertToJSON() failed ec_restriction");
62
         goto end;
63
     }
64
+    } else if (pp_data_entry->is_ec_restriction_null) {
65
+        if (cJSON_AddNullToObject(item, "ecRestriction") == NULL) {
66
+            ogs_error("OpenAPI_pp_data_entry_convertToJSON() failed ec_restriction");
67
+            goto end;
68
+        }
69
     }
70
 
71
 end:
72
@@ -189,12 +210,14 @@
73
     OpenAPI_ec_restriction_1_t *ec_restriction_local_nonprim = NULL;
74
     communication_characteristics = cJSON_GetObjectItemCaseSensitive(pp_data_entryJSON, "communicationCharacteristics");
75
     if (communication_characteristics) {
76
+    if (!cJSON_IsNull(communication_characteristics)) {
77
     communication_characteristics_local_nonprim = OpenAPI_communication_characteristics_af_parseFromJSON(communication_characteristics);
78
     if (!communication_characteristics_local_nonprim) {
79
         ogs_error("OpenAPI_communication_characteristics_af_parseFromJSON failed communication_characteristics");
80
         goto end;
81
     }
82
     }
83
+    }
84
 
85
     reference_id = cJSON_GetObjectItemCaseSensitive(pp_data_entryJSON, "referenceId");
86
     if (reference_id) {
87
@@ -230,12 +253,14 @@
88
 
89
     ecs_addr_config_info = cJSON_GetObjectItemCaseSensitive(pp_data_entryJSON, "ecsAddrConfigInfo");
90
     if (ecs_addr_config_info) {
91
+    if (!cJSON_IsNull(ecs_addr_config_info)) {
92
     ecs_addr_config_info_local_nonprim = OpenAPI_ecs_addr_config_info_1_parseFromJSON(ecs_addr_config_info);
93
     if (!ecs_addr_config_info_local_nonprim) {
94
         ogs_error("OpenAPI_ecs_addr_config_info_1_parseFromJSON failed ecs_addr_config_info");
95
         goto end;
96
     }
97
     }
98
+    }
99
 
100
     additional_ecs_addr_config_infos = cJSON_GetObjectItemCaseSensitive(pp_data_entryJSON, "additionalEcsAddrConfigInfos");
101
     if (additional_ecs_addr_config_infos) {
102
@@ -263,22 +288,27 @@
103
 
104
     ec_restriction = cJSON_GetObjectItemCaseSensitive(pp_data_entryJSON, "ecRestriction");
105
     if (ec_restriction) {
106
+    if (!cJSON_IsNull(ec_restriction)) {
107
     ec_restriction_local_nonprim = OpenAPI_ec_restriction_1_parseFromJSON(ec_restriction);
108
     if (!ec_restriction_local_nonprim) {
109
         ogs_error("OpenAPI_ec_restriction_1_parseFromJSON failed ec_restriction");
110
         goto end;
111
     }
112
     }
113
+    }
114
 
115
     pp_data_entry_local_var = OpenAPI_pp_data_entry_create (
116
+        communication_characteristics && cJSON_IsNull(communication_characteristics) ? true : false,
117
         communication_characteristics ? communication_characteristics_local_nonprim : NULL,
118
         reference_id ? true : false,
119
         reference_id ? reference_id->valuedouble : 0,
120
         validity_time && !cJSON_IsNull(validity_time) ? ogs_strdup(validity_time->valuestring) : NULL,
121
         mtc_provider_information && !cJSON_IsNull(mtc_provider_information) ? ogs_strdup(mtc_provider_information->valuestring) : NULL,
122
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL,
123
+        ecs_addr_config_info && cJSON_IsNull(ecs_addr_config_info) ? true : false,
124
         ecs_addr_config_info ? ecs_addr_config_info_local_nonprim : NULL,
125
         additional_ecs_addr_config_infos ? additional_ecs_addr_config_infosList : NULL,
126
+        ec_restriction && cJSON_IsNull(ec_restriction) ? true : false,
127
         ec_restriction ? ec_restriction_local_nonprim : NULL
128
     );
129
 
130
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pp_data_entry.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pp_data_entry.h Changed
34
 
1
@@ -22,26 +22,32 @@
2
 
3
 typedef struct OpenAPI_pp_data_entry_s OpenAPI_pp_data_entry_t;
4
 typedef struct OpenAPI_pp_data_entry_s {
5
+    bool is_communication_characteristics_null;
6
     struct OpenAPI_communication_characteristics_af_s *communication_characteristics;
7
     bool is_reference_id;
8
     int reference_id;
9
     char *validity_time;
10
     char *mtc_provider_information;
11
     char *supported_features;
12
+    bool is_ecs_addr_config_info_null;
13
     struct OpenAPI_ecs_addr_config_info_1_s *ecs_addr_config_info;
14
     OpenAPI_list_t *additional_ecs_addr_config_infos;
15
+    bool is_ec_restriction_null;
16
     struct OpenAPI_ec_restriction_1_s *ec_restriction;
17
 } OpenAPI_pp_data_entry_t;
18
 
19
 OpenAPI_pp_data_entry_t *OpenAPI_pp_data_entry_create(
20
+    bool is_communication_characteristics_null,
21
     OpenAPI_communication_characteristics_af_t *communication_characteristics,
22
     bool is_reference_id,
23
     int reference_id,
24
     char *validity_time,
25
     char *mtc_provider_information,
26
     char *supported_features,
27
+    bool is_ecs_addr_config_info_null,
28
     OpenAPI_ecs_addr_config_info_1_t *ecs_addr_config_info,
29
     OpenAPI_list_t *additional_ecs_addr_config_infos,
30
+    bool is_ec_restriction_null,
31
     OpenAPI_ec_restriction_1_t *ec_restriction
32
 );
33
 void OpenAPI_pp_data_entry_free(OpenAPI_pp_data_entry_t *pp_data_entry);
34
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_info.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_info.c Changed
25
 
1
@@ -8,6 +8,7 @@
2
     char *supi_or_suci,
3
     char *_5g_pruk_id,
4
     int relay_service_code,
5
+    bool is_nonce1_null,
6
     char *nonce1,
7
     char *supported_features
8
 )
9
@@ -18,6 +19,7 @@
10
     pro_se_authentication_info_local_var->supi_or_suci = supi_or_suci;
11
     pro_se_authentication_info_local_var->_5g_pruk_id = _5g_pruk_id;
12
     pro_se_authentication_info_local_var->relay_service_code = relay_service_code;
13
+    pro_se_authentication_info_local_var->is_nonce1_null = is_nonce1_null;
14
     pro_se_authentication_info_local_var->nonce1 = nonce1;
15
     pro_se_authentication_info_local_var->supported_features = supported_features;
16
 
17
@@ -158,6 +160,7 @@
18
         _5g_pruk_id && !cJSON_IsNull(_5g_pruk_id) ? ogs_strdup(_5g_pruk_id->valuestring) : NULL,
19
         
20
         relay_service_code->valuedouble,
21
+        nonce1 && cJSON_IsNull(nonce1) ? true : false,
22
         ogs_strdup(nonce1->valuestring),
23
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL
24
     );
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_info.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_info.h Changed
17
 
1
@@ -22,6 +22,7 @@
2
     char *supi_or_suci;
3
     char *_5g_pruk_id;
4
     int relay_service_code;
5
+    bool is_nonce1_null;
6
     char *nonce1;
7
     char *supported_features;
8
 } OpenAPI_pro_se_authentication_info_t;
9
@@ -30,6 +31,7 @@
10
     char *supi_or_suci,
11
     char *_5g_pruk_id,
12
     int relay_service_code,
13
+    bool is_nonce1_null,
14
     char *nonce1,
15
     char *supported_features
16
 );
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_result.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_result.c Changed
51
 
1
@@ -6,6 +6,7 @@
2
 
3
 OpenAPI_pro_se_authentication_result_t *OpenAPI_pro_se_authentication_result_create(
4
     char *knr_pro_se,
5
+    bool is_nonce2_null,
6
     char *nonce2,
7
     char *supported_features
8
 )
9
@@ -14,6 +15,7 @@
10
     ogs_assert(pro_se_authentication_result_local_var);
11
 
12
     pro_se_authentication_result_local_var->knr_pro_se = knr_pro_se;
13
+    pro_se_authentication_result_local_var->is_nonce2_null = is_nonce2_null;
14
     pro_se_authentication_result_local_var->nonce2 = nonce2;
15
     pro_se_authentication_result_local_var->supported_features = supported_features;
16
 
17
@@ -65,6 +67,11 @@
18
         ogs_error("OpenAPI_pro_se_authentication_result_convertToJSON() failed nonce2");
19
         goto end;
20
     }
21
+    } else if (pro_se_authentication_result->is_nonce2_null) {
22
+        if (cJSON_AddNullToObject(item, "nonce2") == NULL) {
23
+            ogs_error("OpenAPI_pro_se_authentication_result_convertToJSON() failed nonce2");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (pro_se_authentication_result->supported_features) {
29
@@ -95,11 +102,13 @@
30
 
31
     nonce2 = cJSON_GetObjectItemCaseSensitive(pro_se_authentication_resultJSON, "nonce2");
32
     if (nonce2) {
33
+    if (!cJSON_IsNull(nonce2)) {
34
     if (!cJSON_IsString(nonce2) && !cJSON_IsNull(nonce2)) {
35
         ogs_error("OpenAPI_pro_se_authentication_result_parseFromJSON() failed nonce2");
36
         goto end;
37
     }
38
     }
39
+    }
40
 
41
     supported_features = cJSON_GetObjectItemCaseSensitive(pro_se_authentication_resultJSON, "supportedFeatures");
42
     if (supported_features) {
43
@@ -111,6 +120,7 @@
44
 
45
     pro_se_authentication_result_local_var = OpenAPI_pro_se_authentication_result_create (
46
         knr_pro_se && !cJSON_IsNull(knr_pro_se) ? ogs_strdup(knr_pro_se->valuestring) : NULL,
47
+        nonce2 && cJSON_IsNull(nonce2) ? true : false,
48
         nonce2 && !cJSON_IsNull(nonce2) ? ogs_strdup(nonce2->valuestring) : NULL,
49
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL
50
     );
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_result.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pro_se_authentication_result.h Changed
16
 
1
@@ -20,12 +20,14 @@
2
 typedef struct OpenAPI_pro_se_authentication_result_s OpenAPI_pro_se_authentication_result_t;
3
 typedef struct OpenAPI_pro_se_authentication_result_s {
4
     char *knr_pro_se;
5
+    bool is_nonce2_null;
6
     char *nonce2;
7
     char *supported_features;
8
 } OpenAPI_pro_se_authentication_result_t;
9
 
10
 OpenAPI_pro_se_authentication_result_t *OpenAPI_pro_se_authentication_result_create(
11
     char *knr_pro_se,
12
+    bool is_nonce2_null,
13
     char *nonce2,
14
     char *supported_features
15
 );
16
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.c Changed
69
 
1
@@ -5,11 +5,13 @@
2
 #include "pro_se_eap_session.h"
3
 
4
 OpenAPI_pro_se_eap_session_t *OpenAPI_pro_se_eap_session_create(
5
+    bool is_eap_payload_null,
6
     char *eap_payload,
7
     char *knr_pro_se,
8
     OpenAPI_list_t* _links,
9
     OpenAPI_auth_result_e auth_result,
10
     char *supported_features,
11
+    bool is_nonce2_null,
12
     char *nonce2,
13
     char *_5g_pruk_id
14
 )
15
@@ -17,11 +19,13 @@
16
     OpenAPI_pro_se_eap_session_t *pro_se_eap_session_local_var = ogs_malloc(sizeof(OpenAPI_pro_se_eap_session_t));
17
     ogs_assert(pro_se_eap_session_local_var);
18
 
19
+    pro_se_eap_session_local_var->is_eap_payload_null = is_eap_payload_null;
20
     pro_se_eap_session_local_var->eap_payload = eap_payload;
21
     pro_se_eap_session_local_var->knr_pro_se = knr_pro_se;
22
     pro_se_eap_session_local_var->_links = _links;
23
     pro_se_eap_session_local_var->auth_result = auth_result;
24
     pro_se_eap_session_local_var->supported_features = supported_features;
25
+    pro_se_eap_session_local_var->is_nonce2_null = is_nonce2_null;
26
     pro_se_eap_session_local_var->nonce2 = nonce2;
27
     pro_se_eap_session_local_var->_5g_pruk_id = _5g_pruk_id;
28
 
29
@@ -144,6 +148,11 @@
30
         ogs_error("OpenAPI_pro_se_eap_session_convertToJSON() failed nonce2");
31
         goto end;
32
     }
33
+    } else if (pro_se_eap_session->is_nonce2_null) {
34
+        if (cJSON_AddNullToObject(item, "nonce2") == NULL) {
35
+            ogs_error("OpenAPI_pro_se_eap_session_convertToJSON() failed nonce2");
36
+            goto end;
37
+        }
38
     }
39
 
40
     if (pro_se_eap_session->_5g_pruk_id) {
41
@@ -233,11 +242,13 @@
42
 
43
     nonce2 = cJSON_GetObjectItemCaseSensitive(pro_se_eap_sessionJSON, "nonce2");
44
     if (nonce2) {
45
+    if (!cJSON_IsNull(nonce2)) {
46
     if (!cJSON_IsString(nonce2) && !cJSON_IsNull(nonce2)) {
47
         ogs_error("OpenAPI_pro_se_eap_session_parseFromJSON() failed nonce2");
48
         goto end;
49
     }
50
     }
51
+    }
52
 
53
     _5g_pruk_id = cJSON_GetObjectItemCaseSensitive(pro_se_eap_sessionJSON, "5gPrukId");
54
     if (_5g_pruk_id) {
55
@@ -248,11 +259,13 @@
56
     }
57
 
58
     pro_se_eap_session_local_var = OpenAPI_pro_se_eap_session_create (
59
+        eap_payload && cJSON_IsNull(eap_payload) ? true : false,
60
         ogs_strdup(eap_payload->valuestring),
61
         knr_pro_se && !cJSON_IsNull(knr_pro_se) ? ogs_strdup(knr_pro_se->valuestring) : NULL,
62
         _links ? _linksList : NULL,
63
         auth_result ? auth_resultVariable : 0,
64
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL,
65
+        nonce2 && cJSON_IsNull(nonce2) ? true : false,
66
         nonce2 && !cJSON_IsNull(nonce2) ? ogs_strdup(nonce2->valuestring) : NULL,
67
         _5g_pruk_id && !cJSON_IsNull(_5g_pruk_id) ? ogs_strdup(_5g_pruk_id->valuestring) : NULL
68
     );
69
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/pro_se_eap_session.h Changed
27
 
1
@@ -21,21 +21,25 @@
2
 
3
 typedef struct OpenAPI_pro_se_eap_session_s OpenAPI_pro_se_eap_session_t;
4
 typedef struct OpenAPI_pro_se_eap_session_s {
5
+    bool is_eap_payload_null;
6
     char *eap_payload;
7
     char *knr_pro_se;
8
     OpenAPI_list_t* _links;
9
     OpenAPI_auth_result_e auth_result;
10
     char *supported_features;
11
+    bool is_nonce2_null;
12
     char *nonce2;
13
     char *_5g_pruk_id;
14
 } OpenAPI_pro_se_eap_session_t;
15
 
16
 OpenAPI_pro_se_eap_session_t *OpenAPI_pro_se_eap_session_create(
17
+    bool is_eap_payload_null,
18
     char *eap_payload,
19
     char *knr_pro_se,
20
     OpenAPI_list_t* _links,
21
     OpenAPI_auth_result_e auth_result,
22
     char *supported_features,
23
+    bool is_nonce2_null,
24
     char *nonce2,
25
     char *_5g_pruk_id
26
 );
27
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/provisioned_data_sets.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/provisioned_data_sets.c Changed
52
 
1
@@ -9,6 +9,7 @@
2
     OpenAPI_smf_selection_subscription_data_t *smf_sel_data,
3
     OpenAPI_sms_subscription_data_t *sms_subs_data,
4
     OpenAPI_sm_subs_data_t *sm_data,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     OpenAPI_sms_management_subscription_data_t *sms_mng_data,
8
     OpenAPI_lcs_privacy_data_t *lcs_privacy_data,
9
@@ -30,6 +31,7 @@
10
     provisioned_data_sets_local_var->smf_sel_data = smf_sel_data;
11
     provisioned_data_sets_local_var->sms_subs_data = sms_subs_data;
12
     provisioned_data_sets_local_var->sm_data = sm_data;
13
+    provisioned_data_sets_local_var->is_trace_data_null = is_trace_data_null;
14
     provisioned_data_sets_local_var->trace_data = trace_data;
15
     provisioned_data_sets_local_var->sms_mng_data = sms_mng_data;
16
     provisioned_data_sets_local_var->lcs_privacy_data = lcs_privacy_data;
17
@@ -194,6 +196,11 @@
18
         ogs_error("OpenAPI_provisioned_data_sets_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (provisioned_data_sets->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_provisioned_data_sets_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (provisioned_data_sets->sms_mng_data) {
29
@@ -417,12 +424,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(provisioned_data_setsJSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     sms_mng_data = cJSON_GetObjectItemCaseSensitive(provisioned_data_setsJSON, "smsMngData");
43
     if (sms_mng_data) {
44
@@ -528,6 +537,7 @@
45
         smf_sel_data ? smf_sel_data_local_nonprim : NULL,
46
         sms_subs_data ? sms_subs_data_local_nonprim : NULL,
47
         sm_data ? sm_data_local_nonprim : NULL,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL,
50
         sms_mng_data ? sms_mng_data_local_nonprim : NULL,
51
         lcs_privacy_data ? lcs_privacy_data_local_nonprim : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/provisioned_data_sets.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/provisioned_data_sets.h Changed
17
 
1
@@ -39,6 +39,7 @@
2
     struct OpenAPI_smf_selection_subscription_data_s *smf_sel_data;
3
     struct OpenAPI_sms_subscription_data_s *sms_subs_data;
4
     struct OpenAPI_sm_subs_data_s *sm_data;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     struct OpenAPI_sms_management_subscription_data_s *sms_mng_data;
8
     struct OpenAPI_lcs_privacy_data_s *lcs_privacy_data;
9
@@ -58,6 +59,7 @@
10
     OpenAPI_smf_selection_subscription_data_t *smf_sel_data,
11
     OpenAPI_sms_subscription_data_t *sms_subs_data,
12
     OpenAPI_sm_subs_data_t *sm_data,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data,
15
     OpenAPI_sms_management_subscription_data_t *sms_mng_data,
16
     OpenAPI_lcs_privacy_data_t *lcs_privacy_data,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/qos_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/qos_data.c Changed
357
 
1
@@ -8,29 +8,39 @@
2
     char *qos_id,
3
     bool is__5qi,
4
     int _5qi,
5
+    bool is_maxbr_ul_null,
6
     char *maxbr_ul,
7
+    bool is_maxbr_dl_null,
8
     char *maxbr_dl,
9
+    bool is_gbr_ul_null,
10
     char *gbr_ul,
11
+    bool is_gbr_dl_null,
12
     char *gbr_dl,
13
     OpenAPI_arp_t *arp,
14
     bool is_qnc,
15
     int qnc,
16
+    bool is_priority_level_null,
17
     bool is_priority_level,
18
     int priority_level,
19
+    bool is_aver_window_null,
20
     bool is_aver_window,
21
     int aver_window,
22
+    bool is_max_data_burst_vol_null,
23
     bool is_max_data_burst_vol,
24
     int max_data_burst_vol,
25
     bool is_reflective_qos,
26
     int reflective_qos,
27
     char *sharing_key_dl,
28
     char *sharing_key_ul,
29
+    bool is_max_packet_loss_rate_dl_null,
30
     bool is_max_packet_loss_rate_dl,
31
     int max_packet_loss_rate_dl,
32
+    bool is_max_packet_loss_rate_ul_null,
33
     bool is_max_packet_loss_rate_ul,
34
     int max_packet_loss_rate_ul,
35
     bool is_def_qos_flow_indication,
36
     int def_qos_flow_indication,
37
+    bool is_ext_max_data_burst_vol_null,
38
     bool is_ext_max_data_burst_vol,
39
     int ext_max_data_burst_vol,
40
     bool is_packet_delay_budget,
41
@@ -44,29 +54,39 @@
42
     qos_data_local_var->qos_id = qos_id;
43
     qos_data_local_var->is__5qi = is__5qi;
44
     qos_data_local_var->_5qi = _5qi;
45
+    qos_data_local_var->is_maxbr_ul_null = is_maxbr_ul_null;
46
     qos_data_local_var->maxbr_ul = maxbr_ul;
47
+    qos_data_local_var->is_maxbr_dl_null = is_maxbr_dl_null;
48
     qos_data_local_var->maxbr_dl = maxbr_dl;
49
+    qos_data_local_var->is_gbr_ul_null = is_gbr_ul_null;
50
     qos_data_local_var->gbr_ul = gbr_ul;
51
+    qos_data_local_var->is_gbr_dl_null = is_gbr_dl_null;
52
     qos_data_local_var->gbr_dl = gbr_dl;
53
     qos_data_local_var->arp = arp;
54
     qos_data_local_var->is_qnc = is_qnc;
55
     qos_data_local_var->qnc = qnc;
56
+    qos_data_local_var->is_priority_level_null = is_priority_level_null;
57
     qos_data_local_var->is_priority_level = is_priority_level;
58
     qos_data_local_var->priority_level = priority_level;
59
+    qos_data_local_var->is_aver_window_null = is_aver_window_null;
60
     qos_data_local_var->is_aver_window = is_aver_window;
61
     qos_data_local_var->aver_window = aver_window;
62
+    qos_data_local_var->is_max_data_burst_vol_null = is_max_data_burst_vol_null;
63
     qos_data_local_var->is_max_data_burst_vol = is_max_data_burst_vol;
64
     qos_data_local_var->max_data_burst_vol = max_data_burst_vol;
65
     qos_data_local_var->is_reflective_qos = is_reflective_qos;
66
     qos_data_local_var->reflective_qos = reflective_qos;
67
     qos_data_local_var->sharing_key_dl = sharing_key_dl;
68
     qos_data_local_var->sharing_key_ul = sharing_key_ul;
69
+    qos_data_local_var->is_max_packet_loss_rate_dl_null = is_max_packet_loss_rate_dl_null;
70
     qos_data_local_var->is_max_packet_loss_rate_dl = is_max_packet_loss_rate_dl;
71
     qos_data_local_var->max_packet_loss_rate_dl = max_packet_loss_rate_dl;
72
+    qos_data_local_var->is_max_packet_loss_rate_ul_null = is_max_packet_loss_rate_ul_null;
73
     qos_data_local_var->is_max_packet_loss_rate_ul = is_max_packet_loss_rate_ul;
74
     qos_data_local_var->max_packet_loss_rate_ul = max_packet_loss_rate_ul;
75
     qos_data_local_var->is_def_qos_flow_indication = is_def_qos_flow_indication;
76
     qos_data_local_var->def_qos_flow_indication = def_qos_flow_indication;
77
+    qos_data_local_var->is_ext_max_data_burst_vol_null = is_ext_max_data_burst_vol_null;
78
     qos_data_local_var->is_ext_max_data_burst_vol = is_ext_max_data_burst_vol;
79
     qos_data_local_var->ext_max_data_burst_vol = ext_max_data_burst_vol;
80
     qos_data_local_var->is_packet_delay_budget = is_packet_delay_budget;
81
@@ -154,6 +174,11 @@
82
         ogs_error("OpenAPI_qos_data_convertToJSON() failed maxbr_ul");
83
         goto end;
84
     }
85
+    } else if (qos_data->is_maxbr_ul_null) {
86
+        if (cJSON_AddNullToObject(item, "maxbrUl") == NULL) {
87
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed maxbr_ul");
88
+            goto end;
89
+        }
90
     }
91
 
92
     if (qos_data->maxbr_dl) {
93
@@ -161,6 +186,11 @@
94
         ogs_error("OpenAPI_qos_data_convertToJSON() failed maxbr_dl");
95
         goto end;
96
     }
97
+    } else if (qos_data->is_maxbr_dl_null) {
98
+        if (cJSON_AddNullToObject(item, "maxbrDl") == NULL) {
99
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed maxbr_dl");
100
+            goto end;
101
+        }
102
     }
103
 
104
     if (qos_data->gbr_ul) {
105
@@ -168,6 +198,11 @@
106
         ogs_error("OpenAPI_qos_data_convertToJSON() failed gbr_ul");
107
         goto end;
108
     }
109
+    } else if (qos_data->is_gbr_ul_null) {
110
+        if (cJSON_AddNullToObject(item, "gbrUl") == NULL) {
111
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed gbr_ul");
112
+            goto end;
113
+        }
114
     }
115
 
116
     if (qos_data->gbr_dl) {
117
@@ -175,6 +210,11 @@
118
         ogs_error("OpenAPI_qos_data_convertToJSON() failed gbr_dl");
119
         goto end;
120
     }
121
+    } else if (qos_data->is_gbr_dl_null) {
122
+        if (cJSON_AddNullToObject(item, "gbrDl") == NULL) {
123
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed gbr_dl");
124
+            goto end;
125
+        }
126
     }
127
 
128
     if (qos_data->arp) {
129
@@ -202,6 +242,11 @@
130
         ogs_error("OpenAPI_qos_data_convertToJSON() failed priority_level");
131
         goto end;
132
     }
133
+    } else if (qos_data->is_priority_level_null) {
134
+        if (cJSON_AddNullToObject(item, "priorityLevel") == NULL) {
135
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed priority_level");
136
+            goto end;
137
+        }
138
     }
139
 
140
     if (qos_data->is_aver_window) {
141
@@ -209,6 +254,11 @@
142
         ogs_error("OpenAPI_qos_data_convertToJSON() failed aver_window");
143
         goto end;
144
     }
145
+    } else if (qos_data->is_aver_window_null) {
146
+        if (cJSON_AddNullToObject(item, "averWindow") == NULL) {
147
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed aver_window");
148
+            goto end;
149
+        }
150
     }
151
 
152
     if (qos_data->is_max_data_burst_vol) {
153
@@ -216,6 +266,11 @@
154
         ogs_error("OpenAPI_qos_data_convertToJSON() failed max_data_burst_vol");
155
         goto end;
156
     }
157
+    } else if (qos_data->is_max_data_burst_vol_null) {
158
+        if (cJSON_AddNullToObject(item, "maxDataBurstVol") == NULL) {
159
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed max_data_burst_vol");
160
+            goto end;
161
+        }
162
     }
163
 
164
     if (qos_data->is_reflective_qos) {
165
@@ -244,6 +299,11 @@
166
         ogs_error("OpenAPI_qos_data_convertToJSON() failed max_packet_loss_rate_dl");
167
         goto end;
168
     }
169
+    } else if (qos_data->is_max_packet_loss_rate_dl_null) {
170
+        if (cJSON_AddNullToObject(item, "maxPacketLossRateDl") == NULL) {
171
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed max_packet_loss_rate_dl");
172
+            goto end;
173
+        }
174
     }
175
 
176
     if (qos_data->is_max_packet_loss_rate_ul) {
177
@@ -251,6 +311,11 @@
178
         ogs_error("OpenAPI_qos_data_convertToJSON() failed max_packet_loss_rate_ul");
179
         goto end;
180
     }
181
+    } else if (qos_data->is_max_packet_loss_rate_ul_null) {
182
+        if (cJSON_AddNullToObject(item, "maxPacketLossRateUl") == NULL) {
183
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed max_packet_loss_rate_ul");
184
+            goto end;
185
+        }
186
     }
187
 
188
     if (qos_data->is_def_qos_flow_indication) {
189
@@ -265,6 +330,11 @@
190
         ogs_error("OpenAPI_qos_data_convertToJSON() failed ext_max_data_burst_vol");
191
         goto end;
192
     }
193
+    } else if (qos_data->is_ext_max_data_burst_vol_null) {
194
+        if (cJSON_AddNullToObject(item, "extMaxDataBurstVol") == NULL) {
195
+            ogs_error("OpenAPI_qos_data_convertToJSON() failed ext_max_data_burst_vol");
196
+            goto end;
197
+        }
198
     }
199
 
200
     if (qos_data->is_packet_delay_budget) {
201
@@ -330,35 +400,43 @@
202
 
203
     maxbr_ul = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "maxbrUl");
204
     if (maxbr_ul) {
205
+    if (!cJSON_IsNull(maxbr_ul)) {
206
     if (!cJSON_IsString(maxbr_ul) && !cJSON_IsNull(maxbr_ul)) {
207
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed maxbr_ul");
208
         goto end;
209
     }
210
     }
211
+    }
212
 
213
     maxbr_dl = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "maxbrDl");
214
     if (maxbr_dl) {
215
+    if (!cJSON_IsNull(maxbr_dl)) {
216
     if (!cJSON_IsString(maxbr_dl) && !cJSON_IsNull(maxbr_dl)) {
217
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed maxbr_dl");
218
         goto end;
219
     }
220
     }
221
+    }
222
 
223
     gbr_ul = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "gbrUl");
224
     if (gbr_ul) {
225
+    if (!cJSON_IsNull(gbr_ul)) {
226
     if (!cJSON_IsString(gbr_ul) && !cJSON_IsNull(gbr_ul)) {
227
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed gbr_ul");
228
         goto end;
229
     }
230
     }
231
+    }
232
 
233
     gbr_dl = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "gbrDl");
234
     if (gbr_dl) {
235
+    if (!cJSON_IsNull(gbr_dl)) {
236
     if (!cJSON_IsString(gbr_dl) && !cJSON_IsNull(gbr_dl)) {
237
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed gbr_dl");
238
         goto end;
239
     }
240
     }
241
+    }
242
 
243
     arp = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "arp");
244
     if (arp) {
245
@@ -379,27 +457,33 @@
246
 
247
     priority_level = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "priorityLevel");
248
     if (priority_level) {
249
+    if (!cJSON_IsNull(priority_level)) {
250
     if (!cJSON_IsNumber(priority_level)) {
251
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed priority_level");
252
         goto end;
253
     }
254
     }
255
+    }
256
 
257
     aver_window = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "averWindow");
258
     if (aver_window) {
259
+    if (!cJSON_IsNull(aver_window)) {
260
     if (!cJSON_IsNumber(aver_window)) {
261
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed aver_window");
262
         goto end;
263
     }
264
     }
265
+    }
266
 
267
     max_data_burst_vol = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "maxDataBurstVol");
268
     if (max_data_burst_vol) {
269
+    if (!cJSON_IsNull(max_data_burst_vol)) {
270
     if (!cJSON_IsNumber(max_data_burst_vol)) {
271
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed max_data_burst_vol");
272
         goto end;
273
     }
274
     }
275
+    }
276
 
277
     reflective_qos = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "reflectiveQos");
278
     if (reflective_qos) {
279
@@ -427,19 +511,23 @@
280
 
281
     max_packet_loss_rate_dl = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "maxPacketLossRateDl");
282
     if (max_packet_loss_rate_dl) {
283
+    if (!cJSON_IsNull(max_packet_loss_rate_dl)) {
284
     if (!cJSON_IsNumber(max_packet_loss_rate_dl)) {
285
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed max_packet_loss_rate_dl");
286
         goto end;
287
     }
288
     }
289
+    }
290
 
291
     max_packet_loss_rate_ul = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "maxPacketLossRateUl");
292
     if (max_packet_loss_rate_ul) {
293
+    if (!cJSON_IsNull(max_packet_loss_rate_ul)) {
294
     if (!cJSON_IsNumber(max_packet_loss_rate_ul)) {
295
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed max_packet_loss_rate_ul");
296
         goto end;
297
     }
298
     }
299
+    }
300
 
301
     def_qos_flow_indication = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "defQosFlowIndication");
302
     if (def_qos_flow_indication) {
303
@@ -451,11 +539,13 @@
304
 
305
     ext_max_data_burst_vol = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "extMaxDataBurstVol");
306
     if (ext_max_data_burst_vol) {
307
+    if (!cJSON_IsNull(ext_max_data_burst_vol)) {
308
     if (!cJSON_IsNumber(ext_max_data_burst_vol)) {
309
         ogs_error("OpenAPI_qos_data_parseFromJSON() failed ext_max_data_burst_vol");
310
         goto end;
311
     }
312
     }
313
+    }
314
 
315
     packet_delay_budget = cJSON_GetObjectItemCaseSensitive(qos_dataJSON, "packetDelayBudget");
316
     if (packet_delay_budget) {
317
@@ -477,29 +567,39 @@
318
         ogs_strdup(qos_id->valuestring),
319
         _5qi ? true : false,
320
         _5qi ? _5qi->valuedouble : 0,
321
+        maxbr_ul && cJSON_IsNull(maxbr_ul) ? true : false,
322
         maxbr_ul && !cJSON_IsNull(maxbr_ul) ? ogs_strdup(maxbr_ul->valuestring) : NULL,
323
+        maxbr_dl && cJSON_IsNull(maxbr_dl) ? true : false,
324
         maxbr_dl && !cJSON_IsNull(maxbr_dl) ? ogs_strdup(maxbr_dl->valuestring) : NULL,
325
+        gbr_ul && cJSON_IsNull(gbr_ul) ? true : false,
326
         gbr_ul && !cJSON_IsNull(gbr_ul) ? ogs_strdup(gbr_ul->valuestring) : NULL,
327
+        gbr_dl && cJSON_IsNull(gbr_dl) ? true : false,
328
         gbr_dl && !cJSON_IsNull(gbr_dl) ? ogs_strdup(gbr_dl->valuestring) : NULL,
329
         arp ? arp_local_nonprim : NULL,
330
         qnc ? true : false,
331
         qnc ? qnc->valueint : 0,
332
+        priority_level && cJSON_IsNull(priority_level) ? true : false,
333
         priority_level ? true : false,
334
         priority_level ? priority_level->valuedouble : 0,
335
+        aver_window && cJSON_IsNull(aver_window) ? true : false,
336
         aver_window ? true : false,
337
         aver_window ? aver_window->valuedouble : 0,
338
+        max_data_burst_vol && cJSON_IsNull(max_data_burst_vol) ? true : false,
339
         max_data_burst_vol ? true : false,
340
         max_data_burst_vol ? max_data_burst_vol->valuedouble : 0,
341
         reflective_qos ? true : false,
342
         reflective_qos ? reflective_qos->valueint : 0,
343
         sharing_key_dl && !cJSON_IsNull(sharing_key_dl) ? ogs_strdup(sharing_key_dl->valuestring) : NULL,
344
         sharing_key_ul && !cJSON_IsNull(sharing_key_ul) ? ogs_strdup(sharing_key_ul->valuestring) : NULL,
345
+        max_packet_loss_rate_dl && cJSON_IsNull(max_packet_loss_rate_dl) ? true : false,
346
         max_packet_loss_rate_dl ? true : false,
347
         max_packet_loss_rate_dl ? max_packet_loss_rate_dl->valuedouble : 0,
348
+        max_packet_loss_rate_ul && cJSON_IsNull(max_packet_loss_rate_ul) ? true : false,
349
         max_packet_loss_rate_ul ? true : false,
350
         max_packet_loss_rate_ul ? max_packet_loss_rate_ul->valuedouble : 0,
351
         def_qos_flow_indication ? true : false,
352
         def_qos_flow_indication ? def_qos_flow_indication->valueint : 0,
353
+        ext_max_data_burst_vol && cJSON_IsNull(ext_max_data_burst_vol) ? true : false,
354
         ext_max_data_burst_vol ? true : false,
355
         ext_max_data_burst_vol ? ext_max_data_burst_vol->valuedouble : 0,
356
         packet_delay_budget ? true : false,
357
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/qos_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/qos_data.h Changed
81
 
1
@@ -23,29 +23,39 @@
2
     char *qos_id;
3
     bool is__5qi;
4
     int _5qi;
5
+    bool is_maxbr_ul_null;
6
     char *maxbr_ul;
7
+    bool is_maxbr_dl_null;
8
     char *maxbr_dl;
9
+    bool is_gbr_ul_null;
10
     char *gbr_ul;
11
+    bool is_gbr_dl_null;
12
     char *gbr_dl;
13
     struct OpenAPI_arp_s *arp;
14
     bool is_qnc;
15
     int qnc;
16
+    bool is_priority_level_null;
17
     bool is_priority_level;
18
     int priority_level;
19
+    bool is_aver_window_null;
20
     bool is_aver_window;
21
     int aver_window;
22
+    bool is_max_data_burst_vol_null;
23
     bool is_max_data_burst_vol;
24
     int max_data_burst_vol;
25
     bool is_reflective_qos;
26
     int reflective_qos;
27
     char *sharing_key_dl;
28
     char *sharing_key_ul;
29
+    bool is_max_packet_loss_rate_dl_null;
30
     bool is_max_packet_loss_rate_dl;
31
     int max_packet_loss_rate_dl;
32
+    bool is_max_packet_loss_rate_ul_null;
33
     bool is_max_packet_loss_rate_ul;
34
     int max_packet_loss_rate_ul;
35
     bool is_def_qos_flow_indication;
36
     int def_qos_flow_indication;
37
+    bool is_ext_max_data_burst_vol_null;
38
     bool is_ext_max_data_burst_vol;
39
     int ext_max_data_burst_vol;
40
     bool is_packet_delay_budget;
41
@@ -57,29 +67,39 @@
42
     char *qos_id,
43
     bool is__5qi,
44
     int _5qi,
45
+    bool is_maxbr_ul_null,
46
     char *maxbr_ul,
47
+    bool is_maxbr_dl_null,
48
     char *maxbr_dl,
49
+    bool is_gbr_ul_null,
50
     char *gbr_ul,
51
+    bool is_gbr_dl_null,
52
     char *gbr_dl,
53
     OpenAPI_arp_t *arp,
54
     bool is_qnc,
55
     int qnc,
56
+    bool is_priority_level_null,
57
     bool is_priority_level,
58
     int priority_level,
59
+    bool is_aver_window_null,
60
     bool is_aver_window,
61
     int aver_window,
62
+    bool is_max_data_burst_vol_null,
63
     bool is_max_data_burst_vol,
64
     int max_data_burst_vol,
65
     bool is_reflective_qos,
66
     int reflective_qos,
67
     char *sharing_key_dl,
68
     char *sharing_key_ul,
69
+    bool is_max_packet_loss_rate_dl_null,
70
     bool is_max_packet_loss_rate_dl,
71
     int max_packet_loss_rate_dl,
72
+    bool is_max_packet_loss_rate_ul_null,
73
     bool is_max_packet_loss_rate_ul,
74
     int max_packet_loss_rate_ul,
75
     bool is_def_qos_flow_indication,
76
     int def_qos_flow_indication,
77
+    bool is_ext_max_data_burst_vol_null,
78
     bool is_ext_max_data_burst_vol,
79
     int ext_max_data_burst_vol,
80
     bool is_packet_delay_budget,
81
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/qos_monitoring_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/qos_monitoring_data.c Changed
234
 
1
@@ -8,17 +8,24 @@
2
     char *qm_id,
3
     OpenAPI_list_t *req_qos_mon_params,
4
     OpenAPI_list_t *rep_freqs,
5
+    bool is_rep_thresh_dl_null,
6
     bool is_rep_thresh_dl,
7
     int rep_thresh_dl,
8
+    bool is_rep_thresh_ul_null,
9
     bool is_rep_thresh_ul,
10
     int rep_thresh_ul,
11
+    bool is_rep_thresh_rp_null,
12
     bool is_rep_thresh_rp,
13
     int rep_thresh_rp,
14
+    bool is_wait_time_null,
15
     bool is_wait_time,
16
     int wait_time,
17
+    bool is_rep_period_null,
18
     bool is_rep_period,
19
     int rep_period,
20
+    bool is_notify_uri_null,
21
     char *notify_uri,
22
+    bool is_notify_corre_id_null,
23
     char *notify_corre_id,
24
     bool is_direct_notif_ind,
25
     int direct_notif_ind
26
@@ -30,17 +37,24 @@
27
     qos_monitoring_data_local_var->qm_id = qm_id;
28
     qos_monitoring_data_local_var->req_qos_mon_params = req_qos_mon_params;
29
     qos_monitoring_data_local_var->rep_freqs = rep_freqs;
30
+    qos_monitoring_data_local_var->is_rep_thresh_dl_null = is_rep_thresh_dl_null;
31
     qos_monitoring_data_local_var->is_rep_thresh_dl = is_rep_thresh_dl;
32
     qos_monitoring_data_local_var->rep_thresh_dl = rep_thresh_dl;
33
+    qos_monitoring_data_local_var->is_rep_thresh_ul_null = is_rep_thresh_ul_null;
34
     qos_monitoring_data_local_var->is_rep_thresh_ul = is_rep_thresh_ul;
35
     qos_monitoring_data_local_var->rep_thresh_ul = rep_thresh_ul;
36
+    qos_monitoring_data_local_var->is_rep_thresh_rp_null = is_rep_thresh_rp_null;
37
     qos_monitoring_data_local_var->is_rep_thresh_rp = is_rep_thresh_rp;
38
     qos_monitoring_data_local_var->rep_thresh_rp = rep_thresh_rp;
39
+    qos_monitoring_data_local_var->is_wait_time_null = is_wait_time_null;
40
     qos_monitoring_data_local_var->is_wait_time = is_wait_time;
41
     qos_monitoring_data_local_var->wait_time = wait_time;
42
+    qos_monitoring_data_local_var->is_rep_period_null = is_rep_period_null;
43
     qos_monitoring_data_local_var->is_rep_period = is_rep_period;
44
     qos_monitoring_data_local_var->rep_period = rep_period;
45
+    qos_monitoring_data_local_var->is_notify_uri_null = is_notify_uri_null;
46
     qos_monitoring_data_local_var->notify_uri = notify_uri;
47
+    qos_monitoring_data_local_var->is_notify_corre_id_null = is_notify_corre_id_null;
48
     qos_monitoring_data_local_var->notify_corre_id = notify_corre_id;
49
     qos_monitoring_data_local_var->is_direct_notif_ind = is_direct_notif_ind;
50
     qos_monitoring_data_local_var->direct_notif_ind = direct_notif_ind;
51
@@ -135,6 +149,11 @@
52
         ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_thresh_dl");
53
         goto end;
54
     }
55
+    } else if (qos_monitoring_data->is_rep_thresh_dl_null) {
56
+        if (cJSON_AddNullToObject(item, "repThreshDl") == NULL) {
57
+            ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_thresh_dl");
58
+            goto end;
59
+        }
60
     }
61
 
62
     if (qos_monitoring_data->is_rep_thresh_ul) {
63
@@ -142,6 +161,11 @@
64
         ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_thresh_ul");
65
         goto end;
66
     }
67
+    } else if (qos_monitoring_data->is_rep_thresh_ul_null) {
68
+        if (cJSON_AddNullToObject(item, "repThreshUl") == NULL) {
69
+            ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_thresh_ul");
70
+            goto end;
71
+        }
72
     }
73
 
74
     if (qos_monitoring_data->is_rep_thresh_rp) {
75
@@ -149,6 +173,11 @@
76
         ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_thresh_rp");
77
         goto end;
78
     }
79
+    } else if (qos_monitoring_data->is_rep_thresh_rp_null) {
80
+        if (cJSON_AddNullToObject(item, "repThreshRp") == NULL) {
81
+            ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_thresh_rp");
82
+            goto end;
83
+        }
84
     }
85
 
86
     if (qos_monitoring_data->is_wait_time) {
87
@@ -156,6 +185,11 @@
88
         ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed wait_time");
89
         goto end;
90
     }
91
+    } else if (qos_monitoring_data->is_wait_time_null) {
92
+        if (cJSON_AddNullToObject(item, "waitTime") == NULL) {
93
+            ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed wait_time");
94
+            goto end;
95
+        }
96
     }
97
 
98
     if (qos_monitoring_data->is_rep_period) {
99
@@ -163,6 +197,11 @@
100
         ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_period");
101
         goto end;
102
     }
103
+    } else if (qos_monitoring_data->is_rep_period_null) {
104
+        if (cJSON_AddNullToObject(item, "repPeriod") == NULL) {
105
+            ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed rep_period");
106
+            goto end;
107
+        }
108
     }
109
 
110
     if (qos_monitoring_data->notify_uri) {
111
@@ -170,6 +209,11 @@
112
         ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed notify_uri");
113
         goto end;
114
     }
115
+    } else if (qos_monitoring_data->is_notify_uri_null) {
116
+        if (cJSON_AddNullToObject(item, "notifyUri") == NULL) {
117
+            ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed notify_uri");
118
+            goto end;
119
+        }
120
     }
121
 
122
     if (qos_monitoring_data->notify_corre_id) {
123
@@ -177,6 +221,11 @@
124
         ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed notify_corre_id");
125
         goto end;
126
     }
127
+    } else if (qos_monitoring_data->is_notify_corre_id_null) {
128
+        if (cJSON_AddNullToObject(item, "notifyCorreId") == NULL) {
129
+            ogs_error("OpenAPI_qos_monitoring_data_convertToJSON() failed notify_corre_id");
130
+            goto end;
131
+        }
132
     }
133
 
134
     if (qos_monitoring_data->is_direct_notif_ind) {
135
@@ -273,59 +322,73 @@
136
 
137
     rep_thresh_dl = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "repThreshDl");
138
     if (rep_thresh_dl) {
139
+    if (!cJSON_IsNull(rep_thresh_dl)) {
140
     if (!cJSON_IsNumber(rep_thresh_dl)) {
141
         ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed rep_thresh_dl");
142
         goto end;
143
     }
144
     }
145
+    }
146
 
147
     rep_thresh_ul = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "repThreshUl");
148
     if (rep_thresh_ul) {
149
+    if (!cJSON_IsNull(rep_thresh_ul)) {
150
     if (!cJSON_IsNumber(rep_thresh_ul)) {
151
         ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed rep_thresh_ul");
152
         goto end;
153
     }
154
     }
155
+    }
156
 
157
     rep_thresh_rp = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "repThreshRp");
158
     if (rep_thresh_rp) {
159
+    if (!cJSON_IsNull(rep_thresh_rp)) {
160
     if (!cJSON_IsNumber(rep_thresh_rp)) {
161
         ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed rep_thresh_rp");
162
         goto end;
163
     }
164
     }
165
+    }
166
 
167
     wait_time = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "waitTime");
168
     if (wait_time) {
169
+    if (!cJSON_IsNull(wait_time)) {
170
     if (!cJSON_IsNumber(wait_time)) {
171
         ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed wait_time");
172
         goto end;
173
     }
174
     }
175
+    }
176
 
177
     rep_period = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "repPeriod");
178
     if (rep_period) {
179
+    if (!cJSON_IsNull(rep_period)) {
180
     if (!cJSON_IsNumber(rep_period)) {
181
         ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed rep_period");
182
         goto end;
183
     }
184
     }
185
+    }
186
 
187
     notify_uri = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "notifyUri");
188
     if (notify_uri) {
189
+    if (!cJSON_IsNull(notify_uri)) {
190
     if (!cJSON_IsString(notify_uri) && !cJSON_IsNull(notify_uri)) {
191
         ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed notify_uri");
192
         goto end;
193
     }
194
     }
195
+    }
196
 
197
     notify_corre_id = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "notifyCorreId");
198
     if (notify_corre_id) {
199
+    if (!cJSON_IsNull(notify_corre_id)) {
200
     if (!cJSON_IsString(notify_corre_id) && !cJSON_IsNull(notify_corre_id)) {
201
         ogs_error("OpenAPI_qos_monitoring_data_parseFromJSON() failed notify_corre_id");
202
         goto end;
203
     }
204
     }
205
+    }
206
 
207
     direct_notif_ind = cJSON_GetObjectItemCaseSensitive(qos_monitoring_dataJSON, "directNotifInd");
208
     if (direct_notif_ind) {
209
@@ -339,17 +402,24 @@
210
         ogs_strdup(qm_id->valuestring),
211
         req_qos_mon_paramsList,
212
         rep_freqsList,
213
+        rep_thresh_dl && cJSON_IsNull(rep_thresh_dl) ? true : false,
214
         rep_thresh_dl ? true : false,
215
         rep_thresh_dl ? rep_thresh_dl->valuedouble : 0,
216
+        rep_thresh_ul && cJSON_IsNull(rep_thresh_ul) ? true : false,
217
         rep_thresh_ul ? true : false,
218
         rep_thresh_ul ? rep_thresh_ul->valuedouble : 0,
219
+        rep_thresh_rp && cJSON_IsNull(rep_thresh_rp) ? true : false,
220
         rep_thresh_rp ? true : false,
221
         rep_thresh_rp ? rep_thresh_rp->valuedouble : 0,
222
+        wait_time && cJSON_IsNull(wait_time) ? true : false,
223
         wait_time ? true : false,
224
         wait_time ? wait_time->valuedouble : 0,
225
+        rep_period && cJSON_IsNull(rep_period) ? true : false,
226
         rep_period ? true : false,
227
         rep_period ? rep_period->valuedouble : 0,
228
+        notify_uri && cJSON_IsNull(notify_uri) ? true : false,
229
         notify_uri && !cJSON_IsNull(notify_uri) ? ogs_strdup(notify_uri->valuestring) : NULL,
230
+        notify_corre_id && cJSON_IsNull(notify_corre_id) ? true : false,
231
         notify_corre_id && !cJSON_IsNull(notify_corre_id) ? ogs_strdup(notify_corre_id->valuestring) : NULL,
232
         direct_notif_ind ? true : false,
233
         direct_notif_ind ? direct_notif_ind->valueint : 0
234
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/qos_monitoring_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/qos_monitoring_data.h Changed
51
 
1
@@ -24,17 +24,24 @@
2
     char *qm_id;
3
     OpenAPI_list_t *req_qos_mon_params;
4
     OpenAPI_list_t *rep_freqs;
5
+    bool is_rep_thresh_dl_null;
6
     bool is_rep_thresh_dl;
7
     int rep_thresh_dl;
8
+    bool is_rep_thresh_ul_null;
9
     bool is_rep_thresh_ul;
10
     int rep_thresh_ul;
11
+    bool is_rep_thresh_rp_null;
12
     bool is_rep_thresh_rp;
13
     int rep_thresh_rp;
14
+    bool is_wait_time_null;
15
     bool is_wait_time;
16
     int wait_time;
17
+    bool is_rep_period_null;
18
     bool is_rep_period;
19
     int rep_period;
20
+    bool is_notify_uri_null;
21
     char *notify_uri;
22
+    bool is_notify_corre_id_null;
23
     char *notify_corre_id;
24
     bool is_direct_notif_ind;
25
     int direct_notif_ind;
26
@@ -44,17 +51,24 @@
27
     char *qm_id,
28
     OpenAPI_list_t *req_qos_mon_params,
29
     OpenAPI_list_t *rep_freqs,
30
+    bool is_rep_thresh_dl_null,
31
     bool is_rep_thresh_dl,
32
     int rep_thresh_dl,
33
+    bool is_rep_thresh_ul_null,
34
     bool is_rep_thresh_ul,
35
     int rep_thresh_ul,
36
+    bool is_rep_thresh_rp_null,
37
     bool is_rep_thresh_rp,
38
     int rep_thresh_rp,
39
+    bool is_wait_time_null,
40
     bool is_wait_time,
41
     int wait_time,
42
+    bool is_rep_period_null,
43
     bool is_rep_period,
44
     int rep_period,
45
+    bool is_notify_uri_null,
46
     char *notify_uri,
47
+    bool is_notify_corre_id_null,
48
     char *notify_corre_id,
49
     bool is_direct_notif_ind,
50
     int direct_notif_ind
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/route_to_location.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/route_to_location.c Changed
76
 
1
@@ -6,7 +6,9 @@
2
 
3
 OpenAPI_route_to_location_t *OpenAPI_route_to_location_create(
4
     char *dnai,
5
+    bool is_route_info_null,
6
     OpenAPI_route_information_t *route_info,
7
+    bool is_route_prof_id_null,
8
     char *route_prof_id
9
 )
10
 {
11
@@ -14,7 +16,9 @@
12
     ogs_assert(route_to_location_local_var);
13
 
14
     route_to_location_local_var->dnai = dnai;
15
+    route_to_location_local_var->is_route_info_null = is_route_info_null;
16
     route_to_location_local_var->route_info = route_info;
17
+    route_to_location_local_var->is_route_prof_id_null = is_route_prof_id_null;
18
     route_to_location_local_var->route_prof_id = route_prof_id;
19
 
20
     return route_to_location_local_var;
21
@@ -73,6 +77,11 @@
22
         ogs_error("OpenAPI_route_to_location_convertToJSON() failed route_info");
23
         goto end;
24
     }
25
+    } else if (route_to_location->is_route_info_null) {
26
+        if (cJSON_AddNullToObject(item, "routeInfo") == NULL) {
27
+            ogs_error("OpenAPI_route_to_location_convertToJSON() failed route_info");
28
+            goto end;
29
+        }
30
     }
31
 
32
     if (route_to_location->route_prof_id) {
33
@@ -80,6 +89,11 @@
34
         ogs_error("OpenAPI_route_to_location_convertToJSON() failed route_prof_id");
35
         goto end;
36
     }
37
+    } else if (route_to_location->is_route_prof_id_null) {
38
+        if (cJSON_AddNullToObject(item, "routeProfId") == NULL) {
39
+            ogs_error("OpenAPI_route_to_location_convertToJSON() failed route_prof_id");
40
+            goto end;
41
+        }
42
     }
43
 
44
 end:
45
@@ -106,24 +120,30 @@
46
 
47
     route_info = cJSON_GetObjectItemCaseSensitive(route_to_locationJSON, "routeInfo");
48
     if (route_info) {
49
+    if (!cJSON_IsNull(route_info)) {
50
     route_info_local_nonprim = OpenAPI_route_information_parseFromJSON(route_info);
51
     if (!route_info_local_nonprim) {
52
         ogs_error("OpenAPI_route_information_parseFromJSON failed route_info");
53
         goto end;
54
     }
55
     }
56
+    }
57
 
58
     route_prof_id = cJSON_GetObjectItemCaseSensitive(route_to_locationJSON, "routeProfId");
59
     if (route_prof_id) {
60
+    if (!cJSON_IsNull(route_prof_id)) {
61
     if (!cJSON_IsString(route_prof_id) && !cJSON_IsNull(route_prof_id)) {
62
         ogs_error("OpenAPI_route_to_location_parseFromJSON() failed route_prof_id");
63
         goto end;
64
     }
65
     }
66
+    }
67
 
68
     route_to_location_local_var = OpenAPI_route_to_location_create (
69
         ogs_strdup(dnai->valuestring),
70
+        route_info && cJSON_IsNull(route_info) ? true : false,
71
         route_info ? route_info_local_nonprim : NULL,
72
+        route_prof_id && cJSON_IsNull(route_prof_id) ? true : false,
73
         route_prof_id && !cJSON_IsNull(route_prof_id) ? ogs_strdup(route_prof_id->valuestring) : NULL
74
     );
75
 
76
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/route_to_location.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/route_to_location.h Changed
19
 
1
@@ -21,13 +21,17 @@
2
 typedef struct OpenAPI_route_to_location_s OpenAPI_route_to_location_t;
3
 typedef struct OpenAPI_route_to_location_s {
4
     char *dnai;
5
+    bool is_route_info_null;
6
     struct OpenAPI_route_information_s *route_info;
7
+    bool is_route_prof_id_null;
8
     char *route_prof_id;
9
 } OpenAPI_route_to_location_t;
10
 
11
 OpenAPI_route_to_location_t *OpenAPI_route_to_location_create(
12
     char *dnai,
13
+    bool is_route_info_null,
14
     OpenAPI_route_information_t *route_info,
15
+    bool is_route_prof_id_null,
16
     char *route_prof_id
17
 );
18
 void OpenAPI_route_to_location_free(OpenAPI_route_to_location_t *route_to_location);
19
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.c Changed
52
 
1
@@ -11,6 +11,7 @@
2
     OpenAPI_list_t* shared_vn_group_data_ids,
3
     char *shared_dnn_configurations_id,
4
     OpenAPI_odb_packet_services_e odb_packet_services,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     char *shared_trace_data_id,
8
     OpenAPI_list_t* expected_ue_behaviours_list,
9
@@ -28,6 +29,7 @@
10
     session_management_subscription_data_local_var->shared_vn_group_data_ids = shared_vn_group_data_ids;
11
     session_management_subscription_data_local_var->shared_dnn_configurations_id = shared_dnn_configurations_id;
12
     session_management_subscription_data_local_var->odb_packet_services = odb_packet_services;
13
+    session_management_subscription_data_local_var->is_trace_data_null = is_trace_data_null;
14
     session_management_subscription_data_local_var->trace_data = trace_data;
15
     session_management_subscription_data_local_var->shared_trace_data_id = shared_trace_data_id;
16
     session_management_subscription_data_local_var->expected_ue_behaviours_list = expected_ue_behaviours_list;
17
@@ -240,6 +242,11 @@
18
         ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (session_management_subscription_data->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_session_management_subscription_data_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (session_management_subscription_data->shared_trace_data_id) {
29
@@ -452,12 +459,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(session_management_subscription_dataJSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     shared_trace_data_id = cJSON_GetObjectItemCaseSensitive(session_management_subscription_dataJSON, "sharedTraceDataId");
43
     if (shared_trace_data_id) {
44
@@ -542,6 +551,7 @@
45
         shared_vn_group_data_ids ? shared_vn_group_data_idsList : NULL,
46
         shared_dnn_configurations_id && !cJSON_IsNull(shared_dnn_configurations_id) ? ogs_strdup(shared_dnn_configurations_id->valuestring) : NULL,
47
         odb_packet_services ? odb_packet_servicesVariable : 0,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL,
50
         shared_trace_data_id && !cJSON_IsNull(shared_trace_data_id) ? ogs_strdup(shared_trace_data_id->valuestring) : NULL,
51
         expected_ue_behaviours_list ? expected_ue_behaviours_listList : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data.h Changed
17
 
1
@@ -31,6 +31,7 @@
2
     OpenAPI_list_t* shared_vn_group_data_ids;
3
     char *shared_dnn_configurations_id;
4
     OpenAPI_odb_packet_services_e odb_packet_services;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     char *shared_trace_data_id;
8
     OpenAPI_list_t* expected_ue_behaviours_list;
9
@@ -46,6 +47,7 @@
10
     OpenAPI_list_t* shared_vn_group_data_ids,
11
     char *shared_dnn_configurations_id,
12
     OpenAPI_odb_packet_services_e odb_packet_services,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data,
15
     char *shared_trace_data_id,
16
     OpenAPI_list_t* expected_ue_behaviours_list,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.c Changed
52
 
1
@@ -11,6 +11,7 @@
2
     OpenAPI_list_t* shared_vn_group_data_ids,
3
     char *shared_dnn_configurations_id,
4
     OpenAPI_odb_packet_services_e odb_packet_services,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     char *shared_trace_data_id,
8
     OpenAPI_list_t* expected_ue_behaviours_list,
9
@@ -28,6 +29,7 @@
10
     session_management_subscription_data_1_local_var->shared_vn_group_data_ids = shared_vn_group_data_ids;
11
     session_management_subscription_data_1_local_var->shared_dnn_configurations_id = shared_dnn_configurations_id;
12
     session_management_subscription_data_1_local_var->odb_packet_services = odb_packet_services;
13
+    session_management_subscription_data_1_local_var->is_trace_data_null = is_trace_data_null;
14
     session_management_subscription_data_1_local_var->trace_data = trace_data;
15
     session_management_subscription_data_1_local_var->shared_trace_data_id = shared_trace_data_id;
16
     session_management_subscription_data_1_local_var->expected_ue_behaviours_list = expected_ue_behaviours_list;
17
@@ -240,6 +242,11 @@
18
         ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (session_management_subscription_data_1->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_session_management_subscription_data_1_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (session_management_subscription_data_1->shared_trace_data_id) {
29
@@ -452,12 +459,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(session_management_subscription_data_1JSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     shared_trace_data_id = cJSON_GetObjectItemCaseSensitive(session_management_subscription_data_1JSON, "sharedTraceDataId");
43
     if (shared_trace_data_id) {
44
@@ -542,6 +551,7 @@
45
         shared_vn_group_data_ids ? shared_vn_group_data_idsList : NULL,
46
         shared_dnn_configurations_id && !cJSON_IsNull(shared_dnn_configurations_id) ? ogs_strdup(shared_dnn_configurations_id->valuestring) : NULL,
47
         odb_packet_services ? odb_packet_servicesVariable : 0,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL,
50
         shared_trace_data_id && !cJSON_IsNull(shared_trace_data_id) ? ogs_strdup(shared_trace_data_id->valuestring) : NULL,
51
         expected_ue_behaviours_list ? expected_ue_behaviours_listList : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/session_management_subscription_data_1.h Changed
17
 
1
@@ -31,6 +31,7 @@
2
     OpenAPI_list_t* shared_vn_group_data_ids;
3
     char *shared_dnn_configurations_id;
4
     OpenAPI_odb_packet_services_e odb_packet_services;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     char *shared_trace_data_id;
8
     OpenAPI_list_t* expected_ue_behaviours_list;
9
@@ -46,6 +47,7 @@
10
     OpenAPI_list_t* shared_vn_group_data_ids,
11
     char *shared_dnn_configurations_id,
12
     OpenAPI_odb_packet_services_e odb_packet_services,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data,
15
     char *shared_trace_data_id,
16
     OpenAPI_list_t* expected_ue_behaviours_list,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/session_rule.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/session_rule.c Changed
105
 
1
@@ -8,8 +8,11 @@
2
     OpenAPI_ambr_t *auth_sess_ambr,
3
     OpenAPI_authorized_default_qos_t *auth_def_qos,
4
     char *sess_rule_id,
5
+    bool is_ref_um_data_null,
6
     char *ref_um_data,
7
+    bool is_ref_um_n3g_data_null,
8
     char *ref_um_n3g_data,
9
+    bool is_ref_cond_data_null,
10
     char *ref_cond_data
11
 )
12
 {
13
@@ -19,8 +22,11 @@
14
     session_rule_local_var->auth_sess_ambr = auth_sess_ambr;
15
     session_rule_local_var->auth_def_qos = auth_def_qos;
16
     session_rule_local_var->sess_rule_id = sess_rule_id;
17
+    session_rule_local_var->is_ref_um_data_null = is_ref_um_data_null;
18
     session_rule_local_var->ref_um_data = ref_um_data;
19
+    session_rule_local_var->is_ref_um_n3g_data_null = is_ref_um_n3g_data_null;
20
     session_rule_local_var->ref_um_n3g_data = ref_um_n3g_data;
21
+    session_rule_local_var->is_ref_cond_data_null = is_ref_cond_data_null;
22
     session_rule_local_var->ref_cond_data = ref_cond_data;
23
 
24
     return session_rule_local_var;
25
@@ -111,6 +117,11 @@
26
         ogs_error("OpenAPI_session_rule_convertToJSON() failed ref_um_data");
27
         goto end;
28
     }
29
+    } else if (session_rule->is_ref_um_data_null) {
30
+        if (cJSON_AddNullToObject(item, "refUmData") == NULL) {
31
+            ogs_error("OpenAPI_session_rule_convertToJSON() failed ref_um_data");
32
+            goto end;
33
+        }
34
     }
35
 
36
     if (session_rule->ref_um_n3g_data) {
37
@@ -118,6 +129,11 @@
38
         ogs_error("OpenAPI_session_rule_convertToJSON() failed ref_um_n3g_data");
39
         goto end;
40
     }
41
+    } else if (session_rule->is_ref_um_n3g_data_null) {
42
+        if (cJSON_AddNullToObject(item, "refUmN3gData") == NULL) {
43
+            ogs_error("OpenAPI_session_rule_convertToJSON() failed ref_um_n3g_data");
44
+            goto end;
45
+        }
46
     }
47
 
48
     if (session_rule->ref_cond_data) {
49
@@ -125,6 +141,11 @@
50
         ogs_error("OpenAPI_session_rule_convertToJSON() failed ref_cond_data");
51
         goto end;
52
     }
53
+    } else if (session_rule->is_ref_cond_data_null) {
54
+        if (cJSON_AddNullToObject(item, "refCondData") == NULL) {
55
+            ogs_error("OpenAPI_session_rule_convertToJSON() failed ref_cond_data");
56
+            goto end;
57
+        }
58
     }
59
 
60
 end:
61
@@ -173,34 +194,43 @@
62
 
63
     ref_um_data = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "refUmData");
64
     if (ref_um_data) {
65
+    if (!cJSON_IsNull(ref_um_data)) {
66
     if (!cJSON_IsString(ref_um_data) && !cJSON_IsNull(ref_um_data)) {
67
         ogs_error("OpenAPI_session_rule_parseFromJSON() failed ref_um_data");
68
         goto end;
69
     }
70
     }
71
+    }
72
 
73
     ref_um_n3g_data = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "refUmN3gData");
74
     if (ref_um_n3g_data) {
75
+    if (!cJSON_IsNull(ref_um_n3g_data)) {
76
     if (!cJSON_IsString(ref_um_n3g_data) && !cJSON_IsNull(ref_um_n3g_data)) {
77
         ogs_error("OpenAPI_session_rule_parseFromJSON() failed ref_um_n3g_data");
78
         goto end;
79
     }
80
     }
81
+    }
82
 
83
     ref_cond_data = cJSON_GetObjectItemCaseSensitive(session_ruleJSON, "refCondData");
84
     if (ref_cond_data) {
85
+    if (!cJSON_IsNull(ref_cond_data)) {
86
     if (!cJSON_IsString(ref_cond_data) && !cJSON_IsNull(ref_cond_data)) {
87
         ogs_error("OpenAPI_session_rule_parseFromJSON() failed ref_cond_data");
88
         goto end;
89
     }
90
     }
91
+    }
92
 
93
     session_rule_local_var = OpenAPI_session_rule_create (
94
         auth_sess_ambr ? auth_sess_ambr_local_nonprim : NULL,
95
         auth_def_qos ? auth_def_qos_local_nonprim : NULL,
96
         ogs_strdup(sess_rule_id->valuestring),
97
+        ref_um_data && cJSON_IsNull(ref_um_data) ? true : false,
98
         ref_um_data && !cJSON_IsNull(ref_um_data) ? ogs_strdup(ref_um_data->valuestring) : NULL,
99
+        ref_um_n3g_data && cJSON_IsNull(ref_um_n3g_data) ? true : false,
100
         ref_um_n3g_data && !cJSON_IsNull(ref_um_n3g_data) ? ogs_strdup(ref_um_n3g_data->valuestring) : NULL,
101
+        ref_cond_data && cJSON_IsNull(ref_cond_data) ? true : false,
102
         ref_cond_data && !cJSON_IsNull(ref_cond_data) ? ogs_strdup(ref_cond_data->valuestring) : NULL
103
     );
104
 
105
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/session_rule.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/session_rule.h Changed
25
 
1
@@ -24,8 +24,11 @@
2
     struct OpenAPI_ambr_s *auth_sess_ambr;
3
     struct OpenAPI_authorized_default_qos_s *auth_def_qos;
4
     char *sess_rule_id;
5
+    bool is_ref_um_data_null;
6
     char *ref_um_data;
7
+    bool is_ref_um_n3g_data_null;
8
     char *ref_um_n3g_data;
9
+    bool is_ref_cond_data_null;
10
     char *ref_cond_data;
11
 } OpenAPI_session_rule_t;
12
 
13
@@ -33,8 +36,11 @@
14
     OpenAPI_ambr_t *auth_sess_ambr,
15
     OpenAPI_authorized_default_qos_t *auth_def_qos,
16
     char *sess_rule_id,
17
+    bool is_ref_um_data_null,
18
     char *ref_um_data,
19
+    bool is_ref_um_n3g_data_null,
20
     char *ref_um_n3g_data,
21
+    bool is_ref_cond_data_null,
22
     char *ref_cond_data
23
 );
24
 void OpenAPI_session_rule_free(OpenAPI_session_rule_t *session_rule);
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/shared_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/shared_data.c Changed
97
 
1
@@ -10,11 +10,13 @@
2
     OpenAPI_sms_subscription_data_t *shared_sms_subs_data,
3
     OpenAPI_sms_management_subscription_data_t *shared_sms_mng_subs_data,
4
     OpenAPI_list_t* shared_dnn_configurations,
5
+    bool is_shared_trace_data_null,
6
     OpenAPI_trace_data_t *shared_trace_data,
7
     OpenAPI_list_t* shared_snssai_infos,
8
     OpenAPI_list_t* shared_vn_group_datas,
9
     OpenAPI_list_t* treatment_instructions,
10
     OpenAPI_session_management_subscription_data_t *shared_sm_subs_data,
11
+    bool is_shared_ecs_addr_config_info_null,
12
     OpenAPI_ecs_addr_config_info_t *shared_ecs_addr_config_info
13
 )
14
 {
15
@@ -26,11 +28,13 @@
16
     shared_data_local_var->shared_sms_subs_data = shared_sms_subs_data;
17
     shared_data_local_var->shared_sms_mng_subs_data = shared_sms_mng_subs_data;
18
     shared_data_local_var->shared_dnn_configurations = shared_dnn_configurations;
19
+    shared_data_local_var->is_shared_trace_data_null = is_shared_trace_data_null;
20
     shared_data_local_var->shared_trace_data = shared_trace_data;
21
     shared_data_local_var->shared_snssai_infos = shared_snssai_infos;
22
     shared_data_local_var->shared_vn_group_datas = shared_vn_group_datas;
23
     shared_data_local_var->treatment_instructions = treatment_instructions;
24
     shared_data_local_var->shared_sm_subs_data = shared_sm_subs_data;
25
+    shared_data_local_var->is_shared_ecs_addr_config_info_null = is_shared_ecs_addr_config_info_null;
26
     shared_data_local_var->shared_ecs_addr_config_info = shared_ecs_addr_config_info;
27
 
28
     return shared_data_local_var;
29
@@ -213,6 +217,11 @@
30
         ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_trace_data");
31
         goto end;
32
     }
33
+    } else if (shared_data->is_shared_trace_data_null) {
34
+        if (cJSON_AddNullToObject(item, "sharedTraceData") == NULL) {
35
+            ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_trace_data");
36
+            goto end;
37
+        }
38
     }
39
 
40
     if (shared_data->shared_snssai_infos) {
41
@@ -325,6 +334,11 @@
42
         ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_ecs_addr_config_info");
43
         goto end;
44
     }
45
+    } else if (shared_data->is_shared_ecs_addr_config_info_null) {
46
+        if (cJSON_AddNullToObject(item, "sharedEcsAddrConfigInfo") == NULL) {
47
+            ogs_error("OpenAPI_shared_data_convertToJSON() failed shared_ecs_addr_config_info");
48
+            goto end;
49
+        }
50
     }
51
 
52
 end:
53
@@ -421,12 +435,14 @@
54
 
55
     shared_trace_data = cJSON_GetObjectItemCaseSensitive(shared_dataJSON, "sharedTraceData");
56
     if (shared_trace_data) {
57
+    if (!cJSON_IsNull(shared_trace_data)) {
58
     shared_trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(shared_trace_data);
59
     if (!shared_trace_data_local_nonprim) {
60
         ogs_error("OpenAPI_trace_data_parseFromJSON failed shared_trace_data");
61
         goto end;
62
     }
63
     }
64
+    }
65
 
66
     shared_snssai_infos = cJSON_GetObjectItemCaseSensitive(shared_dataJSON, "sharedSnssaiInfos");
67
     if (shared_snssai_infos) {
68
@@ -513,12 +529,14 @@
69
 
70
     shared_ecs_addr_config_info = cJSON_GetObjectItemCaseSensitive(shared_dataJSON, "sharedEcsAddrConfigInfo");
71
     if (shared_ecs_addr_config_info) {
72
+    if (!cJSON_IsNull(shared_ecs_addr_config_info)) {
73
     shared_ecs_addr_config_info_local_nonprim = OpenAPI_ecs_addr_config_info_parseFromJSON(shared_ecs_addr_config_info);
74
     if (!shared_ecs_addr_config_info_local_nonprim) {
75
         ogs_error("OpenAPI_ecs_addr_config_info_parseFromJSON failed shared_ecs_addr_config_info");
76
         goto end;
77
     }
78
     }
79
+    }
80
 
81
     shared_data_local_var = OpenAPI_shared_data_create (
82
         ogs_strdup(shared_data_id->valuestring),
83
@@ -526,11 +544,13 @@
84
         shared_sms_subs_data ? shared_sms_subs_data_local_nonprim : NULL,
85
         shared_sms_mng_subs_data ? shared_sms_mng_subs_data_local_nonprim : NULL,
86
         shared_dnn_configurations ? shared_dnn_configurationsList : NULL,
87
+        shared_trace_data && cJSON_IsNull(shared_trace_data) ? true : false,
88
         shared_trace_data ? shared_trace_data_local_nonprim : NULL,
89
         shared_snssai_infos ? shared_snssai_infosList : NULL,
90
         shared_vn_group_datas ? shared_vn_group_datasList : NULL,
91
         treatment_instructions ? treatment_instructionsList : NULL,
92
         shared_sm_subs_data ? shared_sm_subs_data_local_nonprim : NULL,
93
+        shared_ecs_addr_config_info && cJSON_IsNull(shared_ecs_addr_config_info) ? true : false,
94
         shared_ecs_addr_config_info ? shared_ecs_addr_config_info_local_nonprim : NULL
95
     );
96
 
97
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/shared_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/shared_data.h Changed
29
 
1
@@ -34,11 +34,13 @@
2
     struct OpenAPI_sms_subscription_data_s *shared_sms_subs_data;
3
     struct OpenAPI_sms_management_subscription_data_s *shared_sms_mng_subs_data;
4
     OpenAPI_list_t* shared_dnn_configurations;
5
+    bool is_shared_trace_data_null;
6
     struct OpenAPI_trace_data_s *shared_trace_data;
7
     OpenAPI_list_t* shared_snssai_infos;
8
     OpenAPI_list_t* shared_vn_group_datas;
9
     OpenAPI_list_t* treatment_instructions;
10
     struct OpenAPI_session_management_subscription_data_s *shared_sm_subs_data;
11
+    bool is_shared_ecs_addr_config_info_null;
12
     struct OpenAPI_ecs_addr_config_info_s *shared_ecs_addr_config_info;
13
 } OpenAPI_shared_data_t;
14
 
15
@@ -48,11 +50,13 @@
16
     OpenAPI_sms_subscription_data_t *shared_sms_subs_data,
17
     OpenAPI_sms_management_subscription_data_t *shared_sms_mng_subs_data,
18
     OpenAPI_list_t* shared_dnn_configurations,
19
+    bool is_shared_trace_data_null,
20
     OpenAPI_trace_data_t *shared_trace_data,
21
     OpenAPI_list_t* shared_snssai_infos,
22
     OpenAPI_list_t* shared_vn_group_datas,
23
     OpenAPI_list_t* treatment_instructions,
24
     OpenAPI_session_management_subscription_data_t *shared_sm_subs_data,
25
+    bool is_shared_ecs_addr_config_info_null,
26
     OpenAPI_ecs_addr_config_info_t *shared_ecs_addr_config_info
27
 );
28
 void OpenAPI_shared_data_free(OpenAPI_shared_data_t *shared_data);
29
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_context_create_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_context_create_data.c Changed
103
 
1
@@ -50,6 +50,7 @@
2
     char *supported_features,
3
     OpenAPI_dnn_selection_mode_e sel_mode,
4
     OpenAPI_list_t *backup_amf_info,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     char *udm_group_id,
8
     char *routing_indicator,
9
@@ -113,6 +114,7 @@
10
     char *old_pdu_session_ref,
11
     bool is_sm_policy_notify_ind,
12
     int sm_policy_notify_ind,
13
+    bool is_pcf_ue_callback_info_null,
14
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
15
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat,
16
     bool is_upip_supported,
17
@@ -175,6 +177,7 @@
18
     sm_context_create_data_local_var->supported_features = supported_features;
19
     sm_context_create_data_local_var->sel_mode = sel_mode;
20
     sm_context_create_data_local_var->backup_amf_info = backup_amf_info;
21
+    sm_context_create_data_local_var->is_trace_data_null = is_trace_data_null;
22
     sm_context_create_data_local_var->trace_data = trace_data;
23
     sm_context_create_data_local_var->udm_group_id = udm_group_id;
24
     sm_context_create_data_local_var->routing_indicator = routing_indicator;
25
@@ -238,6 +241,7 @@
26
     sm_context_create_data_local_var->old_pdu_session_ref = old_pdu_session_ref;
27
     sm_context_create_data_local_var->is_sm_policy_notify_ind = is_sm_policy_notify_ind;
28
     sm_context_create_data_local_var->sm_policy_notify_ind = sm_policy_notify_ind;
29
+    sm_context_create_data_local_var->is_pcf_ue_callback_info_null = is_pcf_ue_callback_info_null;
30
     sm_context_create_data_local_var->pcf_ue_callback_info = pcf_ue_callback_info;
31
     sm_context_create_data_local_var->satellite_backhaul_cat = satellite_backhaul_cat;
32
     sm_context_create_data_local_var->is_upip_supported = is_upip_supported;
33
@@ -949,6 +953,11 @@
34
         ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed trace_data");
35
         goto end;
36
     }
37
+    } else if (sm_context_create_data->is_trace_data_null) {
38
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
39
+            ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed trace_data");
40
+            goto end;
41
+        }
42
     }
43
 
44
     if (sm_context_create_data->udm_group_id) {
45
@@ -1379,6 +1388,11 @@
46
         ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed pcf_ue_callback_info");
47
         goto end;
48
     }
49
+    } else if (sm_context_create_data->is_pcf_ue_callback_info_null) {
50
+        if (cJSON_AddNullToObject(item, "pcfUeCallbackInfo") == NULL) {
51
+            ogs_error("OpenAPI_sm_context_create_data_convertToJSON() failed pcf_ue_callback_info");
52
+            goto end;
53
+        }
54
     }
55
 
56
     if (sm_context_create_data->satellite_backhaul_cat != OpenAPI_satellite_backhaul_category_NULL) {
57
@@ -2015,12 +2029,14 @@
58
 
59
     trace_data = cJSON_GetObjectItemCaseSensitive(sm_context_create_dataJSON, "traceData");
60
     if (trace_data) {
61
+    if (!cJSON_IsNull(trace_data)) {
62
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
63
     if (!trace_data_local_nonprim) {
64
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
65
         goto end;
66
     }
67
     }
68
+    }
69
 
70
     udm_group_id = cJSON_GetObjectItemCaseSensitive(sm_context_create_dataJSON, "udmGroupId");
71
     if (udm_group_id) {
72
@@ -2453,12 +2469,14 @@
73
 
74
     pcf_ue_callback_info = cJSON_GetObjectItemCaseSensitive(sm_context_create_dataJSON, "pcfUeCallbackInfo");
75
     if (pcf_ue_callback_info) {
76
+    if (!cJSON_IsNull(pcf_ue_callback_info)) {
77
     pcf_ue_callback_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_callback_info);
78
     if (!pcf_ue_callback_info_local_nonprim) {
79
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_callback_info");
80
         goto end;
81
     }
82
     }
83
+    }
84
 
85
     satellite_backhaul_cat = cJSON_GetObjectItemCaseSensitive(sm_context_create_dataJSON, "satelliteBackhaulCat");
86
     if (satellite_backhaul_cat) {
87
@@ -2555,6 +2573,7 @@
88
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL,
89
         sel_mode ? sel_modeVariable : 0,
90
         backup_amf_info ? backup_amf_infoList : NULL,
91
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
92
         trace_data ? trace_data_local_nonprim : NULL,
93
         udm_group_id && !cJSON_IsNull(udm_group_id) ? ogs_strdup(udm_group_id->valuestring) : NULL,
94
         routing_indicator && !cJSON_IsNull(routing_indicator) ? ogs_strdup(routing_indicator->valuestring) : NULL,
95
@@ -2618,6 +2637,7 @@
96
         old_pdu_session_ref && !cJSON_IsNull(old_pdu_session_ref) ? ogs_strdup(old_pdu_session_ref->valuestring) : NULL,
97
         sm_policy_notify_ind ? true : false,
98
         sm_policy_notify_ind ? sm_policy_notify_ind->valueint : 0,
99
+        pcf_ue_callback_info && cJSON_IsNull(pcf_ue_callback_info) ? true : false,
100
         pcf_ue_callback_info ? pcf_ue_callback_info_local_nonprim : NULL,
101
         satellite_backhaul_cat ? satellite_backhaul_catVariable : 0,
102
         upip_supported ? true : false,
103
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_context_create_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_context_create_data.h Changed
33
 
1
@@ -91,6 +91,7 @@
2
     char *supported_features;
3
     OpenAPI_dnn_selection_mode_e sel_mode;
4
     OpenAPI_list_t *backup_amf_info;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     char *udm_group_id;
8
     char *routing_indicator;
9
@@ -154,6 +155,7 @@
10
     char *old_pdu_session_ref;
11
     bool is_sm_policy_notify_ind;
12
     int sm_policy_notify_ind;
13
+    bool is_pcf_ue_callback_info_null;
14
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_callback_info;
15
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat;
16
     bool is_upip_supported;
17
@@ -214,6 +216,7 @@
18
     char *supported_features,
19
     OpenAPI_dnn_selection_mode_e sel_mode,
20
     OpenAPI_list_t *backup_amf_info,
21
+    bool is_trace_data_null,
22
     OpenAPI_trace_data_t *trace_data,
23
     char *udm_group_id,
24
     char *routing_indicator,
25
@@ -277,6 +280,7 @@
26
     char *old_pdu_session_ref,
27
     bool is_sm_policy_notify_ind,
28
     int sm_policy_notify_ind,
29
+    bool is_pcf_ue_callback_info_null,
30
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
31
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat,
32
     bool is_upip_supported,
33
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_context_update_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_context_update_data.c Changed
155
 
1
@@ -32,6 +32,7 @@
2
     char *serving_nf_id,
3
     OpenAPI_guami_t *guami,
4
     OpenAPI_plmn_id_nid_t *serving_network,
5
+    bool is_backup_amf_info_null,
6
     OpenAPI_list_t *backup_amf_info,
7
     OpenAPI_access_type_e an_type,
8
     OpenAPI_access_type_e additional_an_type,
9
@@ -70,6 +71,7 @@
10
     bool is__5g_mm_cause_value,
11
     int _5g_mm_cause_value,
12
     OpenAPI_snssai_t *s_nssai,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data,
15
     OpenAPI_eps_interworking_indication_e eps_interworking_ind,
16
     bool is_an_type_can_be_changed,
17
@@ -93,6 +95,7 @@
18
     int skip_n2_pdu_session_res_rel_ind,
19
     OpenAPI_list_t *secondary_rat_usage_data_report_container,
20
     OpenAPI_sm_context_update_data_sm_policy_notify_ind_e sm_policy_notify_ind,
21
+    bool is_pcf_ue_callback_info_null,
22
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
23
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat
24
 )
25
@@ -104,6 +107,7 @@
26
     sm_context_update_data_local_var->serving_nf_id = serving_nf_id;
27
     sm_context_update_data_local_var->guami = guami;
28
     sm_context_update_data_local_var->serving_network = serving_network;
29
+    sm_context_update_data_local_var->is_backup_amf_info_null = is_backup_amf_info_null;
30
     sm_context_update_data_local_var->backup_amf_info = backup_amf_info;
31
     sm_context_update_data_local_var->an_type = an_type;
32
     sm_context_update_data_local_var->additional_an_type = additional_an_type;
33
@@ -142,6 +146,7 @@
34
     sm_context_update_data_local_var->is__5g_mm_cause_value = is__5g_mm_cause_value;
35
     sm_context_update_data_local_var->_5g_mm_cause_value = _5g_mm_cause_value;
36
     sm_context_update_data_local_var->s_nssai = s_nssai;
37
+    sm_context_update_data_local_var->is_trace_data_null = is_trace_data_null;
38
     sm_context_update_data_local_var->trace_data = trace_data;
39
     sm_context_update_data_local_var->eps_interworking_ind = eps_interworking_ind;
40
     sm_context_update_data_local_var->is_an_type_can_be_changed = is_an_type_can_be_changed;
41
@@ -165,6 +170,7 @@
42
     sm_context_update_data_local_var->skip_n2_pdu_session_res_rel_ind = skip_n2_pdu_session_res_rel_ind;
43
     sm_context_update_data_local_var->secondary_rat_usage_data_report_container = secondary_rat_usage_data_report_container;
44
     sm_context_update_data_local_var->sm_policy_notify_ind = sm_policy_notify_ind;
45
+    sm_context_update_data_local_var->is_pcf_ue_callback_info_null = is_pcf_ue_callback_info_null;
46
     sm_context_update_data_local_var->pcf_ue_callback_info = pcf_ue_callback_info;
47
     sm_context_update_data_local_var->satellite_backhaul_cat = satellite_backhaul_cat;
48
 
49
@@ -391,6 +397,11 @@
50
         }
51
         cJSON_AddItemToArray(backup_amf_infoList, itemLocal);
52
     }
53
+    } else if (sm_context_update_data->is_backup_amf_info_null) {
54
+        if (cJSON_AddNullToObject(item, "backupAmfInfo") == NULL) {
55
+            ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed backup_amf_info");
56
+            goto end;
57
+        }
58
     }
59
 
60
     if (sm_context_update_data->an_type != OpenAPI_access_type_NULL) {
61
@@ -711,6 +722,11 @@
62
         ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed trace_data");
63
         goto end;
64
     }
65
+    } else if (sm_context_update_data->is_trace_data_null) {
66
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
67
+            ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed trace_data");
68
+            goto end;
69
+        }
70
     }
71
 
72
     if (sm_context_update_data->eps_interworking_ind != OpenAPI_eps_interworking_indication_NULL) {
73
@@ -881,6 +897,11 @@
74
         ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed pcf_ue_callback_info");
75
         goto end;
76
     }
77
+    } else if (sm_context_update_data->is_pcf_ue_callback_info_null) {
78
+        if (cJSON_AddNullToObject(item, "pcfUeCallbackInfo") == NULL) {
79
+            ogs_error("OpenAPI_sm_context_update_data_convertToJSON() failed pcf_ue_callback_info");
80
+            goto end;
81
+        }
82
     }
83
 
84
     if (sm_context_update_data->satellite_backhaul_cat != OpenAPI_satellite_backhaul_category_NULL) {
85
@@ -1028,6 +1049,7 @@
86
 
87
     backup_amf_info = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "backupAmfInfo");
88
     if (backup_amf_info) {
89
+    if (!cJSON_IsNull(backup_amf_info)) {
90
         cJSON *backup_amf_info_local = NULL;
91
         if (!cJSON_IsArray(backup_amf_info)) {
92
             ogs_error("OpenAPI_sm_context_update_data_parseFromJSON() failed backup_amf_info");
93
@@ -1049,6 +1071,7 @@
94
             OpenAPI_list_add(backup_amf_infoList, backup_amf_infoItem);
95
         }
96
     }
97
+    }
98
 
99
     an_type = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "anType");
100
     if (an_type) {
101
@@ -1382,12 +1405,14 @@
102
 
103
     trace_data = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "traceData");
104
     if (trace_data) {
105
+    if (!cJSON_IsNull(trace_data)) {
106
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
107
     if (!trace_data_local_nonprim) {
108
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
109
         goto end;
110
     }
111
     }
112
+    }
113
 
114
     eps_interworking_ind = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "epsInterworkingInd");
115
     if (eps_interworking_ind) {
116
@@ -1561,12 +1586,14 @@
117
 
118
     pcf_ue_callback_info = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "pcfUeCallbackInfo");
119
     if (pcf_ue_callback_info) {
120
+    if (!cJSON_IsNull(pcf_ue_callback_info)) {
121
     pcf_ue_callback_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_callback_info);
122
     if (!pcf_ue_callback_info_local_nonprim) {
123
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_callback_info");
124
         goto end;
125
     }
126
     }
127
+    }
128
 
129
     satellite_backhaul_cat = cJSON_GetObjectItemCaseSensitive(sm_context_update_dataJSON, "satelliteBackhaulCat");
130
     if (satellite_backhaul_cat) {
131
@@ -1582,6 +1609,7 @@
132
         serving_nf_id && !cJSON_IsNull(serving_nf_id) ? ogs_strdup(serving_nf_id->valuestring) : NULL,
133
         guami ? guami_local_nonprim : NULL,
134
         serving_network ? serving_network_local_nonprim : NULL,
135
+        backup_amf_info && cJSON_IsNull(backup_amf_info) ? true : false,
136
         backup_amf_info ? backup_amf_infoList : NULL,
137
         an_type ? an_typeVariable : 0,
138
         additional_an_type ? additional_an_typeVariable : 0,
139
@@ -1620,6 +1648,7 @@
140
         _5g_mm_cause_value ? true : false,
141
         _5g_mm_cause_value ? _5g_mm_cause_value->valuedouble : 0,
142
         s_nssai ? s_nssai_local_nonprim : NULL,
143
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
144
         trace_data ? trace_data_local_nonprim : NULL,
145
         eps_interworking_ind ? eps_interworking_indVariable : 0,
146
         an_type_can_be_changed ? true : false,
147
@@ -1643,6 +1672,7 @@
148
         skip_n2_pdu_session_res_rel_ind ? skip_n2_pdu_session_res_rel_ind->valueint : 0,
149
         secondary_rat_usage_data_report_container ? secondary_rat_usage_data_report_containerList : NULL,
150
         sm_policy_notify_ind ? sm_policy_notify_indVariable : 0,
151
+        pcf_ue_callback_info && cJSON_IsNull(pcf_ue_callback_info) ? true : false,
152
         pcf_ue_callback_info ? pcf_ue_callback_info_local_nonprim : NULL,
153
         satellite_backhaul_cat ? satellite_backhaul_catVariable : 0
154
     );
155
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_context_update_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_context_update_data.h Changed
49
 
1
@@ -53,6 +53,7 @@
2
     char *serving_nf_id;
3
     struct OpenAPI_guami_s *guami;
4
     struct OpenAPI_plmn_id_nid_s *serving_network;
5
+    bool is_backup_amf_info_null;
6
     OpenAPI_list_t *backup_amf_info;
7
     OpenAPI_access_type_e an_type;
8
     OpenAPI_access_type_e additional_an_type;
9
@@ -91,6 +92,7 @@
10
     bool is__5g_mm_cause_value;
11
     int _5g_mm_cause_value;
12
     struct OpenAPI_snssai_s *s_nssai;
13
+    bool is_trace_data_null;
14
     struct OpenAPI_trace_data_s *trace_data;
15
     OpenAPI_eps_interworking_indication_e eps_interworking_ind;
16
     bool is_an_type_can_be_changed;
17
@@ -114,6 +116,7 @@
18
     int skip_n2_pdu_session_res_rel_ind;
19
     OpenAPI_list_t *secondary_rat_usage_data_report_container;
20
     OpenAPI_sm_context_update_data_sm_policy_notify_ind_e sm_policy_notify_ind;
21
+    bool is_pcf_ue_callback_info_null;
22
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_callback_info;
23
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat;
24
 } OpenAPI_sm_context_update_data_t;
25
@@ -123,6 +126,7 @@
26
     char *serving_nf_id,
27
     OpenAPI_guami_t *guami,
28
     OpenAPI_plmn_id_nid_t *serving_network,
29
+    bool is_backup_amf_info_null,
30
     OpenAPI_list_t *backup_amf_info,
31
     OpenAPI_access_type_e an_type,
32
     OpenAPI_access_type_e additional_an_type,
33
@@ -161,6 +165,7 @@
34
     bool is__5g_mm_cause_value,
35
     int _5g_mm_cause_value,
36
     OpenAPI_snssai_t *s_nssai,
37
+    bool is_trace_data_null,
38
     OpenAPI_trace_data_t *trace_data,
39
     OpenAPI_eps_interworking_indication_e eps_interworking_ind,
40
     bool is_an_type_can_be_changed,
41
@@ -184,6 +189,7 @@
42
     int skip_n2_pdu_session_res_rel_ind,
43
     OpenAPI_list_t *secondary_rat_usage_data_report_container,
44
     OpenAPI_sm_context_update_data_sm_policy_notify_ind_e sm_policy_notify_ind,
45
+    bool is_pcf_ue_callback_info_null,
46
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
47
     OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat
48
 );
49
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_context_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_context_data.c Changed
103
 
1
@@ -42,6 +42,7 @@
2
     int _3gpp_ps_data_off_status,
3
     bool is_ref_qos_indication,
4
     int ref_qos_indication,
5
+    bool is_trace_req_null,
6
     OpenAPI_trace_data_t *trace_req,
7
     OpenAPI_snssai_t *slice_info,
8
     OpenAPI_qos_flow_usage_e qos_flow_usage,
9
@@ -54,6 +55,7 @@
10
     OpenAPI_list_t *ipv4_frame_route_list,
11
     OpenAPI_list_t *ipv6_frame_route_list,
12
     OpenAPI_satellite_backhaul_category_e sat_backhaul_category,
13
+    bool is_pcf_ue_info_null,
14
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
15
     OpenAPI_list_t *pvs_info,
16
     bool is_onboard_ind,
17
@@ -101,6 +103,7 @@
18
     sm_policy_context_data_local_var->_3gpp_ps_data_off_status = _3gpp_ps_data_off_status;
19
     sm_policy_context_data_local_var->is_ref_qos_indication = is_ref_qos_indication;
20
     sm_policy_context_data_local_var->ref_qos_indication = ref_qos_indication;
21
+    sm_policy_context_data_local_var->is_trace_req_null = is_trace_req_null;
22
     sm_policy_context_data_local_var->trace_req = trace_req;
23
     sm_policy_context_data_local_var->slice_info = slice_info;
24
     sm_policy_context_data_local_var->qos_flow_usage = qos_flow_usage;
25
@@ -113,6 +116,7 @@
26
     sm_policy_context_data_local_var->ipv4_frame_route_list = ipv4_frame_route_list;
27
     sm_policy_context_data_local_var->ipv6_frame_route_list = ipv6_frame_route_list;
28
     sm_policy_context_data_local_var->sat_backhaul_category = sat_backhaul_category;
29
+    sm_policy_context_data_local_var->is_pcf_ue_info_null = is_pcf_ue_info_null;
30
     sm_policy_context_data_local_var->pcf_ue_info = pcf_ue_info;
31
     sm_policy_context_data_local_var->pvs_info = pvs_info;
32
     sm_policy_context_data_local_var->is_onboard_ind = is_onboard_ind;
33
@@ -571,6 +575,11 @@
34
         ogs_error("OpenAPI_sm_policy_context_data_convertToJSON() failed trace_req");
35
         goto end;
36
     }
37
+    } else if (sm_policy_context_data->is_trace_req_null) {
38
+        if (cJSON_AddNullToObject(item, "traceReq") == NULL) {
39
+            ogs_error("OpenAPI_sm_policy_context_data_convertToJSON() failed trace_req");
40
+            goto end;
41
+        }
42
     }
43
 
44
     if (!sm_policy_context_data->slice_info) {
45
@@ -689,6 +698,11 @@
46
         ogs_error("OpenAPI_sm_policy_context_data_convertToJSON() failed pcf_ue_info");
47
         goto end;
48
     }
49
+    } else if (sm_policy_context_data->is_pcf_ue_info_null) {
50
+        if (cJSON_AddNullToObject(item, "pcfUeInfo") == NULL) {
51
+            ogs_error("OpenAPI_sm_policy_context_data_convertToJSON() failed pcf_ue_info");
52
+            goto end;
53
+        }
54
     }
55
 
56
     if (sm_policy_context_data->pvs_info) {
57
@@ -1095,12 +1109,14 @@
58
 
59
     trace_req = cJSON_GetObjectItemCaseSensitive(sm_policy_context_dataJSON, "traceReq");
60
     if (trace_req) {
61
+    if (!cJSON_IsNull(trace_req)) {
62
     trace_req_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_req);
63
     if (!trace_req_local_nonprim) {
64
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_req");
65
         goto end;
66
     }
67
     }
68
+    }
69
 
70
     slice_info = cJSON_GetObjectItemCaseSensitive(sm_policy_context_dataJSON, "sliceInfo");
71
     if (!slice_info) {
72
@@ -1226,12 +1242,14 @@
73
 
74
     pcf_ue_info = cJSON_GetObjectItemCaseSensitive(sm_policy_context_dataJSON, "pcfUeInfo");
75
     if (pcf_ue_info) {
76
+    if (!cJSON_IsNull(pcf_ue_info)) {
77
     pcf_ue_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_info);
78
     if (!pcf_ue_info_local_nonprim) {
79
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_info");
80
         goto end;
81
     }
82
     }
83
+    }
84
 
85
     pvs_info = cJSON_GetObjectItemCaseSensitive(sm_policy_context_dataJSON, "pvsInfo");
86
     if (pvs_info) {
87
@@ -1328,6 +1346,7 @@
88
         _3gpp_ps_data_off_status ? _3gpp_ps_data_off_status->valueint : 0,
89
         ref_qos_indication ? true : false,
90
         ref_qos_indication ? ref_qos_indication->valueint : 0,
91
+        trace_req && cJSON_IsNull(trace_req) ? true : false,
92
         trace_req ? trace_req_local_nonprim : NULL,
93
         slice_info_local_nonprim,
94
         qos_flow_usage ? qos_flow_usageVariable : 0,
95
@@ -1340,6 +1359,7 @@
96
         ipv4_frame_route_list ? ipv4_frame_route_listList : NULL,
97
         ipv6_frame_route_list ? ipv6_frame_route_listList : NULL,
98
         sat_backhaul_category ? sat_backhaul_categoryVariable : 0,
99
+        pcf_ue_info && cJSON_IsNull(pcf_ue_info) ? true : false,
100
         pcf_ue_info ? pcf_ue_info_local_nonprim : NULL,
101
         pvs_info ? pvs_infoList : NULL,
102
         onboard_ind ? true : false,
103
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_context_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_context_data.h Changed
33
 
1
@@ -78,6 +78,7 @@
2
     int _3gpp_ps_data_off_status;
3
     bool is_ref_qos_indication;
4
     int ref_qos_indication;
5
+    bool is_trace_req_null;
6
     struct OpenAPI_trace_data_s *trace_req;
7
     struct OpenAPI_snssai_s *slice_info;
8
     OpenAPI_qos_flow_usage_e qos_flow_usage;
9
@@ -90,6 +91,7 @@
10
     OpenAPI_list_t *ipv4_frame_route_list;
11
     OpenAPI_list_t *ipv6_frame_route_list;
12
     OpenAPI_satellite_backhaul_category_e sat_backhaul_category;
13
+    bool is_pcf_ue_info_null;
14
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_info;
15
     OpenAPI_list_t *pvs_info;
16
     bool is_onboard_ind;
17
@@ -135,6 +137,7 @@
18
     int _3gpp_ps_data_off_status,
19
     bool is_ref_qos_indication,
20
     int ref_qos_indication,
21
+    bool is_trace_req_null,
22
     OpenAPI_trace_data_t *trace_req,
23
     OpenAPI_snssai_t *slice_info,
24
     OpenAPI_qos_flow_usage_e qos_flow_usage,
25
@@ -147,6 +150,7 @@
26
     OpenAPI_list_t *ipv4_frame_route_list,
27
     OpenAPI_list_t *ipv6_frame_route_list,
28
     OpenAPI_satellite_backhaul_category_e sat_backhaul_category,
29
+    bool is_pcf_ue_info_null,
30
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
31
     OpenAPI_list_t *pvs_info,
32
     bool is_onboard_ind,
33
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.c Changed
53
 
1
@@ -5,6 +5,7 @@
2
 #include "sm_policy_data_patch.h"
3
 
4
 OpenAPI_sm_policy_data_patch_t *OpenAPI_sm_policy_data_patch_create(
5
+    bool is_um_data_null,
6
     OpenAPI_list_t* um_data,
7
     OpenAPI_list_t* sm_policy_snssai_data
8
 )
9
@@ -12,6 +13,7 @@
10
     OpenAPI_sm_policy_data_patch_t *sm_policy_data_patch_local_var = ogs_malloc(sizeof(OpenAPI_sm_policy_data_patch_t));
11
     ogs_assert(sm_policy_data_patch_local_var);
12
 
13
+    sm_policy_data_patch_local_var->is_um_data_null = is_um_data_null;
14
     sm_policy_data_patch_local_var->um_data = um_data;
15
     sm_policy_data_patch_local_var->sm_policy_snssai_data = sm_policy_snssai_data;
16
 
17
@@ -87,6 +89,11 @@
18
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
19
         }
20
     }
21
+    } else if (sm_policy_data_patch->is_um_data_null) {
22
+        if (cJSON_AddNullToObject(item, "umData") == NULL) {
23
+            ogs_error("OpenAPI_sm_policy_data_patch_convertToJSON() failed um_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (sm_policy_data_patch->sm_policy_snssai_data) {
29
@@ -133,6 +140,7 @@
30
     OpenAPI_list_t *sm_policy_snssai_dataList = NULL;
31
     um_data = cJSON_GetObjectItemCaseSensitive(sm_policy_data_patchJSON, "umData");
32
     if (um_data) {
33
+    if (!cJSON_IsNull(um_data)) {
34
         cJSON *um_data_local_map = NULL;
35
         if (!cJSON_IsObject(um_data) && !cJSON_IsNull(um_data)) {
36
             ogs_error("OpenAPI_sm_policy_data_patch_parseFromJSON() failed um_data");
37
@@ -156,6 +164,7 @@
38
             }
39
         }
40
     }
41
+    }
42
 
43
     sm_policy_snssai_data = cJSON_GetObjectItemCaseSensitive(sm_policy_data_patchJSON, "smPolicySnssaiData");
44
     if (sm_policy_snssai_data) {
45
@@ -184,6 +193,7 @@
46
     }
47
 
48
     sm_policy_data_patch_local_var = OpenAPI_sm_policy_data_patch_create (
49
+        um_data && cJSON_IsNull(um_data) ? true : false,
50
         um_data ? um_dataList : NULL,
51
         sm_policy_snssai_data ? sm_policy_snssai_dataList : NULL
52
     );
53
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_data_patch.h Changed
15
 
1
@@ -21,11 +21,13 @@
2
 
3
 typedef struct OpenAPI_sm_policy_data_patch_s OpenAPI_sm_policy_data_patch_t;
4
 typedef struct OpenAPI_sm_policy_data_patch_s {
5
+    bool is_um_data_null;
6
     OpenAPI_list_t* um_data;
7
     OpenAPI_list_t* sm_policy_snssai_data;
8
 } OpenAPI_sm_policy_data_patch_t;
9
 
10
 OpenAPI_sm_policy_data_patch_t *OpenAPI_sm_policy_data_patch_create(
11
+    bool is_um_data_null,
12
     OpenAPI_list_t* um_data,
13
     OpenAPI_list_t* sm_policy_snssai_data
14
 );
15
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_decision.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_decision.c Changed
305
 
1
@@ -6,18 +6,23 @@
2
 
3
 OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_create(
4
     OpenAPI_list_t* sess_rules,
5
+    bool is_pcc_rules_null,
6
     OpenAPI_list_t* pcc_rules,
7
     bool is_pcscf_rest_indication,
8
     int pcscf_rest_indication,
9
     OpenAPI_list_t* qos_decs,
10
+    bool is_chg_decs_null,
11
     OpenAPI_list_t* chg_decs,
12
     OpenAPI_charging_information_t *charging_info,
13
     OpenAPI_list_t* traff_cont_decs,
14
+    bool is_um_decs_null,
15
     OpenAPI_list_t* um_decs,
16
     OpenAPI_list_t* qos_chars,
17
+    bool is_qos_mon_decs_null,
18
     OpenAPI_list_t* qos_mon_decs,
19
     bool is_reflective_qo_s_timer,
20
     int reflective_qo_s_timer,
21
+    bool is_conds_null,
22
     OpenAPI_list_t* conds,
23
     char *revalidation_time,
24
     bool is_offline,
25
@@ -26,9 +31,11 @@
26
     int online,
27
     bool is_offline_ch_only,
28
     int offline_ch_only,
29
+    bool is_policy_ctrl_req_triggers_null,
30
     OpenAPI_list_t *policy_ctrl_req_triggers,
31
     OpenAPI_list_t *last_req_rule_data,
32
     OpenAPI_requested_usage_data_t *last_req_usage_data,
33
+    bool is_pra_infos_null,
34
     OpenAPI_list_t* pra_infos,
35
     bool is_ipv4_index,
36
     int ipv4_index,
37
@@ -48,18 +55,23 @@
38
     ogs_assert(sm_policy_decision_local_var);
39
 
40
     sm_policy_decision_local_var->sess_rules = sess_rules;
41
+    sm_policy_decision_local_var->is_pcc_rules_null = is_pcc_rules_null;
42
     sm_policy_decision_local_var->pcc_rules = pcc_rules;
43
     sm_policy_decision_local_var->is_pcscf_rest_indication = is_pcscf_rest_indication;
44
     sm_policy_decision_local_var->pcscf_rest_indication = pcscf_rest_indication;
45
     sm_policy_decision_local_var->qos_decs = qos_decs;
46
+    sm_policy_decision_local_var->is_chg_decs_null = is_chg_decs_null;
47
     sm_policy_decision_local_var->chg_decs = chg_decs;
48
     sm_policy_decision_local_var->charging_info = charging_info;
49
     sm_policy_decision_local_var->traff_cont_decs = traff_cont_decs;
50
+    sm_policy_decision_local_var->is_um_decs_null = is_um_decs_null;
51
     sm_policy_decision_local_var->um_decs = um_decs;
52
     sm_policy_decision_local_var->qos_chars = qos_chars;
53
+    sm_policy_decision_local_var->is_qos_mon_decs_null = is_qos_mon_decs_null;
54
     sm_policy_decision_local_var->qos_mon_decs = qos_mon_decs;
55
     sm_policy_decision_local_var->is_reflective_qo_s_timer = is_reflective_qo_s_timer;
56
     sm_policy_decision_local_var->reflective_qo_s_timer = reflective_qo_s_timer;
57
+    sm_policy_decision_local_var->is_conds_null = is_conds_null;
58
     sm_policy_decision_local_var->conds = conds;
59
     sm_policy_decision_local_var->revalidation_time = revalidation_time;
60
     sm_policy_decision_local_var->is_offline = is_offline;
61
@@ -68,9 +80,11 @@
62
     sm_policy_decision_local_var->online = online;
63
     sm_policy_decision_local_var->is_offline_ch_only = is_offline_ch_only;
64
     sm_policy_decision_local_var->offline_ch_only = offline_ch_only;
65
+    sm_policy_decision_local_var->is_policy_ctrl_req_triggers_null = is_policy_ctrl_req_triggers_null;
66
     sm_policy_decision_local_var->policy_ctrl_req_triggers = policy_ctrl_req_triggers;
67
     sm_policy_decision_local_var->last_req_rule_data = last_req_rule_data;
68
     sm_policy_decision_local_var->last_req_usage_data = last_req_usage_data;
69
+    sm_policy_decision_local_var->is_pra_infos_null = is_pra_infos_null;
70
     sm_policy_decision_local_var->pra_infos = pra_infos;
71
     sm_policy_decision_local_var->is_ipv4_index = is_ipv4_index;
72
     sm_policy_decision_local_var->ipv4_index = ipv4_index;
73
@@ -309,6 +323,11 @@
74
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
75
         }
76
     }
77
+    } else if (sm_policy_decision->is_pcc_rules_null) {
78
+        if (cJSON_AddNullToObject(item, "pccRules") == NULL) {
79
+            ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pcc_rules");
80
+            goto end;
81
+        }
82
     }
83
 
84
     if (sm_policy_decision->is_pcscf_rest_indication) {
85
@@ -376,6 +395,11 @@
86
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
87
         }
88
     }
89
+    } else if (sm_policy_decision->is_chg_decs_null) {
90
+        if (cJSON_AddNullToObject(item, "chgDecs") == NULL) {
91
+            ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed chg_decs");
92
+            goto end;
93
+        }
94
     }
95
 
96
     if (sm_policy_decision->charging_info) {
97
@@ -449,6 +473,11 @@
98
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
99
         }
100
     }
101
+    } else if (sm_policy_decision->is_um_decs_null) {
102
+        if (cJSON_AddNullToObject(item, "umDecs") == NULL) {
103
+            ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed um_decs");
104
+            goto end;
105
+        }
106
     }
107
 
108
     if (sm_policy_decision->qos_chars) {
109
@@ -509,6 +538,11 @@
110
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
111
         }
112
     }
113
+    } else if (sm_policy_decision->is_qos_mon_decs_null) {
114
+        if (cJSON_AddNullToObject(item, "qosMonDecs") == NULL) {
115
+            ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed qos_mon_decs");
116
+            goto end;
117
+        }
118
     }
119
 
120
     if (sm_policy_decision->is_reflective_qo_s_timer) {
121
@@ -546,6 +580,11 @@
122
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
123
         }
124
     }
125
+    } else if (sm_policy_decision->is_conds_null) {
126
+        if (cJSON_AddNullToObject(item, "conds") == NULL) {
127
+            ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed conds");
128
+            goto end;
129
+        }
130
     }
131
 
132
     if (sm_policy_decision->revalidation_time) {
133
@@ -588,6 +627,11 @@
134
             goto end;
135
         }
136
     }
137
+    } else if (sm_policy_decision->is_policy_ctrl_req_triggers_null) {
138
+        if (cJSON_AddNullToObject(item, "policyCtrlReqTriggers") == NULL) {
139
+            ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed policy_ctrl_req_triggers");
140
+            goto end;
141
+        }
142
     }
143
 
144
     if (sm_policy_decision->last_req_rule_data) {
145
@@ -647,6 +691,11 @@
146
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
147
         }
148
     }
149
+    } else if (sm_policy_decision->is_pra_infos_null) {
150
+        if (cJSON_AddNullToObject(item, "praInfos") == NULL) {
151
+            ogs_error("OpenAPI_sm_policy_decision_convertToJSON() failed pra_infos");
152
+            goto end;
153
+        }
154
     }
155
 
156
     if (sm_policy_decision->is_ipv4_index) {
157
@@ -817,6 +866,7 @@
158
 
159
     pcc_rules = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "pccRules");
160
     if (pcc_rules) {
161
+    if (!cJSON_IsNull(pcc_rules)) {
162
         cJSON *pcc_rules_local_map = NULL;
163
         if (!cJSON_IsObject(pcc_rules) && !cJSON_IsNull(pcc_rules)) {
164
             ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed pcc_rules");
165
@@ -840,6 +890,7 @@
166
             }
167
         }
168
     }
169
+    }
170
 
171
     pcscf_rest_indication = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "pcscfRestIndication");
172
     if (pcscf_rest_indication) {
173
@@ -877,6 +928,7 @@
174
 
175
     chg_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "chgDecs");
176
     if (chg_decs) {
177
+    if (!cJSON_IsNull(chg_decs)) {
178
         cJSON *chg_decs_local_map = NULL;
179
         if (!cJSON_IsObject(chg_decs) && !cJSON_IsNull(chg_decs)) {
180
             ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed chg_decs");
181
@@ -900,6 +952,7 @@
182
             }
183
         }
184
     }
185
+    }
186
 
187
     charging_info = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "chargingInfo");
188
     if (charging_info) {
189
@@ -938,6 +991,7 @@
190
 
191
     um_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "umDecs");
192
     if (um_decs) {
193
+    if (!cJSON_IsNull(um_decs)) {
194
         cJSON *um_decs_local_map = NULL;
195
         if (!cJSON_IsObject(um_decs) && !cJSON_IsNull(um_decs)) {
196
             ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed um_decs");
197
@@ -961,6 +1015,7 @@
198
             }
199
         }
200
     }
201
+    }
202
 
203
     qos_chars = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "qosChars");
204
     if (qos_chars) {
205
@@ -990,6 +1045,7 @@
206
 
207
     qos_mon_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "qosMonDecs");
208
     if (qos_mon_decs) {
209
+    if (!cJSON_IsNull(qos_mon_decs)) {
210
         cJSON *qos_mon_decs_local_map = NULL;
211
         if (!cJSON_IsObject(qos_mon_decs) && !cJSON_IsNull(qos_mon_decs)) {
212
             ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed qos_mon_decs");
213
@@ -1013,6 +1069,7 @@
214
             }
215
         }
216
     }
217
+    }
218
 
219
     reflective_qo_s_timer = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "reflectiveQoSTimer");
220
     if (reflective_qo_s_timer) {
221
@@ -1024,6 +1081,7 @@
222
 
223
     conds = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "conds");
224
     if (conds) {
225
+    if (!cJSON_IsNull(conds)) {
226
         cJSON *conds_local_map = NULL;
227
         if (!cJSON_IsObject(conds) && !cJSON_IsNull(conds)) {
228
             ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed conds");
229
@@ -1047,6 +1105,7 @@
230
             }
231
         }
232
     }
233
+    }
234
 
235
     revalidation_time = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "revalidationTime");
236
     if (revalidation_time) {
237
@@ -1082,6 +1141,7 @@
238
 
239
     policy_ctrl_req_triggers = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "policyCtrlReqTriggers");
240
     if (policy_ctrl_req_triggers) {
241
+    if (!cJSON_IsNull(policy_ctrl_req_triggers)) {
242
         cJSON *policy_ctrl_req_triggers_local = NULL;
243
         if (!cJSON_IsArray(policy_ctrl_req_triggers)) {
244
             ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed policy_ctrl_req_triggers");
245
@@ -1104,6 +1164,7 @@
246
             OpenAPI_list_add(policy_ctrl_req_triggersList, (void *)localEnum);
247
         }
248
     }
249
+    }
250
 
251
     last_req_rule_data = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "lastReqRuleData");
252
     if (last_req_rule_data) {
253
@@ -1140,6 +1201,7 @@
254
 
255
     pra_infos = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "praInfos");
256
     if (pra_infos) {
257
+    if (!cJSON_IsNull(pra_infos)) {
258
         cJSON *pra_infos_local_map = NULL;
259
         if (!cJSON_IsObject(pra_infos) && !cJSON_IsNull(pra_infos)) {
260
             ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed pra_infos");
261
@@ -1163,6 +1225,7 @@
262
             }
263
         }
264
     }
265
+    }
266
 
267
     ipv4_index = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "ipv4Index");
268
     if (ipv4_index) {
269
@@ -1258,18 +1321,23 @@
270
 
271
     sm_policy_decision_local_var = OpenAPI_sm_policy_decision_create (
272
         sess_rules ? sess_rulesList : NULL,
273
+        pcc_rules && cJSON_IsNull(pcc_rules) ? true : false,
274
         pcc_rules ? pcc_rulesList : NULL,
275
         pcscf_rest_indication ? true : false,
276
         pcscf_rest_indication ? pcscf_rest_indication->valueint : 0,
277
         qos_decs ? qos_decsList : NULL,
278
+        chg_decs && cJSON_IsNull(chg_decs) ? true : false,
279
         chg_decs ? chg_decsList : NULL,
280
         charging_info ? charging_info_local_nonprim : NULL,
281
         traff_cont_decs ? traff_cont_decsList : NULL,
282
+        um_decs && cJSON_IsNull(um_decs) ? true : false,
283
         um_decs ? um_decsList : NULL,
284
         qos_chars ? qos_charsList : NULL,
285
+        qos_mon_decs && cJSON_IsNull(qos_mon_decs) ? true : false,
286
         qos_mon_decs ? qos_mon_decsList : NULL,
287
         reflective_qo_s_timer ? true : false,
288
         reflective_qo_s_timer ? reflective_qo_s_timer->valuedouble : 0,
289
+        conds && cJSON_IsNull(conds) ? true : false,
290
         conds ? condsList : NULL,
291
         revalidation_time && !cJSON_IsNull(revalidation_time) ? ogs_strdup(revalidation_time->valuestring) : NULL,
292
         offline ? true : false,
293
@@ -1278,9 +1346,11 @@
294
         online ? online->valueint : 0,
295
         offline_ch_only ? true : false,
296
         offline_ch_only ? offline_ch_only->valueint : 0,
297
+        policy_ctrl_req_triggers && cJSON_IsNull(policy_ctrl_req_triggers) ? true : false,
298
         policy_ctrl_req_triggers ? policy_ctrl_req_triggersList : NULL,
299
         last_req_rule_data ? last_req_rule_dataList : NULL,
300
         last_req_usage_data ? last_req_usage_data_local_nonprim : NULL,
301
+        pra_infos && cJSON_IsNull(pra_infos) ? true : false,
302
         pra_infos ? pra_infosList : NULL,
303
         ipv4_index ? true : false,
304
         ipv4_index ? ipv4_index->valuedouble : 0,
305
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_decision.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_decision.h Changed
73
 
1
@@ -38,18 +38,23 @@
2
 typedef struct OpenAPI_sm_policy_decision_s OpenAPI_sm_policy_decision_t;
3
 typedef struct OpenAPI_sm_policy_decision_s {
4
     OpenAPI_list_t* sess_rules;
5
+    bool is_pcc_rules_null;
6
     OpenAPI_list_t* pcc_rules;
7
     bool is_pcscf_rest_indication;
8
     int pcscf_rest_indication;
9
     OpenAPI_list_t* qos_decs;
10
+    bool is_chg_decs_null;
11
     OpenAPI_list_t* chg_decs;
12
     struct OpenAPI_charging_information_s *charging_info;
13
     OpenAPI_list_t* traff_cont_decs;
14
+    bool is_um_decs_null;
15
     OpenAPI_list_t* um_decs;
16
     OpenAPI_list_t* qos_chars;
17
+    bool is_qos_mon_decs_null;
18
     OpenAPI_list_t* qos_mon_decs;
19
     bool is_reflective_qo_s_timer;
20
     int reflective_qo_s_timer;
21
+    bool is_conds_null;
22
     OpenAPI_list_t* conds;
23
     char *revalidation_time;
24
     bool is_offline;
25
@@ -58,9 +63,11 @@
26
     int online;
27
     bool is_offline_ch_only;
28
     int offline_ch_only;
29
+    bool is_policy_ctrl_req_triggers_null;
30
     OpenAPI_list_t *policy_ctrl_req_triggers;
31
     OpenAPI_list_t *last_req_rule_data;
32
     struct OpenAPI_requested_usage_data_s *last_req_usage_data;
33
+    bool is_pra_infos_null;
34
     OpenAPI_list_t* pra_infos;
35
     bool is_ipv4_index;
36
     int ipv4_index;
37
@@ -78,18 +85,23 @@
38
 
39
 OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_create(
40
     OpenAPI_list_t* sess_rules,
41
+    bool is_pcc_rules_null,
42
     OpenAPI_list_t* pcc_rules,
43
     bool is_pcscf_rest_indication,
44
     int pcscf_rest_indication,
45
     OpenAPI_list_t* qos_decs,
46
+    bool is_chg_decs_null,
47
     OpenAPI_list_t* chg_decs,
48
     OpenAPI_charging_information_t *charging_info,
49
     OpenAPI_list_t* traff_cont_decs,
50
+    bool is_um_decs_null,
51
     OpenAPI_list_t* um_decs,
52
     OpenAPI_list_t* qos_chars,
53
+    bool is_qos_mon_decs_null,
54
     OpenAPI_list_t* qos_mon_decs,
55
     bool is_reflective_qo_s_timer,
56
     int reflective_qo_s_timer,
57
+    bool is_conds_null,
58
     OpenAPI_list_t* conds,
59
     char *revalidation_time,
60
     bool is_offline,
61
@@ -98,9 +110,11 @@
62
     int online,
63
     bool is_offline_ch_only,
64
     int offline_ch_only,
65
+    bool is_policy_ctrl_req_triggers_null,
66
     OpenAPI_list_t *policy_ctrl_req_triggers,
67
     OpenAPI_list_t *last_req_rule_data,
68
     OpenAPI_requested_usage_data_t *last_req_usage_data,
69
+    bool is_pra_infos_null,
70
     OpenAPI_list_t* pra_infos,
71
     bool is_ipv4_index,
72
     int ipv4_index,
73
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.c Changed
53
 
1
@@ -35,6 +35,7 @@
2
     bool is_mcs_priority_level,
3
     int mcs_priority_level,
4
     OpenAPI_list_t* pra_infos,
5
+    bool is_bdt_ref_ids_null,
6
     OpenAPI_list_t* bdt_ref_ids,
7
     bool is_loc_rout_not_allowed,
8
     int loc_rout_not_allowed
9
@@ -73,6 +74,7 @@
10
     sm_policy_dnn_data_local_var->is_mcs_priority_level = is_mcs_priority_level;
11
     sm_policy_dnn_data_local_var->mcs_priority_level = mcs_priority_level;
12
     sm_policy_dnn_data_local_var->pra_infos = pra_infos;
13
+    sm_policy_dnn_data_local_var->is_bdt_ref_ids_null = is_bdt_ref_ids_null;
14
     sm_policy_dnn_data_local_var->bdt_ref_ids = bdt_ref_ids;
15
     sm_policy_dnn_data_local_var->is_loc_rout_not_allowed = is_loc_rout_not_allowed;
16
     sm_policy_dnn_data_local_var->loc_rout_not_allowed = loc_rout_not_allowed;
17
@@ -386,6 +388,11 @@
18
             }
19
         }
20
     }
21
+    } else if (sm_policy_dnn_data->is_bdt_ref_ids_null) {
22
+        if (cJSON_AddNullToObject(item, "bdtRefIds") == NULL) {
23
+            ogs_error("OpenAPI_sm_policy_dnn_data_convertToJSON() failed bdt_ref_ids");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (sm_policy_dnn_data->is_loc_rout_not_allowed) {
29
@@ -649,6 +656,7 @@
30
 
31
     bdt_ref_ids = cJSON_GetObjectItemCaseSensitive(sm_policy_dnn_dataJSON, "bdtRefIds");
32
     if (bdt_ref_ids) {
33
+    if (!cJSON_IsNull(bdt_ref_ids)) {
34
         cJSON *bdt_ref_ids_local_map = NULL;
35
         if (!cJSON_IsObject(bdt_ref_ids) && !cJSON_IsNull(bdt_ref_ids)) {
36
             ogs_error("OpenAPI_sm_policy_dnn_data_parseFromJSON() failed bdt_ref_ids");
37
@@ -670,6 +678,7 @@
38
             }
39
         }
40
     }
41
+    }
42
 
43
     loc_rout_not_allowed = cJSON_GetObjectItemCaseSensitive(sm_policy_dnn_dataJSON, "locRoutNotAllowed");
44
     if (loc_rout_not_allowed) {
45
@@ -710,6 +719,7 @@
46
         mcs_priority_level ? true : false,
47
         mcs_priority_level ? mcs_priority_level->valuedouble : 0,
48
         pra_infos ? pra_infosList : NULL,
49
+        bdt_ref_ids && cJSON_IsNull(bdt_ref_ids) ? true : false,
50
         bdt_ref_ids ? bdt_ref_idsList : NULL,
51
         loc_rout_not_allowed ? true : false,
52
         loc_rout_not_allowed ? loc_rout_not_allowed->valueint : 0
53
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data.h Changed
17
 
1
@@ -52,6 +52,7 @@
2
     bool is_mcs_priority_level;
3
     int mcs_priority_level;
4
     OpenAPI_list_t* pra_infos;
5
+    bool is_bdt_ref_ids_null;
6
     OpenAPI_list_t* bdt_ref_ids;
7
     bool is_loc_rout_not_allowed;
8
     int loc_rout_not_allowed;
9
@@ -88,6 +89,7 @@
10
     bool is_mcs_priority_level,
11
     int mcs_priority_level,
12
     OpenAPI_list_t* pra_infos,
13
+    bool is_bdt_ref_ids_null,
14
     OpenAPI_list_t* bdt_ref_ids,
15
     bool is_loc_rout_not_allowed,
16
     int loc_rout_not_allowed
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.c Changed
49
 
1
@@ -6,6 +6,7 @@
2
 
3
 OpenAPI_sm_policy_dnn_data_patch_t *OpenAPI_sm_policy_dnn_data_patch_create(
4
     char *dnn,
5
+    bool is_bdt_ref_ids_null,
6
     OpenAPI_list_t* bdt_ref_ids
7
 )
8
 {
9
@@ -13,6 +14,7 @@
10
     ogs_assert(sm_policy_dnn_data_patch_local_var);
11
 
12
     sm_policy_dnn_data_patch_local_var->dnn = dnn;
13
+    sm_policy_dnn_data_patch_local_var->is_bdt_ref_ids_null = is_bdt_ref_ids_null;
14
     sm_policy_dnn_data_patch_local_var->bdt_ref_ids = bdt_ref_ids;
15
 
16
     return sm_policy_dnn_data_patch_local_var;
17
@@ -86,6 +88,11 @@
18
             }
19
         }
20
     }
21
+    } else if (sm_policy_dnn_data_patch->is_bdt_ref_ids_null) {
22
+        if (cJSON_AddNullToObject(item, "bdtRefIds") == NULL) {
23
+            ogs_error("OpenAPI_sm_policy_dnn_data_patch_convertToJSON() failed bdt_ref_ids");
24
+            goto end;
25
+        }
26
     }
27
 
28
 end:
29
@@ -111,6 +118,7 @@
30
 
31
     bdt_ref_ids = cJSON_GetObjectItemCaseSensitive(sm_policy_dnn_data_patchJSON, "bdtRefIds");
32
     if (bdt_ref_ids) {
33
+    if (!cJSON_IsNull(bdt_ref_ids)) {
34
         cJSON *bdt_ref_ids_local_map = NULL;
35
         if (!cJSON_IsObject(bdt_ref_ids) && !cJSON_IsNull(bdt_ref_ids)) {
36
             ogs_error("OpenAPI_sm_policy_dnn_data_patch_parseFromJSON() failed bdt_ref_ids");
37
@@ -132,9 +140,11 @@
38
             }
39
         }
40
     }
41
+    }
42
 
43
     sm_policy_dnn_data_patch_local_var = OpenAPI_sm_policy_dnn_data_patch_create (
44
         ogs_strdup(dnn->valuestring),
45
+        bdt_ref_ids && cJSON_IsNull(bdt_ref_ids) ? true : false,
46
         bdt_ref_ids ? bdt_ref_idsList : NULL
47
     );
48
 
49
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_dnn_data_patch.h Changed
15
 
1
@@ -20,11 +20,13 @@
2
 typedef struct OpenAPI_sm_policy_dnn_data_patch_s OpenAPI_sm_policy_dnn_data_patch_t;
3
 typedef struct OpenAPI_sm_policy_dnn_data_patch_s {
4
     char *dnn;
5
+    bool is_bdt_ref_ids_null;
6
     OpenAPI_list_t* bdt_ref_ids;
7
 } OpenAPI_sm_policy_dnn_data_patch_t;
8
 
9
 OpenAPI_sm_policy_dnn_data_patch_t *OpenAPI_sm_policy_dnn_data_patch_create(
10
     char *dnn,
11
+    bool is_bdt_ref_ids_null,
12
     OpenAPI_list_t* bdt_ref_ids
13
 );
14
 void OpenAPI_sm_policy_dnn_data_patch_free(OpenAPI_sm_policy_dnn_data_patch_t *sm_policy_dnn_data_patch);
15
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.c Changed
133
 
1
@@ -47,6 +47,7 @@
2
     OpenAPI_qos_flow_usage_e qos_flow_usage,
3
     OpenAPI_credit_management_status_e credit_manage_status,
4
     OpenAPI_serving_nf_identity_t *serv_nf_id,
5
+    bool is_trace_req_null,
6
     OpenAPI_trace_data_t *trace_req,
7
     OpenAPI_ma_pdu_indication_e ma_pdu_ind,
8
     OpenAPI_npcf_atsss_capability_e atsss_capab,
9
@@ -62,7 +63,9 @@
10
     OpenAPI_list_t *types_of_notif,
11
     OpenAPI_list_t *inter_grp_ids,
12
     OpenAPI_satellite_backhaul_category_e sat_backhaul_category,
13
+    bool is_pcf_ue_info_null,
14
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
15
+    bool is_nwdaf_datas_null,
16
     OpenAPI_list_t *nwdaf_datas,
17
     bool is_an_gw_status,
18
     int an_gw_status
19
@@ -113,6 +116,7 @@
20
     sm_policy_update_context_data_local_var->qos_flow_usage = qos_flow_usage;
21
     sm_policy_update_context_data_local_var->credit_manage_status = credit_manage_status;
22
     sm_policy_update_context_data_local_var->serv_nf_id = serv_nf_id;
23
+    sm_policy_update_context_data_local_var->is_trace_req_null = is_trace_req_null;
24
     sm_policy_update_context_data_local_var->trace_req = trace_req;
25
     sm_policy_update_context_data_local_var->ma_pdu_ind = ma_pdu_ind;
26
     sm_policy_update_context_data_local_var->atsss_capab = atsss_capab;
27
@@ -128,7 +132,9 @@
28
     sm_policy_update_context_data_local_var->types_of_notif = types_of_notif;
29
     sm_policy_update_context_data_local_var->inter_grp_ids = inter_grp_ids;
30
     sm_policy_update_context_data_local_var->sat_backhaul_category = sat_backhaul_category;
31
+    sm_policy_update_context_data_local_var->is_pcf_ue_info_null = is_pcf_ue_info_null;
32
     sm_policy_update_context_data_local_var->pcf_ue_info = pcf_ue_info;
33
+    sm_policy_update_context_data_local_var->is_nwdaf_datas_null = is_nwdaf_datas_null;
34
     sm_policy_update_context_data_local_var->nwdaf_datas = nwdaf_datas;
35
     sm_policy_update_context_data_local_var->is_an_gw_status = is_an_gw_status;
36
     sm_policy_update_context_data_local_var->an_gw_status = an_gw_status;
37
@@ -802,6 +808,11 @@
38
         ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed trace_req");
39
         goto end;
40
     }
41
+    } else if (sm_policy_update_context_data->is_trace_req_null) {
42
+        if (cJSON_AddNullToObject(item, "traceReq") == NULL) {
43
+            ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed trace_req");
44
+            goto end;
45
+        }
46
     }
47
 
48
     if (sm_policy_update_context_data->ma_pdu_ind != OpenAPI_ma_pdu_indication_NULL) {
49
@@ -988,6 +999,11 @@
50
         ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed pcf_ue_info");
51
         goto end;
52
     }
53
+    } else if (sm_policy_update_context_data->is_pcf_ue_info_null) {
54
+        if (cJSON_AddNullToObject(item, "pcfUeInfo") == NULL) {
55
+            ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed pcf_ue_info");
56
+            goto end;
57
+        }
58
     }
59
 
60
     if (sm_policy_update_context_data->nwdaf_datas) {
61
@@ -1004,6 +1020,11 @@
62
         }
63
         cJSON_AddItemToArray(nwdaf_datasList, itemLocal);
64
     }
65
+    } else if (sm_policy_update_context_data->is_nwdaf_datas_null) {
66
+        if (cJSON_AddNullToObject(item, "nwdafDatas") == NULL) {
67
+            ogs_error("OpenAPI_sm_policy_update_context_data_convertToJSON() failed nwdaf_datas");
68
+            goto end;
69
+        }
70
     }
71
 
72
     if (sm_policy_update_context_data->is_an_gw_status) {
73
@@ -1581,12 +1602,14 @@
74
 
75
     trace_req = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "traceReq");
76
     if (trace_req) {
77
+    if (!cJSON_IsNull(trace_req)) {
78
     trace_req_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_req);
79
     if (!trace_req_local_nonprim) {
80
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_req");
81
         goto end;
82
     }
83
     }
84
+    }
85
 
86
     ma_pdu_ind = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "maPduInd");
87
     if (ma_pdu_ind) {
88
@@ -1819,15 +1842,18 @@
89
 
90
     pcf_ue_info = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "pcfUeInfo");
91
     if (pcf_ue_info) {
92
+    if (!cJSON_IsNull(pcf_ue_info)) {
93
     pcf_ue_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_info);
94
     if (!pcf_ue_info_local_nonprim) {
95
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_info");
96
         goto end;
97
     }
98
     }
99
+    }
100
 
101
     nwdaf_datas = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "nwdafDatas");
102
     if (nwdaf_datas) {
103
+    if (!cJSON_IsNull(nwdaf_datas)) {
104
         cJSON *nwdaf_datas_local = NULL;
105
         if (!cJSON_IsArray(nwdaf_datas)) {
106
             ogs_error("OpenAPI_sm_policy_update_context_data_parseFromJSON() failed nwdaf_datas");
107
@@ -1849,6 +1875,7 @@
108
             OpenAPI_list_add(nwdaf_datasList, nwdaf_datasItem);
109
         }
110
     }
111
+    }
112
 
113
     an_gw_status = cJSON_GetObjectItemCaseSensitive(sm_policy_update_context_dataJSON, "anGwStatus");
114
     if (an_gw_status) {
115
@@ -1901,6 +1928,7 @@
116
         qos_flow_usage ? qos_flow_usageVariable : 0,
117
         credit_manage_status ? credit_manage_statusVariable : 0,
118
         serv_nf_id ? serv_nf_id_local_nonprim : NULL,
119
+        trace_req && cJSON_IsNull(trace_req) ? true : false,
120
         trace_req ? trace_req_local_nonprim : NULL,
121
         ma_pdu_ind ? ma_pdu_indVariable : 0,
122
         atsss_capab ? atsss_capabVariable : 0,
123
@@ -1916,7 +1944,9 @@
124
         types_of_notif ? types_of_notifList : NULL,
125
         inter_grp_ids ? inter_grp_idsList : NULL,
126
         sat_backhaul_category ? sat_backhaul_categoryVariable : 0,
127
+        pcf_ue_info && cJSON_IsNull(pcf_ue_info) ? true : false,
128
         pcf_ue_info ? pcf_ue_info_local_nonprim : NULL,
129
+        nwdaf_datas && cJSON_IsNull(nwdaf_datas) ? true : false,
130
         nwdaf_datas ? nwdaf_datasList : NULL,
131
         an_gw_status ? true : false,
132
         an_gw_status ? an_gw_status->valueint : 0
133
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sm_policy_update_context_data.h Changed
37
 
1
@@ -96,6 +96,7 @@
2
     OpenAPI_qos_flow_usage_e qos_flow_usage;
3
     OpenAPI_credit_management_status_e credit_manage_status;
4
     struct OpenAPI_serving_nf_identity_s *serv_nf_id;
5
+    bool is_trace_req_null;
6
     struct OpenAPI_trace_data_s *trace_req;
7
     OpenAPI_ma_pdu_indication_e ma_pdu_ind;
8
     OpenAPI_npcf_atsss_capability_e atsss_capab;
9
@@ -111,7 +112,9 @@
10
     OpenAPI_list_t *types_of_notif;
11
     OpenAPI_list_t *inter_grp_ids;
12
     OpenAPI_satellite_backhaul_category_e sat_backhaul_category;
13
+    bool is_pcf_ue_info_null;
14
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_info;
15
+    bool is_nwdaf_datas_null;
16
     OpenAPI_list_t *nwdaf_datas;
17
     bool is_an_gw_status;
18
     int an_gw_status;
19
@@ -160,6 +163,7 @@
20
     OpenAPI_qos_flow_usage_e qos_flow_usage,
21
     OpenAPI_credit_management_status_e credit_manage_status,
22
     OpenAPI_serving_nf_identity_t *serv_nf_id,
23
+    bool is_trace_req_null,
24
     OpenAPI_trace_data_t *trace_req,
25
     OpenAPI_ma_pdu_indication_e ma_pdu_ind,
26
     OpenAPI_npcf_atsss_capability_e atsss_capab,
27
@@ -175,7 +179,9 @@
28
     OpenAPI_list_t *types_of_notif,
29
     OpenAPI_list_t *inter_grp_ids,
30
     OpenAPI_satellite_backhaul_category_e sat_backhaul_category,
31
+    bool is_pcf_ue_info_null,
32
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_info,
33
+    bool is_nwdaf_datas_null,
34
     OpenAPI_list_t *nwdaf_datas,
35
     bool is_an_gw_status,
36
     int an_gw_status
37
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/smf_selection_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/smf_selection_data.c Changed
53
 
1
@@ -7,6 +7,7 @@
2
 OpenAPI_smf_selection_data_t *OpenAPI_smf_selection_data_create(
3
     bool is_unsupp_dnn,
4
     int unsupp_dnn,
5
+    bool is_candidates_null,
6
     OpenAPI_list_t* candidates,
7
     OpenAPI_snssai_t *snssai,
8
     OpenAPI_snssai_t *mapping_snssai,
9
@@ -18,6 +19,7 @@
10
 
11
     smf_selection_data_local_var->is_unsupp_dnn = is_unsupp_dnn;
12
     smf_selection_data_local_var->unsupp_dnn = unsupp_dnn;
13
+    smf_selection_data_local_var->is_candidates_null = is_candidates_null;
14
     smf_selection_data_local_var->candidates = candidates;
15
     smf_selection_data_local_var->snssai = snssai;
16
     smf_selection_data_local_var->mapping_snssai = mapping_snssai;
17
@@ -104,6 +106,11 @@
18
             cJSON_AddItemToObject(localMapObject, localKeyValue->key, itemLocal);
19
         }
20
     }
21
+    } else if (smf_selection_data->is_candidates_null) {
22
+        if (cJSON_AddNullToObject(item, "candidates") == NULL) {
23
+            ogs_error("OpenAPI_smf_selection_data_convertToJSON() failed candidates");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (smf_selection_data->snssai) {
29
@@ -165,6 +172,7 @@
30
 
31
     candidates = cJSON_GetObjectItemCaseSensitive(smf_selection_dataJSON, "candidates");
32
     if (candidates) {
33
+    if (!cJSON_IsNull(candidates)) {
34
         cJSON *candidates_local_map = NULL;
35
         if (!cJSON_IsObject(candidates) && !cJSON_IsNull(candidates)) {
36
             ogs_error("OpenAPI_smf_selection_data_parseFromJSON() failed candidates");
37
@@ -188,6 +196,7 @@
38
             }
39
         }
40
     }
41
+    }
42
 
43
     snssai = cJSON_GetObjectItemCaseSensitive(smf_selection_dataJSON, "snssai");
44
     if (snssai) {
45
@@ -218,6 +227,7 @@
46
     smf_selection_data_local_var = OpenAPI_smf_selection_data_create (
47
         unsupp_dnn ? true : false,
48
         unsupp_dnn ? unsupp_dnn->valueint : 0,
49
+        candidates && cJSON_IsNull(candidates) ? true : false,
50
         candidates ? candidatesList : NULL,
51
         snssai ? snssai_local_nonprim : NULL,
52
         mapping_snssai ? mapping_snssai_local_nonprim : NULL,
53
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/smf_selection_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/smf_selection_data.h Changed
17
 
1
@@ -23,6 +23,7 @@
2
 typedef struct OpenAPI_smf_selection_data_s {
3
     bool is_unsupp_dnn;
4
     int unsupp_dnn;
5
+    bool is_candidates_null;
6
     OpenAPI_list_t* candidates;
7
     struct OpenAPI_snssai_s *snssai;
8
     struct OpenAPI_snssai_s *mapping_snssai;
9
@@ -32,6 +33,7 @@
10
 OpenAPI_smf_selection_data_t *OpenAPI_smf_selection_data_create(
11
     bool is_unsupp_dnn,
12
     int unsupp_dnn,
13
+    bool is_candidates_null,
14
     OpenAPI_list_t* candidates,
15
     OpenAPI_snssai_t *snssai,
16
     OpenAPI_snssai_t *mapping_snssai,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data.c Changed
52
 
1
@@ -19,6 +19,7 @@
2
     bool is_mo_sms_barring_roaming,
3
     int mo_sms_barring_roaming,
4
     OpenAPI_list_t *shared_sms_mng_data_ids,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data
7
 )
8
 {
9
@@ -39,6 +40,7 @@
10
     sms_management_subscription_data_local_var->is_mo_sms_barring_roaming = is_mo_sms_barring_roaming;
11
     sms_management_subscription_data_local_var->mo_sms_barring_roaming = mo_sms_barring_roaming;
12
     sms_management_subscription_data_local_var->shared_sms_mng_data_ids = shared_sms_mng_data_ids;
13
+    sms_management_subscription_data_local_var->is_trace_data_null = is_trace_data_null;
14
     sms_management_subscription_data_local_var->trace_data = trace_data;
15
 
16
     return sms_management_subscription_data_local_var;
17
@@ -154,6 +156,11 @@
18
         ogs_error("OpenAPI_sms_management_subscription_data_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (sms_management_subscription_data->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_sms_management_subscription_data_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
 end:
29
@@ -254,12 +261,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(sms_management_subscription_dataJSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     sms_management_subscription_data_local_var = OpenAPI_sms_management_subscription_data_create (
43
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL,
44
@@ -276,6 +285,7 @@
45
         mo_sms_barring_roaming ? true : false,
46
         mo_sms_barring_roaming ? mo_sms_barring_roaming->valueint : 0,
47
         shared_sms_mng_data_ids ? shared_sms_mng_data_idsList : NULL,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL
50
     );
51
 
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data.h Changed
17
 
1
@@ -34,6 +34,7 @@
2
     bool is_mo_sms_barring_roaming;
3
     int mo_sms_barring_roaming;
4
     OpenAPI_list_t *shared_sms_mng_data_ids;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
 } OpenAPI_sms_management_subscription_data_t;
8
 
9
@@ -52,6 +53,7 @@
10
     bool is_mo_sms_barring_roaming,
11
     int mo_sms_barring_roaming,
12
     OpenAPI_list_t *shared_sms_mng_data_ids,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data
15
 );
16
 void OpenAPI_sms_management_subscription_data_free(OpenAPI_sms_management_subscription_data_t *sms_management_subscription_data);
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data_1.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data_1.c Changed
52
 
1
@@ -19,6 +19,7 @@
2
     bool is_mo_sms_barring_roaming,
3
     int mo_sms_barring_roaming,
4
     OpenAPI_list_t *shared_sms_mng_data_ids,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data
7
 )
8
 {
9
@@ -39,6 +40,7 @@
10
     sms_management_subscription_data_1_local_var->is_mo_sms_barring_roaming = is_mo_sms_barring_roaming;
11
     sms_management_subscription_data_1_local_var->mo_sms_barring_roaming = mo_sms_barring_roaming;
12
     sms_management_subscription_data_1_local_var->shared_sms_mng_data_ids = shared_sms_mng_data_ids;
13
+    sms_management_subscription_data_1_local_var->is_trace_data_null = is_trace_data_null;
14
     sms_management_subscription_data_1_local_var->trace_data = trace_data;
15
 
16
     return sms_management_subscription_data_1_local_var;
17
@@ -154,6 +156,11 @@
18
         ogs_error("OpenAPI_sms_management_subscription_data_1_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (sms_management_subscription_data_1->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_sms_management_subscription_data_1_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
 end:
29
@@ -254,12 +261,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(sms_management_subscription_data_1JSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     sms_management_subscription_data_1_local_var = OpenAPI_sms_management_subscription_data_1_create (
43
         supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL,
44
@@ -276,6 +285,7 @@
45
         mo_sms_barring_roaming ? true : false,
46
         mo_sms_barring_roaming ? mo_sms_barring_roaming->valueint : 0,
47
         shared_sms_mng_data_ids ? shared_sms_mng_data_idsList : NULL,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL
50
     );
51
 
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data_1.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/sms_management_subscription_data_1.h Changed
17
 
1
@@ -34,6 +34,7 @@
2
     bool is_mo_sms_barring_roaming;
3
     int mo_sms_barring_roaming;
4
     OpenAPI_list_t *shared_sms_mng_data_ids;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
 } OpenAPI_sms_management_subscription_data_1_t;
8
 
9
@@ -52,6 +53,7 @@
10
     bool is_mo_sms_barring_roaming,
11
     int mo_sms_barring_roaming,
12
     OpenAPI_list_t *shared_sms_mng_data_ids,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data
15
 );
16
 void OpenAPI_sms_management_subscription_data_1_free(OpenAPI_sms_management_subscription_data_1_t *sms_management_subscription_data_1);
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/steering_mode.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/steering_mode.c Changed
52
 
1
@@ -11,6 +11,7 @@
2
     bool is__3g_load,
3
     int _3g_load,
4
     OpenAPI_access_type_e prio_acc,
5
+    bool is_thres_value_null,
6
     OpenAPI_threshold_value_t *thres_value,
7
     OpenAPI_steer_mode_indicator_e steer_mode_ind
8
 )
9
@@ -24,6 +25,7 @@
10
     steering_mode_local_var->is__3g_load = is__3g_load;
11
     steering_mode_local_var->_3g_load = _3g_load;
12
     steering_mode_local_var->prio_acc = prio_acc;
13
+    steering_mode_local_var->is_thres_value_null = is_thres_value_null;
14
     steering_mode_local_var->thres_value = thres_value;
15
     steering_mode_local_var->steer_mode_ind = steer_mode_ind;
16
 
17
@@ -113,6 +115,11 @@
18
         ogs_error("OpenAPI_steering_mode_convertToJSON() failed thres_value");
19
         goto end;
20
     }
21
+    } else if (steering_mode->is_thres_value_null) {
22
+        if (cJSON_AddNullToObject(item, "thresValue") == NULL) {
23
+            ogs_error("OpenAPI_steering_mode_convertToJSON() failed thres_value");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (steering_mode->steer_mode_ind != OpenAPI_steer_mode_indicator_NULL) {
29
@@ -191,12 +198,14 @@
30
 
31
     thres_value = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "thresValue");
32
     if (thres_value) {
33
+    if (!cJSON_IsNull(thres_value)) {
34
     thres_value_local_nonprim = OpenAPI_threshold_value_parseFromJSON(thres_value);
35
     if (!thres_value_local_nonprim) {
36
         ogs_error("OpenAPI_threshold_value_parseFromJSON failed thres_value");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     steer_mode_ind = cJSON_GetObjectItemCaseSensitive(steering_modeJSON, "steerModeInd");
43
     if (steer_mode_ind) {
44
@@ -214,6 +223,7 @@
45
         _3g_load ? true : false,
46
         _3g_load ? _3g_load->valuedouble : 0,
47
         prio_acc ? prio_accVariable : 0,
48
+        thres_value && cJSON_IsNull(thres_value) ? true : false,
49
         thres_value ? thres_value_local_nonprim : NULL,
50
         steer_mode_ind ? steer_mode_indVariable : 0
51
     );
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/steering_mode.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/steering_mode.h Changed
17
 
1
@@ -30,6 +30,7 @@
2
     bool is__3g_load;
3
     int _3g_load;
4
     OpenAPI_access_type_e prio_acc;
5
+    bool is_thres_value_null;
6
     struct OpenAPI_threshold_value_s *thres_value;
7
     OpenAPI_steer_mode_indicator_e steer_mode_ind;
8
 } OpenAPI_steering_mode_t;
9
@@ -41,6 +42,7 @@
10
     bool is__3g_load,
11
     int _3g_load,
12
     OpenAPI_access_type_e prio_acc,
13
+    bool is_thres_value_null,
14
     OpenAPI_threshold_value_t *thres_value,
15
     OpenAPI_steer_mode_indicator_e steer_mode_ind
16
 );
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/subscription_data_sets.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/subscription_data_sets.c Changed
52
 
1
@@ -12,6 +12,7 @@
2
     OpenAPI_ue_context_in_smsf_data_t *uec_smsf_data,
3
     OpenAPI_sms_subscription_data_t *sms_subs_data,
4
     OpenAPI_sm_subs_data_t *sm_data,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     OpenAPI_sms_management_subscription_data_t *sms_mng_data,
8
     OpenAPI_lcs_privacy_data_t *lcs_privacy_data,
9
@@ -33,6 +34,7 @@
10
     subscription_data_sets_local_var->uec_smsf_data = uec_smsf_data;
11
     subscription_data_sets_local_var->sms_subs_data = sms_subs_data;
12
     subscription_data_sets_local_var->sm_data = sm_data;
13
+    subscription_data_sets_local_var->is_trace_data_null = is_trace_data_null;
14
     subscription_data_sets_local_var->trace_data = trace_data;
15
     subscription_data_sets_local_var->sms_mng_data = sms_mng_data;
16
     subscription_data_sets_local_var->lcs_privacy_data = lcs_privacy_data;
17
@@ -233,6 +235,11 @@
18
         ogs_error("OpenAPI_subscription_data_sets_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (subscription_data_sets->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_subscription_data_sets_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (subscription_data_sets->sms_mng_data) {
29
@@ -444,12 +451,14 @@
30
 
31
     trace_data = cJSON_GetObjectItemCaseSensitive(subscription_data_setsJSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     sms_mng_data = cJSON_GetObjectItemCaseSensitive(subscription_data_setsJSON, "smsMngData");
43
     if (sms_mng_data) {
44
@@ -531,6 +540,7 @@
45
         uec_smsf_data ? uec_smsf_data_local_nonprim : NULL,
46
         sms_subs_data ? sms_subs_data_local_nonprim : NULL,
47
         sm_data ? sm_data_local_nonprim : NULL,
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL,
50
         sms_mng_data ? sms_mng_data_local_nonprim : NULL,
51
         lcs_privacy_data ? lcs_privacy_data_local_nonprim : NULL,
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/subscription_data_sets.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/subscription_data_sets.h Changed
17
 
1
@@ -42,6 +42,7 @@
2
     struct OpenAPI_ue_context_in_smsf_data_s *uec_smsf_data;
3
     struct OpenAPI_sms_subscription_data_s *sms_subs_data;
4
     struct OpenAPI_sm_subs_data_s *sm_data;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     struct OpenAPI_sms_management_subscription_data_s *sms_mng_data;
8
     struct OpenAPI_lcs_privacy_data_s *lcs_privacy_data;
9
@@ -61,6 +62,7 @@
10
     OpenAPI_ue_context_in_smsf_data_t *uec_smsf_data,
11
     OpenAPI_sms_subscription_data_t *sms_subs_data,
12
     OpenAPI_sm_subs_data_t *sm_data,
13
+    bool is_trace_data_null,
14
     OpenAPI_trace_data_t *trace_data,
15
     OpenAPI_sms_management_subscription_data_t *sms_mng_data,
16
     OpenAPI_lcs_privacy_data_t *lcs_privacy_data,
17
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/threshold_value.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/threshold_value.c Changed
77
 
1
@@ -5,8 +5,10 @@
2
 #include "threshold_value.h"
3
 
4
 OpenAPI_threshold_value_t *OpenAPI_threshold_value_create(
5
+    bool is_rtt_thres_null,
6
     bool is_rtt_thres,
7
     int rtt_thres,
8
+    bool is_plr_thres_null,
9
     bool is_plr_thres,
10
     int plr_thres
11
 )
12
@@ -14,8 +16,10 @@
13
     OpenAPI_threshold_value_t *threshold_value_local_var = ogs_malloc(sizeof(OpenAPI_threshold_value_t));
14
     ogs_assert(threshold_value_local_var);
15
 
16
+    threshold_value_local_var->is_rtt_thres_null = is_rtt_thres_null;
17
     threshold_value_local_var->is_rtt_thres = is_rtt_thres;
18
     threshold_value_local_var->rtt_thres = rtt_thres;
19
+    threshold_value_local_var->is_plr_thres_null = is_plr_thres_null;
20
     threshold_value_local_var->is_plr_thres = is_plr_thres;
21
     threshold_value_local_var->plr_thres = plr_thres;
22
 
23
@@ -48,6 +52,11 @@
24
         ogs_error("OpenAPI_threshold_value_convertToJSON() failed rtt_thres");
25
         goto end;
26
     }
27
+    } else if (threshold_value->is_rtt_thres_null) {
28
+        if (cJSON_AddNullToObject(item, "rttThres") == NULL) {
29
+            ogs_error("OpenAPI_threshold_value_convertToJSON() failed rtt_thres");
30
+            goto end;
31
+        }
32
     }
33
 
34
     if (threshold_value->is_plr_thres) {
35
@@ -55,6 +64,11 @@
36
         ogs_error("OpenAPI_threshold_value_convertToJSON() failed plr_thres");
37
         goto end;
38
     }
39
+    } else if (threshold_value->is_plr_thres_null) {
40
+        if (cJSON_AddNullToObject(item, "plrThres") == NULL) {
41
+            ogs_error("OpenAPI_threshold_value_convertToJSON() failed plr_thres");
42
+            goto end;
43
+        }
44
     }
45
 
46
 end:
47
@@ -69,23 +83,29 @@
48
     cJSON *plr_thres = NULL;
49
     rtt_thres = cJSON_GetObjectItemCaseSensitive(threshold_valueJSON, "rttThres");
50
     if (rtt_thres) {
51
+    if (!cJSON_IsNull(rtt_thres)) {
52
     if (!cJSON_IsNumber(rtt_thres)) {
53
         ogs_error("OpenAPI_threshold_value_parseFromJSON() failed rtt_thres");
54
         goto end;
55
     }
56
     }
57
+    }
58
 
59
     plr_thres = cJSON_GetObjectItemCaseSensitive(threshold_valueJSON, "plrThres");
60
     if (plr_thres) {
61
+    if (!cJSON_IsNull(plr_thres)) {
62
     if (!cJSON_IsNumber(plr_thres)) {
63
         ogs_error("OpenAPI_threshold_value_parseFromJSON() failed plr_thres");
64
         goto end;
65
     }
66
     }
67
+    }
68
 
69
     threshold_value_local_var = OpenAPI_threshold_value_create (
70
+        rtt_thres && cJSON_IsNull(rtt_thres) ? true : false,
71
         rtt_thres ? true : false,
72
         rtt_thres ? rtt_thres->valuedouble : 0,
73
+        plr_thres && cJSON_IsNull(plr_thres) ? true : false,
74
         plr_thres ? true : false,
75
         plr_thres ? plr_thres->valuedouble : 0
76
     );
77
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/threshold_value.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/threshold_value.h Changed
21
 
1
@@ -19,15 +19,19 @@
2
 
3
 typedef struct OpenAPI_threshold_value_s OpenAPI_threshold_value_t;
4
 typedef struct OpenAPI_threshold_value_s {
5
+    bool is_rtt_thres_null;
6
     bool is_rtt_thres;
7
     int rtt_thres;
8
+    bool is_plr_thres_null;
9
     bool is_plr_thres;
10
     int plr_thres;
11
 } OpenAPI_threshold_value_t;
12
 
13
 OpenAPI_threshold_value_t *OpenAPI_threshold_value_create(
14
+    bool is_rtt_thres_null,
15
     bool is_rtt_thres,
16
     int rtt_thres,
17
+    bool is_plr_thres_null,
18
     bool is_plr_thres,
19
     int plr_thres
20
 );
21
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/trace_data_response.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/trace_data_response.c Changed
52
 
1
@@ -5,6 +5,7 @@
2
 #include "trace_data_response.h"
3
 
4
 OpenAPI_trace_data_response_t *OpenAPI_trace_data_response_create(
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     char *shared_trace_data_id
8
 )
9
@@ -12,6 +13,7 @@
10
     OpenAPI_trace_data_response_t *trace_data_response_local_var = ogs_malloc(sizeof(OpenAPI_trace_data_response_t));
11
     ogs_assert(trace_data_response_local_var);
12
 
13
+    trace_data_response_local_var->is_trace_data_null = is_trace_data_null;
14
     trace_data_response_local_var->trace_data = trace_data;
15
     trace_data_response_local_var->shared_trace_data_id = shared_trace_data_id;
16
 
17
@@ -58,6 +60,11 @@
18
         ogs_error("OpenAPI_trace_data_response_convertToJSON() failed trace_data");
19
         goto end;
20
     }
21
+    } else if (trace_data_response->is_trace_data_null) {
22
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
23
+            ogs_error("OpenAPI_trace_data_response_convertToJSON() failed trace_data");
24
+            goto end;
25
+        }
26
     }
27
 
28
     if (trace_data_response->shared_trace_data_id) {
29
@@ -80,12 +87,14 @@
30
     cJSON *shared_trace_data_id = NULL;
31
     trace_data = cJSON_GetObjectItemCaseSensitive(trace_data_responseJSON, "traceData");
32
     if (trace_data) {
33
+    if (!cJSON_IsNull(trace_data)) {
34
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
35
     if (!trace_data_local_nonprim) {
36
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
37
         goto end;
38
     }
39
     }
40
+    }
41
 
42
     shared_trace_data_id = cJSON_GetObjectItemCaseSensitive(trace_data_responseJSON, "sharedTraceDataId");
43
     if (shared_trace_data_id) {
44
@@ -96,6 +105,7 @@
45
     }
46
 
47
     trace_data_response_local_var = OpenAPI_trace_data_response_create (
48
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
49
         trace_data ? trace_data_local_nonprim : NULL,
50
         shared_trace_data_id && !cJSON_IsNull(shared_trace_data_id) ? ogs_strdup(shared_trace_data_id->valuestring) : NULL
51
     );
52
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/trace_data_response.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/trace_data_response.h Changed
15
 
1
@@ -20,11 +20,13 @@
2
 
3
 typedef struct OpenAPI_trace_data_response_s OpenAPI_trace_data_response_t;
4
 typedef struct OpenAPI_trace_data_response_s {
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     char *shared_trace_data_id;
8
 } OpenAPI_trace_data_response_t;
9
 
10
 OpenAPI_trace_data_response_t *OpenAPI_trace_data_response_create(
11
+    bool is_trace_data_null,
12
     OpenAPI_trace_data_t *trace_data,
13
     char *shared_trace_data_id
14
 );
15
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/traffic_control_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/traffic_control_data.c Changed
221
 
1
@@ -11,11 +11,16 @@
2
     OpenAPI_list_t *add_redirect_info,
3
     bool is_mute_notif,
4
     int mute_notif,
5
+    bool is_traffic_steering_pol_id_dl_null,
6
     char *traffic_steering_pol_id_dl,
7
+    bool is_traffic_steering_pol_id_ul_null,
8
     char *traffic_steering_pol_id_ul,
9
+    bool is_route_to_locs_null,
10
     OpenAPI_list_t *route_to_locs,
11
+    bool is_max_allowed_up_lat_null,
12
     bool is_max_allowed_up_lat,
13
     int max_allowed_up_lat,
14
+    bool is_eas_ip_replace_infos_null,
15
     OpenAPI_list_t *eas_ip_replace_infos,
16
     bool is_traff_corre_ind,
17
     int traff_corre_ind,
18
@@ -23,6 +28,7 @@
19
     int sim_conn_ind,
20
     bool is_sim_conn_term,
21
     int sim_conn_term,
22
+    bool is_up_path_chg_event_null,
23
     OpenAPI_up_path_chg_event_t *up_path_chg_event,
24
     OpenAPI_steering_functionality_e steer_fun,
25
     OpenAPI_steering_mode_t *steer_mode_dl,
26
@@ -39,11 +45,16 @@
27
     traffic_control_data_local_var->add_redirect_info = add_redirect_info;
28
     traffic_control_data_local_var->is_mute_notif = is_mute_notif;
29
     traffic_control_data_local_var->mute_notif = mute_notif;
30
+    traffic_control_data_local_var->is_traffic_steering_pol_id_dl_null = is_traffic_steering_pol_id_dl_null;
31
     traffic_control_data_local_var->traffic_steering_pol_id_dl = traffic_steering_pol_id_dl;
32
+    traffic_control_data_local_var->is_traffic_steering_pol_id_ul_null = is_traffic_steering_pol_id_ul_null;
33
     traffic_control_data_local_var->traffic_steering_pol_id_ul = traffic_steering_pol_id_ul;
34
+    traffic_control_data_local_var->is_route_to_locs_null = is_route_to_locs_null;
35
     traffic_control_data_local_var->route_to_locs = route_to_locs;
36
+    traffic_control_data_local_var->is_max_allowed_up_lat_null = is_max_allowed_up_lat_null;
37
     traffic_control_data_local_var->is_max_allowed_up_lat = is_max_allowed_up_lat;
38
     traffic_control_data_local_var->max_allowed_up_lat = max_allowed_up_lat;
39
+    traffic_control_data_local_var->is_eas_ip_replace_infos_null = is_eas_ip_replace_infos_null;
40
     traffic_control_data_local_var->eas_ip_replace_infos = eas_ip_replace_infos;
41
     traffic_control_data_local_var->is_traff_corre_ind = is_traff_corre_ind;
42
     traffic_control_data_local_var->traff_corre_ind = traff_corre_ind;
43
@@ -51,6 +62,7 @@
44
     traffic_control_data_local_var->sim_conn_ind = sim_conn_ind;
45
     traffic_control_data_local_var->is_sim_conn_term = is_sim_conn_term;
46
     traffic_control_data_local_var->sim_conn_term = sim_conn_term;
47
+    traffic_control_data_local_var->is_up_path_chg_event_null = is_up_path_chg_event_null;
48
     traffic_control_data_local_var->up_path_chg_event = up_path_chg_event;
49
     traffic_control_data_local_var->steer_fun = steer_fun;
50
     traffic_control_data_local_var->steer_mode_dl = steer_mode_dl;
51
@@ -187,6 +199,11 @@
52
         ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed traffic_steering_pol_id_dl");
53
         goto end;
54
     }
55
+    } else if (traffic_control_data->is_traffic_steering_pol_id_dl_null) {
56
+        if (cJSON_AddNullToObject(item, "trafficSteeringPolIdDl") == NULL) {
57
+            ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed traffic_steering_pol_id_dl");
58
+            goto end;
59
+        }
60
     }
61
 
62
     if (traffic_control_data->traffic_steering_pol_id_ul) {
63
@@ -194,6 +211,11 @@
64
         ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed traffic_steering_pol_id_ul");
65
         goto end;
66
     }
67
+    } else if (traffic_control_data->is_traffic_steering_pol_id_ul_null) {
68
+        if (cJSON_AddNullToObject(item, "trafficSteeringPolIdUl") == NULL) {
69
+            ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed traffic_steering_pol_id_ul");
70
+            goto end;
71
+        }
72
     }
73
 
74
     if (traffic_control_data->route_to_locs) {
75
@@ -210,6 +232,11 @@
76
         }
77
         cJSON_AddItemToArray(route_to_locsList, itemLocal);
78
     }
79
+    } else if (traffic_control_data->is_route_to_locs_null) {
80
+        if (cJSON_AddNullToObject(item, "routeToLocs") == NULL) {
81
+            ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed route_to_locs");
82
+            goto end;
83
+        }
84
     }
85
 
86
     if (traffic_control_data->is_max_allowed_up_lat) {
87
@@ -217,6 +244,11 @@
88
         ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed max_allowed_up_lat");
89
         goto end;
90
     }
91
+    } else if (traffic_control_data->is_max_allowed_up_lat_null) {
92
+        if (cJSON_AddNullToObject(item, "maxAllowedUpLat") == NULL) {
93
+            ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed max_allowed_up_lat");
94
+            goto end;
95
+        }
96
     }
97
 
98
     if (traffic_control_data->eas_ip_replace_infos) {
99
@@ -233,6 +265,11 @@
100
         }
101
         cJSON_AddItemToArray(eas_ip_replace_infosList, itemLocal);
102
     }
103
+    } else if (traffic_control_data->is_eas_ip_replace_infos_null) {
104
+        if (cJSON_AddNullToObject(item, "easIpReplaceInfos") == NULL) {
105
+            ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed eas_ip_replace_infos");
106
+            goto end;
107
+        }
108
     }
109
 
110
     if (traffic_control_data->is_traff_corre_ind) {
111
@@ -267,6 +304,11 @@
112
         ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed up_path_chg_event");
113
         goto end;
114
     }
115
+    } else if (traffic_control_data->is_up_path_chg_event_null) {
116
+        if (cJSON_AddNullToObject(item, "upPathChgEvent") == NULL) {
117
+            ogs_error("OpenAPI_traffic_control_data_convertToJSON() failed up_path_chg_event");
118
+            goto end;
119
+        }
120
     }
121
 
122
     if (traffic_control_data->steer_fun != OpenAPI_steering_functionality_NULL) {
123
@@ -407,22 +449,27 @@
124
 
125
     traffic_steering_pol_id_dl = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "trafficSteeringPolIdDl");
126
     if (traffic_steering_pol_id_dl) {
127
+    if (!cJSON_IsNull(traffic_steering_pol_id_dl)) {
128
     if (!cJSON_IsString(traffic_steering_pol_id_dl) && !cJSON_IsNull(traffic_steering_pol_id_dl)) {
129
         ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed traffic_steering_pol_id_dl");
130
         goto end;
131
     }
132
     }
133
+    }
134
 
135
     traffic_steering_pol_id_ul = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "trafficSteeringPolIdUl");
136
     if (traffic_steering_pol_id_ul) {
137
+    if (!cJSON_IsNull(traffic_steering_pol_id_ul)) {
138
     if (!cJSON_IsString(traffic_steering_pol_id_ul) && !cJSON_IsNull(traffic_steering_pol_id_ul)) {
139
         ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed traffic_steering_pol_id_ul");
140
         goto end;
141
     }
142
     }
143
+    }
144
 
145
     route_to_locs = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "routeToLocs");
146
     if (route_to_locs) {
147
+    if (!cJSON_IsNull(route_to_locs)) {
148
         cJSON *route_to_locs_local = NULL;
149
         if (!cJSON_IsArray(route_to_locs)) {
150
             ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed route_to_locs");
151
@@ -444,17 +491,21 @@
152
             OpenAPI_list_add(route_to_locsList, route_to_locsItem);
153
         }
154
     }
155
+    }
156
 
157
     max_allowed_up_lat = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "maxAllowedUpLat");
158
     if (max_allowed_up_lat) {
159
+    if (!cJSON_IsNull(max_allowed_up_lat)) {
160
     if (!cJSON_IsNumber(max_allowed_up_lat)) {
161
         ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed max_allowed_up_lat");
162
         goto end;
163
     }
164
     }
165
+    }
166
 
167
     eas_ip_replace_infos = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "easIpReplaceInfos");
168
     if (eas_ip_replace_infos) {
169
+    if (!cJSON_IsNull(eas_ip_replace_infos)) {
170
         cJSON *eas_ip_replace_infos_local = NULL;
171
         if (!cJSON_IsArray(eas_ip_replace_infos)) {
172
             ogs_error("OpenAPI_traffic_control_data_parseFromJSON() failed eas_ip_replace_infos");
173
@@ -476,6 +527,7 @@
174
             OpenAPI_list_add(eas_ip_replace_infosList, eas_ip_replace_infosItem);
175
         }
176
     }
177
+    }
178
 
179
     traff_corre_ind = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "traffCorreInd");
180
     if (traff_corre_ind) {
181
@@ -503,12 +555,14 @@
182
 
183
     up_path_chg_event = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "upPathChgEvent");
184
     if (up_path_chg_event) {
185
+    if (!cJSON_IsNull(up_path_chg_event)) {
186
     up_path_chg_event_local_nonprim = OpenAPI_up_path_chg_event_parseFromJSON(up_path_chg_event);
187
     if (!up_path_chg_event_local_nonprim) {
188
         ogs_error("OpenAPI_up_path_chg_event_parseFromJSON failed up_path_chg_event");
189
         goto end;
190
     }
191
     }
192
+    }
193
 
194
     steer_fun = cJSON_GetObjectItemCaseSensitive(traffic_control_dataJSON, "steerFun");
195
     if (steer_fun) {
196
@@ -553,11 +607,16 @@
197
         add_redirect_info ? add_redirect_infoList : NULL,
198
         mute_notif ? true : false,
199
         mute_notif ? mute_notif->valueint : 0,
200
+        traffic_steering_pol_id_dl && cJSON_IsNull(traffic_steering_pol_id_dl) ? true : false,
201
         traffic_steering_pol_id_dl && !cJSON_IsNull(traffic_steering_pol_id_dl) ? ogs_strdup(traffic_steering_pol_id_dl->valuestring) : NULL,
202
+        traffic_steering_pol_id_ul && cJSON_IsNull(traffic_steering_pol_id_ul) ? true : false,
203
         traffic_steering_pol_id_ul && !cJSON_IsNull(traffic_steering_pol_id_ul) ? ogs_strdup(traffic_steering_pol_id_ul->valuestring) : NULL,
204
+        route_to_locs && cJSON_IsNull(route_to_locs) ? true : false,
205
         route_to_locs ? route_to_locsList : NULL,
206
+        max_allowed_up_lat && cJSON_IsNull(max_allowed_up_lat) ? true : false,
207
         max_allowed_up_lat ? true : false,
208
         max_allowed_up_lat ? max_allowed_up_lat->valuedouble : 0,
209
+        eas_ip_replace_infos && cJSON_IsNull(eas_ip_replace_infos) ? true : false,
210
         eas_ip_replace_infos ? eas_ip_replace_infosList : NULL,
211
         traff_corre_ind ? true : false,
212
         traff_corre_ind ? traff_corre_ind->valueint : 0,
213
@@ -565,6 +624,7 @@
214
         sim_conn_ind ? sim_conn_ind->valueint : 0,
215
         sim_conn_term ? true : false,
216
         sim_conn_term ? sim_conn_term->valuedouble : 0,
217
+        up_path_chg_event && cJSON_IsNull(up_path_chg_event) ? true : false,
218
         up_path_chg_event ? up_path_chg_event_local_nonprim : NULL,
219
         steer_fun ? steer_funVariable : 0,
220
         steer_mode_dl ? steer_mode_dl_local_nonprim : NULL,
221
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/traffic_control_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/traffic_control_data.h Changed
51
 
1
@@ -33,11 +33,16 @@
2
     OpenAPI_list_t *add_redirect_info;
3
     bool is_mute_notif;
4
     int mute_notif;
5
+    bool is_traffic_steering_pol_id_dl_null;
6
     char *traffic_steering_pol_id_dl;
7
+    bool is_traffic_steering_pol_id_ul_null;
8
     char *traffic_steering_pol_id_ul;
9
+    bool is_route_to_locs_null;
10
     OpenAPI_list_t *route_to_locs;
11
+    bool is_max_allowed_up_lat_null;
12
     bool is_max_allowed_up_lat;
13
     int max_allowed_up_lat;
14
+    bool is_eas_ip_replace_infos_null;
15
     OpenAPI_list_t *eas_ip_replace_infos;
16
     bool is_traff_corre_ind;
17
     int traff_corre_ind;
18
@@ -45,6 +50,7 @@
19
     int sim_conn_ind;
20
     bool is_sim_conn_term;
21
     int sim_conn_term;
22
+    bool is_up_path_chg_event_null;
23
     struct OpenAPI_up_path_chg_event_s *up_path_chg_event;
24
     OpenAPI_steering_functionality_e steer_fun;
25
     struct OpenAPI_steering_mode_s *steer_mode_dl;
26
@@ -59,11 +65,16 @@
27
     OpenAPI_list_t *add_redirect_info,
28
     bool is_mute_notif,
29
     int mute_notif,
30
+    bool is_traffic_steering_pol_id_dl_null,
31
     char *traffic_steering_pol_id_dl,
32
+    bool is_traffic_steering_pol_id_ul_null,
33
     char *traffic_steering_pol_id_ul,
34
+    bool is_route_to_locs_null,
35
     OpenAPI_list_t *route_to_locs,
36
+    bool is_max_allowed_up_lat_null,
37
     bool is_max_allowed_up_lat,
38
     int max_allowed_up_lat,
39
+    bool is_eas_ip_replace_infos_null,
40
     OpenAPI_list_t *eas_ip_replace_infos,
41
     bool is_traff_corre_ind,
42
     int traff_corre_ind,
43
@@ -71,6 +82,7 @@
44
     int sim_conn_ind,
45
     bool is_sim_conn_term,
46
     int sim_conn_term,
47
+    bool is_up_path_chg_event_null,
48
     OpenAPI_up_path_chg_event_t *up_path_chg_event,
49
     OpenAPI_steering_functionality_e steer_fun,
50
     OpenAPI_steering_mode_t *steer_mode_dl,
51
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/traffic_influ_data_patch.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/traffic_influ_data_patch.c Changed
144
 
1
@@ -15,6 +15,7 @@
2
     int traff_corre_ind,
3
     char *valid_start_time,
4
     char *valid_end_time,
5
+    bool is_temp_validities_null,
6
     OpenAPI_list_t *temp_validities,
7
     OpenAPI_network_area_info_2_t *nw_area_info,
8
     char *up_path_chg_notif_uri,
9
@@ -23,10 +24,12 @@
10
     int af_ack_ind,
11
     bool is_addr_preser_ind,
12
     int addr_preser_ind,
13
+    bool is_max_allowed_up_lat_null,
14
     bool is_max_allowed_up_lat,
15
     int max_allowed_up_lat,
16
     bool is_sim_conn_ind,
17
     int sim_conn_ind,
18
+    bool is_sim_conn_term_null,
19
     bool is_sim_conn_term,
20
     int sim_conn_term
21
 )
22
@@ -44,6 +47,7 @@
23
     traffic_influ_data_patch_local_var->traff_corre_ind = traff_corre_ind;
24
     traffic_influ_data_patch_local_var->valid_start_time = valid_start_time;
25
     traffic_influ_data_patch_local_var->valid_end_time = valid_end_time;
26
+    traffic_influ_data_patch_local_var->is_temp_validities_null = is_temp_validities_null;
27
     traffic_influ_data_patch_local_var->temp_validities = temp_validities;
28
     traffic_influ_data_patch_local_var->nw_area_info = nw_area_info;
29
     traffic_influ_data_patch_local_var->up_path_chg_notif_uri = up_path_chg_notif_uri;
30
@@ -52,10 +56,12 @@
31
     traffic_influ_data_patch_local_var->af_ack_ind = af_ack_ind;
32
     traffic_influ_data_patch_local_var->is_addr_preser_ind = is_addr_preser_ind;
33
     traffic_influ_data_patch_local_var->addr_preser_ind = addr_preser_ind;
34
+    traffic_influ_data_patch_local_var->is_max_allowed_up_lat_null = is_max_allowed_up_lat_null;
35
     traffic_influ_data_patch_local_var->is_max_allowed_up_lat = is_max_allowed_up_lat;
36
     traffic_influ_data_patch_local_var->max_allowed_up_lat = max_allowed_up_lat;
37
     traffic_influ_data_patch_local_var->is_sim_conn_ind = is_sim_conn_ind;
38
     traffic_influ_data_patch_local_var->sim_conn_ind = sim_conn_ind;
39
+    traffic_influ_data_patch_local_var->is_sim_conn_term_null = is_sim_conn_term_null;
40
     traffic_influ_data_patch_local_var->is_sim_conn_term = is_sim_conn_term;
41
     traffic_influ_data_patch_local_var->sim_conn_term = sim_conn_term;
42
 
43
@@ -235,6 +241,11 @@
44
         }
45
         cJSON_AddItemToArray(temp_validitiesList, itemLocal);
46
     }
47
+    } else if (traffic_influ_data_patch->is_temp_validities_null) {
48
+        if (cJSON_AddNullToObject(item, "tempValidities") == NULL) {
49
+            ogs_error("OpenAPI_traffic_influ_data_patch_convertToJSON() failed temp_validities");
50
+            goto end;
51
+        }
52
     }
53
 
54
     if (traffic_influ_data_patch->nw_area_info) {
55
@@ -290,6 +301,11 @@
56
         ogs_error("OpenAPI_traffic_influ_data_patch_convertToJSON() failed max_allowed_up_lat");
57
         goto end;
58
     }
59
+    } else if (traffic_influ_data_patch->is_max_allowed_up_lat_null) {
60
+        if (cJSON_AddNullToObject(item, "maxAllowedUpLat") == NULL) {
61
+            ogs_error("OpenAPI_traffic_influ_data_patch_convertToJSON() failed max_allowed_up_lat");
62
+            goto end;
63
+        }
64
     }
65
 
66
     if (traffic_influ_data_patch->is_sim_conn_ind) {
67
@@ -304,6 +320,11 @@
68
         ogs_error("OpenAPI_traffic_influ_data_patch_convertToJSON() failed sim_conn_term");
69
         goto end;
70
     }
71
+    } else if (traffic_influ_data_patch->is_sim_conn_term_null) {
72
+        if (cJSON_AddNullToObject(item, "simConnTerm") == NULL) {
73
+            ogs_error("OpenAPI_traffic_influ_data_patch_convertToJSON() failed sim_conn_term");
74
+            goto end;
75
+        }
76
     }
77
 
78
 end:
79
@@ -451,6 +472,7 @@
80
 
81
     temp_validities = cJSON_GetObjectItemCaseSensitive(traffic_influ_data_patchJSON, "tempValidities");
82
     if (temp_validities) {
83
+    if (!cJSON_IsNull(temp_validities)) {
84
         cJSON *temp_validities_local = NULL;
85
         if (!cJSON_IsArray(temp_validities)) {
86
             ogs_error("OpenAPI_traffic_influ_data_patch_parseFromJSON() failed temp_validities");
87
@@ -472,6 +494,7 @@
88
             OpenAPI_list_add(temp_validitiesList, temp_validitiesItem);
89
         }
90
     }
91
+    }
92
 
93
     nw_area_info = cJSON_GetObjectItemCaseSensitive(traffic_influ_data_patchJSON, "nwAreaInfo");
94
     if (nw_area_info) {
95
@@ -529,11 +552,13 @@
96
 
97
     max_allowed_up_lat = cJSON_GetObjectItemCaseSensitive(traffic_influ_data_patchJSON, "maxAllowedUpLat");
98
     if (max_allowed_up_lat) {
99
+    if (!cJSON_IsNull(max_allowed_up_lat)) {
100
     if (!cJSON_IsNumber(max_allowed_up_lat)) {
101
         ogs_error("OpenAPI_traffic_influ_data_patch_parseFromJSON() failed max_allowed_up_lat");
102
         goto end;
103
     }
104
     }
105
+    }
106
 
107
     sim_conn_ind = cJSON_GetObjectItemCaseSensitive(traffic_influ_data_patchJSON, "simConnInd");
108
     if (sim_conn_ind) {
109
@@ -545,11 +570,13 @@
110
 
111
     sim_conn_term = cJSON_GetObjectItemCaseSensitive(traffic_influ_data_patchJSON, "simConnTerm");
112
     if (sim_conn_term) {
113
+    if (!cJSON_IsNull(sim_conn_term)) {
114
     if (!cJSON_IsNumber(sim_conn_term)) {
115
         ogs_error("OpenAPI_traffic_influ_data_patch_parseFromJSON() failed sim_conn_term");
116
         goto end;
117
     }
118
     }
119
+    }
120
 
121
     traffic_influ_data_patch_local_var = OpenAPI_traffic_influ_data_patch_create (
122
         up_path_chg_notif_corre_id && !cJSON_IsNull(up_path_chg_notif_corre_id) ? ogs_strdup(up_path_chg_notif_corre_id->valuestring) : NULL,
123
@@ -562,6 +589,7 @@
124
         traff_corre_ind ? traff_corre_ind->valueint : 0,
125
         valid_start_time && !cJSON_IsNull(valid_start_time) ? ogs_strdup(valid_start_time->valuestring) : NULL,
126
         valid_end_time && !cJSON_IsNull(valid_end_time) ? ogs_strdup(valid_end_time->valuestring) : NULL,
127
+        temp_validities && cJSON_IsNull(temp_validities) ? true : false,
128
         temp_validities ? temp_validitiesList : NULL,
129
         nw_area_info ? nw_area_info_local_nonprim : NULL,
130
         up_path_chg_notif_uri && !cJSON_IsNull(up_path_chg_notif_uri) ? ogs_strdup(up_path_chg_notif_uri->valuestring) : NULL,
131
@@ -570,10 +598,12 @@
132
         af_ack_ind ? af_ack_ind->valueint : 0,
133
         addr_preser_ind ? true : false,
134
         addr_preser_ind ? addr_preser_ind->valueint : 0,
135
+        max_allowed_up_lat && cJSON_IsNull(max_allowed_up_lat) ? true : false,
136
         max_allowed_up_lat ? true : false,
137
         max_allowed_up_lat ? max_allowed_up_lat->valuedouble : 0,
138
         sim_conn_ind ? true : false,
139
         sim_conn_ind ? sim_conn_ind->valueint : 0,
140
+        sim_conn_term && cJSON_IsNull(sim_conn_term) ? true : false,
141
         sim_conn_term ? true : false,
142
         sim_conn_term ? sim_conn_term->valuedouble : 0
143
     );
144
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/traffic_influ_data_patch.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/traffic_influ_data_patch.h Changed
43
 
1
@@ -34,6 +34,7 @@
2
     int traff_corre_ind;
3
     char *valid_start_time;
4
     char *valid_end_time;
5
+    bool is_temp_validities_null;
6
     OpenAPI_list_t *temp_validities;
7
     struct OpenAPI_network_area_info_2_s *nw_area_info;
8
     char *up_path_chg_notif_uri;
9
@@ -42,10 +43,12 @@
10
     int af_ack_ind;
11
     bool is_addr_preser_ind;
12
     int addr_preser_ind;
13
+    bool is_max_allowed_up_lat_null;
14
     bool is_max_allowed_up_lat;
15
     int max_allowed_up_lat;
16
     bool is_sim_conn_ind;
17
     int sim_conn_ind;
18
+    bool is_sim_conn_term_null;
19
     bool is_sim_conn_term;
20
     int sim_conn_term;
21
 } OpenAPI_traffic_influ_data_patch_t;
22
@@ -61,6 +64,7 @@
23
     int traff_corre_ind,
24
     char *valid_start_time,
25
     char *valid_end_time,
26
+    bool is_temp_validities_null,
27
     OpenAPI_list_t *temp_validities,
28
     OpenAPI_network_area_info_2_t *nw_area_info,
29
     char *up_path_chg_notif_uri,
30
@@ -69,10 +73,12 @@
31
     int af_ack_ind,
32
     bool is_addr_preser_ind,
33
     int addr_preser_ind,
34
+    bool is_max_allowed_up_lat_null,
35
     bool is_max_allowed_up_lat,
36
     int max_allowed_up_lat,
37
     bool is_sim_conn_ind,
38
     int sim_conn_ind,
39
+    bool is_sim_conn_term_null,
40
     bool is_sim_conn_term,
41
     int sim_conn_term
42
 );
43
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/tsn_qos_container_rm.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/tsn_qos_container_rm.c Changed
108
 
1
@@ -5,10 +5,13 @@
2
 #include "tsn_qos_container_rm.h"
3
 
4
 OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_create(
5
+    bool is_max_tsc_burst_size_null,
6
     bool is_max_tsc_burst_size,
7
     int max_tsc_burst_size,
8
+    bool is_tsc_pack_delay_null,
9
     bool is_tsc_pack_delay,
10
     int tsc_pack_delay,
11
+    bool is_tsc_prio_level_null,
12
     bool is_tsc_prio_level,
13
     int tsc_prio_level
14
 )
15
@@ -16,10 +19,13 @@
16
     OpenAPI_tsn_qos_container_rm_t *tsn_qos_container_rm_local_var = ogs_malloc(sizeof(OpenAPI_tsn_qos_container_rm_t));
17
     ogs_assert(tsn_qos_container_rm_local_var);
18
 
19
+    tsn_qos_container_rm_local_var->is_max_tsc_burst_size_null = is_max_tsc_burst_size_null;
20
     tsn_qos_container_rm_local_var->is_max_tsc_burst_size = is_max_tsc_burst_size;
21
     tsn_qos_container_rm_local_var->max_tsc_burst_size = max_tsc_burst_size;
22
+    tsn_qos_container_rm_local_var->is_tsc_pack_delay_null = is_tsc_pack_delay_null;
23
     tsn_qos_container_rm_local_var->is_tsc_pack_delay = is_tsc_pack_delay;
24
     tsn_qos_container_rm_local_var->tsc_pack_delay = tsc_pack_delay;
25
+    tsn_qos_container_rm_local_var->is_tsc_prio_level_null = is_tsc_prio_level_null;
26
     tsn_qos_container_rm_local_var->is_tsc_prio_level = is_tsc_prio_level;
27
     tsn_qos_container_rm_local_var->tsc_prio_level = tsc_prio_level;
28
 
29
@@ -52,6 +58,11 @@
30
         ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed max_tsc_burst_size");
31
         goto end;
32
     }
33
+    } else if (tsn_qos_container_rm->is_max_tsc_burst_size_null) {
34
+        if (cJSON_AddNullToObject(item, "maxTscBurstSize") == NULL) {
35
+            ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed max_tsc_burst_size");
36
+            goto end;
37
+        }
38
     }
39
 
40
     if (tsn_qos_container_rm->is_tsc_pack_delay) {
41
@@ -59,6 +70,11 @@
42
         ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed tsc_pack_delay");
43
         goto end;
44
     }
45
+    } else if (tsn_qos_container_rm->is_tsc_pack_delay_null) {
46
+        if (cJSON_AddNullToObject(item, "tscPackDelay") == NULL) {
47
+            ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed tsc_pack_delay");
48
+            goto end;
49
+        }
50
     }
51
 
52
     if (tsn_qos_container_rm->is_tsc_prio_level) {
53
@@ -66,6 +82,11 @@
54
         ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed tsc_prio_level");
55
         goto end;
56
     }
57
+    } else if (tsn_qos_container_rm->is_tsc_prio_level_null) {
58
+        if (cJSON_AddNullToObject(item, "tscPrioLevel") == NULL) {
59
+            ogs_error("OpenAPI_tsn_qos_container_rm_convertToJSON() failed tsc_prio_level");
60
+            goto end;
61
+        }
62
     }
63
 
64
 end:
65
@@ -81,33 +102,42 @@
66
     cJSON *tsc_prio_level = NULL;
67
     max_tsc_burst_size = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "maxTscBurstSize");
68
     if (max_tsc_burst_size) {
69
+    if (!cJSON_IsNull(max_tsc_burst_size)) {
70
     if (!cJSON_IsNumber(max_tsc_burst_size)) {
71
         ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed max_tsc_burst_size");
72
         goto end;
73
     }
74
     }
75
+    }
76
 
77
     tsc_pack_delay = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPackDelay");
78
     if (tsc_pack_delay) {
79
+    if (!cJSON_IsNull(tsc_pack_delay)) {
80
     if (!cJSON_IsNumber(tsc_pack_delay)) {
81
         ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed tsc_pack_delay");
82
         goto end;
83
     }
84
     }
85
+    }
86
 
87
     tsc_prio_level = cJSON_GetObjectItemCaseSensitive(tsn_qos_container_rmJSON, "tscPrioLevel");
88
     if (tsc_prio_level) {
89
+    if (!cJSON_IsNull(tsc_prio_level)) {
90
     if (!cJSON_IsNumber(tsc_prio_level)) {
91
         ogs_error("OpenAPI_tsn_qos_container_rm_parseFromJSON() failed tsc_prio_level");
92
         goto end;
93
     }
94
     }
95
+    }
96
 
97
     tsn_qos_container_rm_local_var = OpenAPI_tsn_qos_container_rm_create (
98
+        max_tsc_burst_size && cJSON_IsNull(max_tsc_burst_size) ? true : false,
99
         max_tsc_burst_size ? true : false,
100
         max_tsc_burst_size ? max_tsc_burst_size->valuedouble : 0,
101
+        tsc_pack_delay && cJSON_IsNull(tsc_pack_delay) ? true : false,
102
         tsc_pack_delay ? true : false,
103
         tsc_pack_delay ? tsc_pack_delay->valuedouble : 0,
104
+        tsc_prio_level && cJSON_IsNull(tsc_prio_level) ? true : false,
105
         tsc_prio_level ? true : false,
106
         tsc_prio_level ? tsc_prio_level->valuedouble : 0
107
     );
108
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/tsn_qos_container_rm.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/tsn_qos_container_rm.h Changed
27
 
1
@@ -19,19 +19,25 @@
2
 
3
 typedef struct OpenAPI_tsn_qos_container_rm_s OpenAPI_tsn_qos_container_rm_t;
4
 typedef struct OpenAPI_tsn_qos_container_rm_s {
5
+    bool is_max_tsc_burst_size_null;
6
     bool is_max_tsc_burst_size;
7
     int max_tsc_burst_size;
8
+    bool is_tsc_pack_delay_null;
9
     bool is_tsc_pack_delay;
10
     int tsc_pack_delay;
11
+    bool is_tsc_prio_level_null;
12
     bool is_tsc_prio_level;
13
     int tsc_prio_level;
14
 } OpenAPI_tsn_qos_container_rm_t;
15
 
16
 OpenAPI_tsn_qos_container_rm_t *OpenAPI_tsn_qos_container_rm_create(
17
+    bool is_max_tsc_burst_size_null,
18
     bool is_max_tsc_burst_size,
19
     int max_tsc_burst_size,
20
+    bool is_tsc_pack_delay_null,
21
     bool is_tsc_pack_delay,
22
     int tsc_pack_delay,
23
+    bool is_tsc_prio_level_null,
24
     bool is_tsc_prio_level,
25
     int tsc_prio_level
26
 );
27
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/ue_context.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/ue_context.c Changed
154
 
1
@@ -46,6 +46,7 @@
2
     OpenAPI_list_t *mm_context_list,
3
     OpenAPI_list_t *session_context_list,
4
     OpenAPI_eps_interworking_info_t *eps_interworking_info,
5
+    bool is_trace_data_null,
6
     OpenAPI_trace_data_t *trace_data,
7
     char *service_gap_expiry_time,
8
     char *stn_sr,
9
@@ -79,6 +80,7 @@
10
     OpenAPI_list_t* pra_in_ue_policy,
11
     OpenAPI_updp_subscription_data_t *updp_subscription_data,
12
     OpenAPI_list_t *sm_policy_notify_pdu_list,
13
+    bool is_pcf_ue_callback_info_null,
14
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
15
     char *ue_positioning_cap,
16
     bool is_asti_distribution_indication,
17
@@ -87,6 +89,7 @@
18
     int ts_error_budget,
19
     bool is_snpn_onboard_ind,
20
     int snpn_onboard_ind,
21
+    bool is_smf_sel_info_null,
22
     OpenAPI_smf_selection_data_t *smf_sel_info,
23
     OpenAPI_list_t* pcf_ue_slice_mbr_list,
24
     char *smsf_set_id,
25
@@ -141,6 +144,7 @@
26
     ue_context_local_var->mm_context_list = mm_context_list;
27
     ue_context_local_var->session_context_list = session_context_list;
28
     ue_context_local_var->eps_interworking_info = eps_interworking_info;
29
+    ue_context_local_var->is_trace_data_null = is_trace_data_null;
30
     ue_context_local_var->trace_data = trace_data;
31
     ue_context_local_var->service_gap_expiry_time = service_gap_expiry_time;
32
     ue_context_local_var->stn_sr = stn_sr;
33
@@ -174,6 +178,7 @@
34
     ue_context_local_var->pra_in_ue_policy = pra_in_ue_policy;
35
     ue_context_local_var->updp_subscription_data = updp_subscription_data;
36
     ue_context_local_var->sm_policy_notify_pdu_list = sm_policy_notify_pdu_list;
37
+    ue_context_local_var->is_pcf_ue_callback_info_null = is_pcf_ue_callback_info_null;
38
     ue_context_local_var->pcf_ue_callback_info = pcf_ue_callback_info;
39
     ue_context_local_var->ue_positioning_cap = ue_positioning_cap;
40
     ue_context_local_var->is_asti_distribution_indication = is_asti_distribution_indication;
41
@@ -182,6 +187,7 @@
42
     ue_context_local_var->ts_error_budget = ts_error_budget;
43
     ue_context_local_var->is_snpn_onboard_ind = is_snpn_onboard_ind;
44
     ue_context_local_var->snpn_onboard_ind = snpn_onboard_ind;
45
+    ue_context_local_var->is_smf_sel_info_null = is_smf_sel_info_null;
46
     ue_context_local_var->smf_sel_info = smf_sel_info;
47
     ue_context_local_var->pcf_ue_slice_mbr_list = pcf_ue_slice_mbr_list;
48
     ue_context_local_var->smsf_set_id = smsf_set_id;
49
@@ -916,6 +922,11 @@
50
         ogs_error("OpenAPI_ue_context_convertToJSON() failed trace_data");
51
         goto end;
52
     }
53
+    } else if (ue_context->is_trace_data_null) {
54
+        if (cJSON_AddNullToObject(item, "traceData") == NULL) {
55
+            ogs_error("OpenAPI_ue_context_convertToJSON() failed trace_data");
56
+            goto end;
57
+        }
58
     }
59
 
60
     if (ue_context->service_gap_expiry_time) {
61
@@ -1260,6 +1271,11 @@
62
         ogs_error("OpenAPI_ue_context_convertToJSON() failed pcf_ue_callback_info");
63
         goto end;
64
     }
65
+    } else if (ue_context->is_pcf_ue_callback_info_null) {
66
+        if (cJSON_AddNullToObject(item, "pcfUeCallbackInfo") == NULL) {
67
+            ogs_error("OpenAPI_ue_context_convertToJSON() failed pcf_ue_callback_info");
68
+            goto end;
69
+        }
70
     }
71
 
72
     if (ue_context->ue_positioning_cap) {
73
@@ -1301,6 +1317,11 @@
74
         ogs_error("OpenAPI_ue_context_convertToJSON() failed smf_sel_info");
75
         goto end;
76
     }
77
+    } else if (ue_context->is_smf_sel_info_null) {
78
+        if (cJSON_AddNullToObject(item, "smfSelInfo") == NULL) {
79
+            ogs_error("OpenAPI_ue_context_convertToJSON() failed smf_sel_info");
80
+            goto end;
81
+        }
82
     }
83
 
84
     if (ue_context->pcf_ue_slice_mbr_list) {
85
@@ -1975,12 +1996,14 @@
86
 
87
     trace_data = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "traceData");
88
     if (trace_data) {
89
+    if (!cJSON_IsNull(trace_data)) {
90
     trace_data_local_nonprim = OpenAPI_trace_data_parseFromJSON(trace_data);
91
     if (!trace_data_local_nonprim) {
92
         ogs_error("OpenAPI_trace_data_parseFromJSON failed trace_data");
93
         goto end;
94
     }
95
     }
96
+    }
97
 
98
     service_gap_expiry_time = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "serviceGapExpiryTime");
99
     if (service_gap_expiry_time) {
100
@@ -2339,12 +2362,14 @@
101
 
102
     pcf_ue_callback_info = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "pcfUeCallbackInfo");
103
     if (pcf_ue_callback_info) {
104
+    if (!cJSON_IsNull(pcf_ue_callback_info)) {
105
     pcf_ue_callback_info_local_nonprim = OpenAPI_pcf_ue_callback_info_parseFromJSON(pcf_ue_callback_info);
106
     if (!pcf_ue_callback_info_local_nonprim) {
107
         ogs_error("OpenAPI_pcf_ue_callback_info_parseFromJSON failed pcf_ue_callback_info");
108
         goto end;
109
     }
110
     }
111
+    }
112
 
113
     ue_positioning_cap = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "uePositioningCap");
114
     if (ue_positioning_cap) {
115
@@ -2380,12 +2405,14 @@
116
 
117
     smf_sel_info = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "smfSelInfo");
118
     if (smf_sel_info) {
119
+    if (!cJSON_IsNull(smf_sel_info)) {
120
     smf_sel_info_local_nonprim = OpenAPI_smf_selection_data_parseFromJSON(smf_sel_info);
121
     if (!smf_sel_info_local_nonprim) {
122
         ogs_error("OpenAPI_smf_selection_data_parseFromJSON failed smf_sel_info");
123
         goto end;
124
     }
125
     }
126
+    }
127
 
128
     pcf_ue_slice_mbr_list = cJSON_GetObjectItemCaseSensitive(ue_contextJSON, "pcfUeSliceMbrList");
129
     if (pcf_ue_slice_mbr_list) {
130
@@ -2496,6 +2523,7 @@
131
         mm_context_list ? mm_context_listList : NULL,
132
         session_context_list ? session_context_listList : NULL,
133
         eps_interworking_info ? eps_interworking_info_local_nonprim : NULL,
134
+        trace_data && cJSON_IsNull(trace_data) ? true : false,
135
         trace_data ? trace_data_local_nonprim : NULL,
136
         service_gap_expiry_time && !cJSON_IsNull(service_gap_expiry_time) ? ogs_strdup(service_gap_expiry_time->valuestring) : NULL,
137
         stn_sr && !cJSON_IsNull(stn_sr) ? ogs_strdup(stn_sr->valuestring) : NULL,
138
@@ -2529,6 +2557,7 @@
139
         pra_in_ue_policy ? pra_in_ue_policyList : NULL,
140
         updp_subscription_data ? updp_subscription_data_local_nonprim : NULL,
141
         sm_policy_notify_pdu_list ? sm_policy_notify_pdu_listList : NULL,
142
+        pcf_ue_callback_info && cJSON_IsNull(pcf_ue_callback_info) ? true : false,
143
         pcf_ue_callback_info ? pcf_ue_callback_info_local_nonprim : NULL,
144
         ue_positioning_cap && !cJSON_IsNull(ue_positioning_cap) ? ogs_strdup(ue_positioning_cap->valuestring) : NULL,
145
         asti_distribution_indication ? true : false,
146
@@ -2537,6 +2566,7 @@
147
         ts_error_budget ? ts_error_budget->valuedouble : 0,
148
         snpn_onboard_ind ? true : false,
149
         snpn_onboard_ind ? snpn_onboard_ind->valueint : 0,
150
+        smf_sel_info && cJSON_IsNull(smf_sel_info) ? true : false,
151
         smf_sel_info ? smf_sel_info_local_nonprim : NULL,
152
         pcf_ue_slice_mbr_list ? pcf_ue_slice_mbr_listList : NULL,
153
         smsf_set_id && !cJSON_IsNull(smsf_set_id) ? ogs_strdup(smsf_set_id->valuestring) : NULL,
154
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/ue_context.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/ue_context.h Changed
49
 
1
@@ -88,6 +88,7 @@
2
     OpenAPI_list_t *mm_context_list;
3
     OpenAPI_list_t *session_context_list;
4
     struct OpenAPI_eps_interworking_info_s *eps_interworking_info;
5
+    bool is_trace_data_null;
6
     struct OpenAPI_trace_data_s *trace_data;
7
     char *service_gap_expiry_time;
8
     char *stn_sr;
9
@@ -121,6 +122,7 @@
10
     OpenAPI_list_t* pra_in_ue_policy;
11
     struct OpenAPI_updp_subscription_data_s *updp_subscription_data;
12
     OpenAPI_list_t *sm_policy_notify_pdu_list;
13
+    bool is_pcf_ue_callback_info_null;
14
     struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_callback_info;
15
     char *ue_positioning_cap;
16
     bool is_asti_distribution_indication;
17
@@ -129,6 +131,7 @@
18
     int ts_error_budget;
19
     bool is_snpn_onboard_ind;
20
     int snpn_onboard_ind;
21
+    bool is_smf_sel_info_null;
22
     struct OpenAPI_smf_selection_data_s *smf_sel_info;
23
     OpenAPI_list_t* pcf_ue_slice_mbr_list;
24
     char *smsf_set_id;
25
@@ -181,6 +184,7 @@
26
     OpenAPI_list_t *mm_context_list,
27
     OpenAPI_list_t *session_context_list,
28
     OpenAPI_eps_interworking_info_t *eps_interworking_info,
29
+    bool is_trace_data_null,
30
     OpenAPI_trace_data_t *trace_data,
31
     char *service_gap_expiry_time,
32
     char *stn_sr,
33
@@ -214,6 +218,7 @@
34
     OpenAPI_list_t* pra_in_ue_policy,
35
     OpenAPI_updp_subscription_data_t *updp_subscription_data,
36
     OpenAPI_list_t *sm_policy_notify_pdu_list,
37
+    bool is_pcf_ue_callback_info_null,
38
     OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
39
     char *ue_positioning_cap,
40
     bool is_asti_distribution_indication,
41
@@ -222,6 +227,7 @@
42
     int ts_error_budget,
43
     bool is_snpn_onboard_ind,
44
     int snpn_onboard_ind,
45
+    bool is_smf_sel_info_null,
46
     OpenAPI_smf_selection_data_t *smf_sel_info,
47
     OpenAPI_list_t* pcf_ue_slice_mbr_list,
48
     char *smsf_set_id,
49
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/updated_item.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/updated_item.c Changed
25
 
1
@@ -6,6 +6,7 @@
2
 
3
 OpenAPI_updated_item_t *OpenAPI_updated_item_create(
4
     char *item,
5
+    bool is_value_null,
6
     OpenAPI_any_type_t *value
7
 )
8
 {
9
@@ -13,6 +14,7 @@
10
     ogs_assert(updated_item_local_var);
11
 
12
     updated_item_local_var->item = item;
13
+    updated_item_local_var->is_value_null = is_value_null;
14
     updated_item_local_var->value = value;
15
 
16
     return updated_item_local_var;
17
@@ -101,6 +103,7 @@
18
 
19
     updated_item_local_var = OpenAPI_updated_item_create (
20
         ogs_strdup(item->valuestring),
21
+        value && cJSON_IsNull(value) ? true : false,
22
         value_local_object
23
     );
24
 
25
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/updated_item.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/updated_item.h Changed
15
 
1
@@ -21,11 +21,13 @@
2
 typedef struct OpenAPI_updated_item_s OpenAPI_updated_item_t;
3
 typedef struct OpenAPI_updated_item_s {
4
     char *item;
5
+    bool is_value_null;
6
     OpenAPI_any_type_t *value;
7
 } OpenAPI_updated_item_t;
8
 
9
 OpenAPI_updated_item_t *OpenAPI_updated_item_create(
10
     char *item,
11
+    bool is_value_null,
12
     OpenAPI_any_type_t *value
13
 );
14
 void OpenAPI_updated_item_free(OpenAPI_updated_item_t *updated_item);
15
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/usage_monitoring_data.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/usage_monitoring_data.c Changed
356
 
1
@@ -6,25 +6,36 @@
2
 
3
 OpenAPI_usage_monitoring_data_t *OpenAPI_usage_monitoring_data_create(
4
     char *um_id,
5
+    bool is_volume_threshold_null,
6
     bool is_volume_threshold,
7
     long volume_threshold,
8
+    bool is_volume_threshold_uplink_null,
9
     bool is_volume_threshold_uplink,
10
     long volume_threshold_uplink,
11
+    bool is_volume_threshold_downlink_null,
12
     bool is_volume_threshold_downlink,
13
     long volume_threshold_downlink,
14
+    bool is_time_threshold_null,
15
     bool is_time_threshold,
16
     int time_threshold,
17
+    bool is_monitoring_time_null,
18
     char *monitoring_time,
19
+    bool is_next_vol_threshold_null,
20
     bool is_next_vol_threshold,
21
     long next_vol_threshold,
22
+    bool is_next_vol_threshold_uplink_null,
23
     bool is_next_vol_threshold_uplink,
24
     long next_vol_threshold_uplink,
25
+    bool is_next_vol_threshold_downlink_null,
26
     bool is_next_vol_threshold_downlink,
27
     long next_vol_threshold_downlink,
28
+    bool is_next_time_threshold_null,
29
     bool is_next_time_threshold,
30
     int next_time_threshold,
31
+    bool is_inactivity_time_null,
32
     bool is_inactivity_time,
33
     int inactivity_time,
34
+    bool is_ex_usage_pcc_rule_ids_null,
35
     OpenAPI_list_t *ex_usage_pcc_rule_ids
36
 )
37
 {
38
@@ -32,25 +43,36 @@
39
     ogs_assert(usage_monitoring_data_local_var);
40
 
41
     usage_monitoring_data_local_var->um_id = um_id;
42
+    usage_monitoring_data_local_var->is_volume_threshold_null = is_volume_threshold_null;
43
     usage_monitoring_data_local_var->is_volume_threshold = is_volume_threshold;
44
     usage_monitoring_data_local_var->volume_threshold = volume_threshold;
45
+    usage_monitoring_data_local_var->is_volume_threshold_uplink_null = is_volume_threshold_uplink_null;
46
     usage_monitoring_data_local_var->is_volume_threshold_uplink = is_volume_threshold_uplink;
47
     usage_monitoring_data_local_var->volume_threshold_uplink = volume_threshold_uplink;
48
+    usage_monitoring_data_local_var->is_volume_threshold_downlink_null = is_volume_threshold_downlink_null;
49
     usage_monitoring_data_local_var->is_volume_threshold_downlink = is_volume_threshold_downlink;
50
     usage_monitoring_data_local_var->volume_threshold_downlink = volume_threshold_downlink;
51
+    usage_monitoring_data_local_var->is_time_threshold_null = is_time_threshold_null;
52
     usage_monitoring_data_local_var->is_time_threshold = is_time_threshold;
53
     usage_monitoring_data_local_var->time_threshold = time_threshold;
54
+    usage_monitoring_data_local_var->is_monitoring_time_null = is_monitoring_time_null;
55
     usage_monitoring_data_local_var->monitoring_time = monitoring_time;
56
+    usage_monitoring_data_local_var->is_next_vol_threshold_null = is_next_vol_threshold_null;
57
     usage_monitoring_data_local_var->is_next_vol_threshold = is_next_vol_threshold;
58
     usage_monitoring_data_local_var->next_vol_threshold = next_vol_threshold;
59
+    usage_monitoring_data_local_var->is_next_vol_threshold_uplink_null = is_next_vol_threshold_uplink_null;
60
     usage_monitoring_data_local_var->is_next_vol_threshold_uplink = is_next_vol_threshold_uplink;
61
     usage_monitoring_data_local_var->next_vol_threshold_uplink = next_vol_threshold_uplink;
62
+    usage_monitoring_data_local_var->is_next_vol_threshold_downlink_null = is_next_vol_threshold_downlink_null;
63
     usage_monitoring_data_local_var->is_next_vol_threshold_downlink = is_next_vol_threshold_downlink;
64
     usage_monitoring_data_local_var->next_vol_threshold_downlink = next_vol_threshold_downlink;
65
+    usage_monitoring_data_local_var->is_next_time_threshold_null = is_next_time_threshold_null;
66
     usage_monitoring_data_local_var->is_next_time_threshold = is_next_time_threshold;
67
     usage_monitoring_data_local_var->next_time_threshold = next_time_threshold;
68
+    usage_monitoring_data_local_var->is_inactivity_time_null = is_inactivity_time_null;
69
     usage_monitoring_data_local_var->is_inactivity_time = is_inactivity_time;
70
     usage_monitoring_data_local_var->inactivity_time = inactivity_time;
71
+    usage_monitoring_data_local_var->is_ex_usage_pcc_rule_ids_null = is_ex_usage_pcc_rule_ids_null;
72
     usage_monitoring_data_local_var->ex_usage_pcc_rule_ids = ex_usage_pcc_rule_ids;
73
 
74
     return usage_monitoring_data_local_var;
75
@@ -106,6 +128,11 @@
76
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed volume_threshold");
77
         goto end;
78
     }
79
+    } else if (usage_monitoring_data->is_volume_threshold_null) {
80
+        if (cJSON_AddNullToObject(item, "volumeThreshold") == NULL) {
81
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed volume_threshold");
82
+            goto end;
83
+        }
84
     }
85
 
86
     if (usage_monitoring_data->is_volume_threshold_uplink) {
87
@@ -113,6 +140,11 @@
88
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed volume_threshold_uplink");
89
         goto end;
90
     }
91
+    } else if (usage_monitoring_data->is_volume_threshold_uplink_null) {
92
+        if (cJSON_AddNullToObject(item, "volumeThresholdUplink") == NULL) {
93
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed volume_threshold_uplink");
94
+            goto end;
95
+        }
96
     }
97
 
98
     if (usage_monitoring_data->is_volume_threshold_downlink) {
99
@@ -120,6 +152,11 @@
100
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed volume_threshold_downlink");
101
         goto end;
102
     }
103
+    } else if (usage_monitoring_data->is_volume_threshold_downlink_null) {
104
+        if (cJSON_AddNullToObject(item, "volumeThresholdDownlink") == NULL) {
105
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed volume_threshold_downlink");
106
+            goto end;
107
+        }
108
     }
109
 
110
     if (usage_monitoring_data->is_time_threshold) {
111
@@ -127,6 +164,11 @@
112
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed time_threshold");
113
         goto end;
114
     }
115
+    } else if (usage_monitoring_data->is_time_threshold_null) {
116
+        if (cJSON_AddNullToObject(item, "timeThreshold") == NULL) {
117
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed time_threshold");
118
+            goto end;
119
+        }
120
     }
121
 
122
     if (usage_monitoring_data->monitoring_time) {
123
@@ -134,6 +176,11 @@
124
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed monitoring_time");
125
         goto end;
126
     }
127
+    } else if (usage_monitoring_data->is_monitoring_time_null) {
128
+        if (cJSON_AddNullToObject(item, "monitoringTime") == NULL) {
129
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed monitoring_time");
130
+            goto end;
131
+        }
132
     }
133
 
134
     if (usage_monitoring_data->is_next_vol_threshold) {
135
@@ -141,6 +188,11 @@
136
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_vol_threshold");
137
         goto end;
138
     }
139
+    } else if (usage_monitoring_data->is_next_vol_threshold_null) {
140
+        if (cJSON_AddNullToObject(item, "nextVolThreshold") == NULL) {
141
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_vol_threshold");
142
+            goto end;
143
+        }
144
     }
145
 
146
     if (usage_monitoring_data->is_next_vol_threshold_uplink) {
147
@@ -148,6 +200,11 @@
148
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_vol_threshold_uplink");
149
         goto end;
150
     }
151
+    } else if (usage_monitoring_data->is_next_vol_threshold_uplink_null) {
152
+        if (cJSON_AddNullToObject(item, "nextVolThresholdUplink") == NULL) {
153
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_vol_threshold_uplink");
154
+            goto end;
155
+        }
156
     }
157
 
158
     if (usage_monitoring_data->is_next_vol_threshold_downlink) {
159
@@ -155,6 +212,11 @@
160
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_vol_threshold_downlink");
161
         goto end;
162
     }
163
+    } else if (usage_monitoring_data->is_next_vol_threshold_downlink_null) {
164
+        if (cJSON_AddNullToObject(item, "nextVolThresholdDownlink") == NULL) {
165
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_vol_threshold_downlink");
166
+            goto end;
167
+        }
168
     }
169
 
170
     if (usage_monitoring_data->is_next_time_threshold) {
171
@@ -162,6 +224,11 @@
172
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_time_threshold");
173
         goto end;
174
     }
175
+    } else if (usage_monitoring_data->is_next_time_threshold_null) {
176
+        if (cJSON_AddNullToObject(item, "nextTimeThreshold") == NULL) {
177
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed next_time_threshold");
178
+            goto end;
179
+        }
180
     }
181
 
182
     if (usage_monitoring_data->is_inactivity_time) {
183
@@ -169,6 +236,11 @@
184
         ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed inactivity_time");
185
         goto end;
186
     }
187
+    } else if (usage_monitoring_data->is_inactivity_time_null) {
188
+        if (cJSON_AddNullToObject(item, "inactivityTime") == NULL) {
189
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed inactivity_time");
190
+            goto end;
191
+        }
192
     }
193
 
194
     if (usage_monitoring_data->ex_usage_pcc_rule_ids) {
195
@@ -183,6 +255,11 @@
196
             goto end;
197
         }
198
     }
199
+    } else if (usage_monitoring_data->is_ex_usage_pcc_rule_ids_null) {
200
+        if (cJSON_AddNullToObject(item, "exUsagePccRuleIds") == NULL) {
201
+            ogs_error("OpenAPI_usage_monitoring_data_convertToJSON() failed ex_usage_pcc_rule_ids");
202
+            goto end;
203
+        }
204
     }
205
 
206
 end:
207
@@ -218,86 +295,107 @@
208
 
209
     volume_threshold = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "volumeThreshold");
210
     if (volume_threshold) {
211
+    if (!cJSON_IsNull(volume_threshold)) {
212
     if (!cJSON_IsNumber(volume_threshold)) {
213
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed volume_threshold");
214
         goto end;
215
     }
216
     }
217
+    }
218
 
219
     volume_threshold_uplink = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "volumeThresholdUplink");
220
     if (volume_threshold_uplink) {
221
+    if (!cJSON_IsNull(volume_threshold_uplink)) {
222
     if (!cJSON_IsNumber(volume_threshold_uplink)) {
223
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed volume_threshold_uplink");
224
         goto end;
225
     }
226
     }
227
+    }
228
 
229
     volume_threshold_downlink = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "volumeThresholdDownlink");
230
     if (volume_threshold_downlink) {
231
+    if (!cJSON_IsNull(volume_threshold_downlink)) {
232
     if (!cJSON_IsNumber(volume_threshold_downlink)) {
233
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed volume_threshold_downlink");
234
         goto end;
235
     }
236
     }
237
+    }
238
 
239
     time_threshold = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "timeThreshold");
240
     if (time_threshold) {
241
+    if (!cJSON_IsNull(time_threshold)) {
242
     if (!cJSON_IsNumber(time_threshold)) {
243
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed time_threshold");
244
         goto end;
245
     }
246
     }
247
+    }
248
 
249
     monitoring_time = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "monitoringTime");
250
     if (monitoring_time) {
251
+    if (!cJSON_IsNull(monitoring_time)) {
252
     if (!cJSON_IsString(monitoring_time) && !cJSON_IsNull(monitoring_time)) {
253
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed monitoring_time");
254
         goto end;
255
     }
256
     }
257
+    }
258
 
259
     next_vol_threshold = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "nextVolThreshold");
260
     if (next_vol_threshold) {
261
+    if (!cJSON_IsNull(next_vol_threshold)) {
262
     if (!cJSON_IsNumber(next_vol_threshold)) {
263
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed next_vol_threshold");
264
         goto end;
265
     }
266
     }
267
+    }
268
 
269
     next_vol_threshold_uplink = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "nextVolThresholdUplink");
270
     if (next_vol_threshold_uplink) {
271
+    if (!cJSON_IsNull(next_vol_threshold_uplink)) {
272
     if (!cJSON_IsNumber(next_vol_threshold_uplink)) {
273
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed next_vol_threshold_uplink");
274
         goto end;
275
     }
276
     }
277
+    }
278
 
279
     next_vol_threshold_downlink = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "nextVolThresholdDownlink");
280
     if (next_vol_threshold_downlink) {
281
+    if (!cJSON_IsNull(next_vol_threshold_downlink)) {
282
     if (!cJSON_IsNumber(next_vol_threshold_downlink)) {
283
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed next_vol_threshold_downlink");
284
         goto end;
285
     }
286
     }
287
+    }
288
 
289
     next_time_threshold = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "nextTimeThreshold");
290
     if (next_time_threshold) {
291
+    if (!cJSON_IsNull(next_time_threshold)) {
292
     if (!cJSON_IsNumber(next_time_threshold)) {
293
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed next_time_threshold");
294
         goto end;
295
     }
296
     }
297
+    }
298
 
299
     inactivity_time = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "inactivityTime");
300
     if (inactivity_time) {
301
+    if (!cJSON_IsNull(inactivity_time)) {
302
     if (!cJSON_IsNumber(inactivity_time)) {
303
         ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed inactivity_time");
304
         goto end;
305
     }
306
     }
307
+    }
308
 
309
     ex_usage_pcc_rule_ids = cJSON_GetObjectItemCaseSensitive(usage_monitoring_dataJSON, "exUsagePccRuleIds");
310
     if (ex_usage_pcc_rule_ids) {
311
+    if (!cJSON_IsNull(ex_usage_pcc_rule_ids)) {
312
         cJSON *ex_usage_pcc_rule_ids_local = NULL;
313
         if (!cJSON_IsArray(ex_usage_pcc_rule_ids)) {
314
             ogs_error("OpenAPI_usage_monitoring_data_parseFromJSON() failed ex_usage_pcc_rule_ids");
315
@@ -316,28 +414,40 @@
316
             OpenAPI_list_add(ex_usage_pcc_rule_idsList, ogs_strdup(ex_usage_pcc_rule_ids_local->valuestring));
317
         }
318
     }
319
+    }
320
 
321
     usage_monitoring_data_local_var = OpenAPI_usage_monitoring_data_create (
322
         ogs_strdup(um_id->valuestring),
323
+        volume_threshold && cJSON_IsNull(volume_threshold) ? true : false,
324
         volume_threshold ? true : false,
325
         volume_threshold ? volume_threshold->valuedouble : 0,
326
+        volume_threshold_uplink && cJSON_IsNull(volume_threshold_uplink) ? true : false,
327
         volume_threshold_uplink ? true : false,
328
         volume_threshold_uplink ? volume_threshold_uplink->valuedouble : 0,
329
+        volume_threshold_downlink && cJSON_IsNull(volume_threshold_downlink) ? true : false,
330
         volume_threshold_downlink ? true : false,
331
         volume_threshold_downlink ? volume_threshold_downlink->valuedouble : 0,
332
+        time_threshold && cJSON_IsNull(time_threshold) ? true : false,
333
         time_threshold ? true : false,
334
         time_threshold ? time_threshold->valuedouble : 0,
335
+        monitoring_time && cJSON_IsNull(monitoring_time) ? true : false,
336
         monitoring_time && !cJSON_IsNull(monitoring_time) ? ogs_strdup(monitoring_time->valuestring) : NULL,
337
+        next_vol_threshold && cJSON_IsNull(next_vol_threshold) ? true : false,
338
         next_vol_threshold ? true : false,
339
         next_vol_threshold ? next_vol_threshold->valuedouble : 0,
340
+        next_vol_threshold_uplink && cJSON_IsNull(next_vol_threshold_uplink) ? true : false,
341
         next_vol_threshold_uplink ? true : false,
342
         next_vol_threshold_uplink ? next_vol_threshold_uplink->valuedouble : 0,
343
+        next_vol_threshold_downlink && cJSON_IsNull(next_vol_threshold_downlink) ? true : false,
344
         next_vol_threshold_downlink ? true : false,
345
         next_vol_threshold_downlink ? next_vol_threshold_downlink->valuedouble : 0,
346
+        next_time_threshold && cJSON_IsNull(next_time_threshold) ? true : false,
347
         next_time_threshold ? true : false,
348
         next_time_threshold ? next_time_threshold->valuedouble : 0,
349
+        inactivity_time && cJSON_IsNull(inactivity_time) ? true : false,
350
         inactivity_time ? true : false,
351
         inactivity_time ? inactivity_time->valuedouble : 0,
352
+        ex_usage_pcc_rule_ids && cJSON_IsNull(ex_usage_pcc_rule_ids) ? true : false,
353
         ex_usage_pcc_rule_ids ? ex_usage_pcc_rule_idsList : NULL
354
     );
355
 
356
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/usage_monitoring_data.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/usage_monitoring_data.h Changed
73
 
1
@@ -20,49 +20,71 @@
2
 typedef struct OpenAPI_usage_monitoring_data_s OpenAPI_usage_monitoring_data_t;
3
 typedef struct OpenAPI_usage_monitoring_data_s {
4
     char *um_id;
5
+    bool is_volume_threshold_null;
6
     bool is_volume_threshold;
7
     long volume_threshold;
8
+    bool is_volume_threshold_uplink_null;
9
     bool is_volume_threshold_uplink;
10
     long volume_threshold_uplink;
11
+    bool is_volume_threshold_downlink_null;
12
     bool is_volume_threshold_downlink;
13
     long volume_threshold_downlink;
14
+    bool is_time_threshold_null;
15
     bool is_time_threshold;
16
     int time_threshold;
17
+    bool is_monitoring_time_null;
18
     char *monitoring_time;
19
+    bool is_next_vol_threshold_null;
20
     bool is_next_vol_threshold;
21
     long next_vol_threshold;
22
+    bool is_next_vol_threshold_uplink_null;
23
     bool is_next_vol_threshold_uplink;
24
     long next_vol_threshold_uplink;
25
+    bool is_next_vol_threshold_downlink_null;
26
     bool is_next_vol_threshold_downlink;
27
     long next_vol_threshold_downlink;
28
+    bool is_next_time_threshold_null;
29
     bool is_next_time_threshold;
30
     int next_time_threshold;
31
+    bool is_inactivity_time_null;
32
     bool is_inactivity_time;
33
     int inactivity_time;
34
+    bool is_ex_usage_pcc_rule_ids_null;
35
     OpenAPI_list_t *ex_usage_pcc_rule_ids;
36
 } OpenAPI_usage_monitoring_data_t;
37
 
38
 OpenAPI_usage_monitoring_data_t *OpenAPI_usage_monitoring_data_create(
39
     char *um_id,
40
+    bool is_volume_threshold_null,
41
     bool is_volume_threshold,
42
     long volume_threshold,
43
+    bool is_volume_threshold_uplink_null,
44
     bool is_volume_threshold_uplink,
45
     long volume_threshold_uplink,
46
+    bool is_volume_threshold_downlink_null,
47
     bool is_volume_threshold_downlink,
48
     long volume_threshold_downlink,
49
+    bool is_time_threshold_null,
50
     bool is_time_threshold,
51
     int time_threshold,
52
+    bool is_monitoring_time_null,
53
     char *monitoring_time,
54
+    bool is_next_vol_threshold_null,
55
     bool is_next_vol_threshold,
56
     long next_vol_threshold,
57
+    bool is_next_vol_threshold_uplink_null,
58
     bool is_next_vol_threshold_uplink,
59
     long next_vol_threshold_uplink,
60
+    bool is_next_vol_threshold_downlink_null,
61
     bool is_next_vol_threshold_downlink,
62
     long next_vol_threshold_downlink,
63
+    bool is_next_time_threshold_null,
64
     bool is_next_time_threshold,
65
     int next_time_threshold,
66
+    bool is_inactivity_time_null,
67
     bool is_inactivity_time,
68
     int inactivity_time,
69
+    bool is_ex_usage_pcc_rule_ids_null,
70
     OpenAPI_list_t *ex_usage_pcc_rule_ids
71
 );
72
 void OpenAPI_usage_monitoring_data_free(OpenAPI_usage_monitoring_data_t *usage_monitoring_data);
73
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/usage_threshold_rm.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/usage_threshold_rm.c Changed
139
 
1
@@ -5,12 +5,16 @@
2
 #include "usage_threshold_rm.h"
3
 
4
 OpenAPI_usage_threshold_rm_t *OpenAPI_usage_threshold_rm_create(
5
+    bool is_duration_null,
6
     bool is_duration,
7
     int duration,
8
+    bool is_total_volume_null,
9
     bool is_total_volume,
10
     long total_volume,
11
+    bool is_downlink_volume_null,
12
     bool is_downlink_volume,
13
     long downlink_volume,
14
+    bool is_uplink_volume_null,
15
     bool is_uplink_volume,
16
     long uplink_volume
17
 )
18
@@ -18,12 +22,16 @@
19
     OpenAPI_usage_threshold_rm_t *usage_threshold_rm_local_var = ogs_malloc(sizeof(OpenAPI_usage_threshold_rm_t));
20
     ogs_assert(usage_threshold_rm_local_var);
21
 
22
+    usage_threshold_rm_local_var->is_duration_null = is_duration_null;
23
     usage_threshold_rm_local_var->is_duration = is_duration;
24
     usage_threshold_rm_local_var->duration = duration;
25
+    usage_threshold_rm_local_var->is_total_volume_null = is_total_volume_null;
26
     usage_threshold_rm_local_var->is_total_volume = is_total_volume;
27
     usage_threshold_rm_local_var->total_volume = total_volume;
28
+    usage_threshold_rm_local_var->is_downlink_volume_null = is_downlink_volume_null;
29
     usage_threshold_rm_local_var->is_downlink_volume = is_downlink_volume;
30
     usage_threshold_rm_local_var->downlink_volume = downlink_volume;
31
+    usage_threshold_rm_local_var->is_uplink_volume_null = is_uplink_volume_null;
32
     usage_threshold_rm_local_var->is_uplink_volume = is_uplink_volume;
33
     usage_threshold_rm_local_var->uplink_volume = uplink_volume;
34
 
35
@@ -56,6 +64,11 @@
36
         ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed duration");
37
         goto end;
38
     }
39
+    } else if (usage_threshold_rm->is_duration_null) {
40
+        if (cJSON_AddNullToObject(item, "duration") == NULL) {
41
+            ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed duration");
42
+            goto end;
43
+        }
44
     }
45
 
46
     if (usage_threshold_rm->is_total_volume) {
47
@@ -63,6 +76,11 @@
48
         ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed total_volume");
49
         goto end;
50
     }
51
+    } else if (usage_threshold_rm->is_total_volume_null) {
52
+        if (cJSON_AddNullToObject(item, "totalVolume") == NULL) {
53
+            ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed total_volume");
54
+            goto end;
55
+        }
56
     }
57
 
58
     if (usage_threshold_rm->is_downlink_volume) {
59
@@ -70,6 +88,11 @@
60
         ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed downlink_volume");
61
         goto end;
62
     }
63
+    } else if (usage_threshold_rm->is_downlink_volume_null) {
64
+        if (cJSON_AddNullToObject(item, "downlinkVolume") == NULL) {
65
+            ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed downlink_volume");
66
+            goto end;
67
+        }
68
     }
69
 
70
     if (usage_threshold_rm->is_uplink_volume) {
71
@@ -77,6 +100,11 @@
72
         ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed uplink_volume");
73
         goto end;
74
     }
75
+    } else if (usage_threshold_rm->is_uplink_volume_null) {
76
+        if (cJSON_AddNullToObject(item, "uplinkVolume") == NULL) {
77
+            ogs_error("OpenAPI_usage_threshold_rm_convertToJSON() failed uplink_volume");
78
+            goto end;
79
+        }
80
     }
81
 
82
 end:
83
@@ -93,43 +121,55 @@
84
     cJSON *uplink_volume = NULL;
85
     duration = cJSON_GetObjectItemCaseSensitive(usage_threshold_rmJSON, "duration");
86
     if (duration) {
87
+    if (!cJSON_IsNull(duration)) {
88
     if (!cJSON_IsNumber(duration)) {
89
         ogs_error("OpenAPI_usage_threshold_rm_parseFromJSON() failed duration");
90
         goto end;
91
     }
92
     }
93
+    }
94
 
95
     total_volume = cJSON_GetObjectItemCaseSensitive(usage_threshold_rmJSON, "totalVolume");
96
     if (total_volume) {
97
+    if (!cJSON_IsNull(total_volume)) {
98
     if (!cJSON_IsNumber(total_volume)) {
99
         ogs_error("OpenAPI_usage_threshold_rm_parseFromJSON() failed total_volume");
100
         goto end;
101
     }
102
     }
103
+    }
104
 
105
     downlink_volume = cJSON_GetObjectItemCaseSensitive(usage_threshold_rmJSON, "downlinkVolume");
106
     if (downlink_volume) {
107
+    if (!cJSON_IsNull(downlink_volume)) {
108
     if (!cJSON_IsNumber(downlink_volume)) {
109
         ogs_error("OpenAPI_usage_threshold_rm_parseFromJSON() failed downlink_volume");
110
         goto end;
111
     }
112
     }
113
+    }
114
 
115
     uplink_volume = cJSON_GetObjectItemCaseSensitive(usage_threshold_rmJSON, "uplinkVolume");
116
     if (uplink_volume) {
117
+    if (!cJSON_IsNull(uplink_volume)) {
118
     if (!cJSON_IsNumber(uplink_volume)) {
119
         ogs_error("OpenAPI_usage_threshold_rm_parseFromJSON() failed uplink_volume");
120
         goto end;
121
     }
122
     }
123
+    }
124
 
125
     usage_threshold_rm_local_var = OpenAPI_usage_threshold_rm_create (
126
+        duration && cJSON_IsNull(duration) ? true : false,
127
         duration ? true : false,
128
         duration ? duration->valuedouble : 0,
129
+        total_volume && cJSON_IsNull(total_volume) ? true : false,
130
         total_volume ? true : false,
131
         total_volume ? total_volume->valuedouble : 0,
132
+        downlink_volume && cJSON_IsNull(downlink_volume) ? true : false,
133
         downlink_volume ? true : false,
134
         downlink_volume ? downlink_volume->valuedouble : 0,
135
+        uplink_volume && cJSON_IsNull(uplink_volume) ? true : false,
136
         uplink_volume ? true : false,
137
         uplink_volume ? uplink_volume->valuedouble : 0
138
     );
139
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/openapi/model/usage_threshold_rm.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/openapi/model/usage_threshold_rm.h Changed
33
 
1
@@ -19,23 +19,31 @@
2
 
3
 typedef struct OpenAPI_usage_threshold_rm_s OpenAPI_usage_threshold_rm_t;
4
 typedef struct OpenAPI_usage_threshold_rm_s {
5
+    bool is_duration_null;
6
     bool is_duration;
7
     int duration;
8
+    bool is_total_volume_null;
9
     bool is_total_volume;
10
     long total_volume;
11
+    bool is_downlink_volume_null;
12
     bool is_downlink_volume;
13
     long downlink_volume;
14
+    bool is_uplink_volume_null;
15
     bool is_uplink_volume;
16
     long uplink_volume;
17
 } OpenAPI_usage_threshold_rm_t;
18
 
19
 OpenAPI_usage_threshold_rm_t *OpenAPI_usage_threshold_rm_create(
20
+    bool is_duration_null,
21
     bool is_duration,
22
     int duration,
23
+    bool is_total_volume_null,
24
     bool is_total_volume,
25
     long total_volume,
26
+    bool is_downlink_volume_null,
27
     bool is_downlink_volume,
28
     long downlink_volume,
29
+    bool is_uplink_volume_null,
30
     bool is_uplink_volume,
31
     long uplink_volume
32
 );
33
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-body.mustache -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-body.mustache Changed
63
 
1
@@ -63,6 +63,9 @@
2
 {{/vars}}
3
 OpenAPI_{{classname}}_t *OpenAPI_{{classname}}_create(
4
 {{#vars}}
5
+    {{#isNullable}}
6
+    bool is_{{name}}_null,
7
+    {{/isNullable}}
8
     {{^isContainer}}
9
         {{^isPrimitiveType}}
10
             {{#isEnum}}
11
@@ -137,6 +140,9 @@
12
     ogs_assert({{classname}}_local_var);
13
 
14
 {{#vars}}
15
+    {{#isNullable}}
16
+    {{classname}}_local_var->is_{{{name}}}_null = is_{{{name}}}_null;
17
+    {{/isNullable}}
18
     {{^isContainer}}
19
         {{#isPrimitiveType}}
20
             {{^isEnum}}
21
@@ -588,6 +594,13 @@
22
         {{/isMap}}
23
     {{/isContainer}}
24
     {{^required}}
25
+    {{#isNullable}}
26
+    } else if ({{{classname}}}->is_{{{name}}}_null) {
27
+        if (cJSON_AddNullToObject(item, "{{{baseName}}}") == NULL) {
28
+            ogs_error("OpenAPI_{{classname}}_convertToJSON() failed {{{name}}}");
29
+            goto end;
30
+        }
31
+    {{/isNullable}}
32
     }
33
     {{/required}}
34
 
35
@@ -649,6 +662,9 @@
36
     {{/required}}
37
     {{^required}}
38
     if ({{{name}}}) {
39
+        {{#isNullable}}
40
+    if (!cJSON_IsNull({{{name}}})) {
41
+        {{/isNullable}}
42
     {{/required}}
43
     {{^isContainer}}
44
         {{#isPrimitiveType}}
45
@@ -928,11 +944,17 @@
46
     {{/isContainer}}
47
     {{^required}}
48
     }
49
+        {{#isNullable}}
50
+    }
51
+        {{/isNullable}}
52
     {{/required}}
53
 
54
 {{/vars}}
55
     {{classname}}_local_var = OpenAPI_{{classname}}_create (
56
 {{#vars}}
57
+    {{#isNullable}}
58
+        {{{name}}} && cJSON_IsNull({{{name}}}) ? true : false,
59
+    {{/isNullable}}
60
     {{^isContainer}}
61
         {{^isPrimitiveType}}
62
             {{#isEnum}}
63
open5gs_2.6.6.2.cb114.202310102026.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-header.mustache -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/lib/sbi/support/r17-20230301-openapitools-6.4.0/openapi-generator/templates/model-header.mustache Changed
21
 
1
@@ -48,6 +48,9 @@
2
 {{/vars}}
3
 typedef struct OpenAPI_{{classname}}_s {
4
 {{#vars}}
5
+    {{#isNullable}}
6
+    bool is_{{name}}_null;
7
+    {{/isNullable}}
8
     {{^isContainer}}
9
         {{^isPrimitiveType}}
10
             {{#isEnum}}
11
@@ -121,6 +124,9 @@
12
 
13
 OpenAPI_{{classname}}_t *OpenAPI_{{classname}}_create(
14
 {{#vars}}
15
+    {{#isNullable}}
16
+    bool is_{{name}}_null,
17
+    {{/isNullable}}
18
     {{^isContainer}}
19
         {{^isPrimitiveType}}
20
             {{#isEnum}}
21
open5gs_2.6.6.2.cb114.202310102026.tar.xz/misc/db/open5gs-dbctl -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/misc/db/open5gs-dbctl Changed
700
 
1
@@ -55,11 +55,11 @@
2
 
3
 if  "$1" = "add" ; then
4
     if  "$#" -eq 4 ; then
5
-        IMSI=$2 
6
+        IMSI=$2
7
         KI=$3
8
         OPC=$4
9
 
10
-        mongosh --eval "db.subscribers.insertOne( 
11
+        mongosh --eval "db.subscribers.insertOne(
12
             {
13
                 \"_id\": new ObjectId(),
14
                 \"schema_version\": NumberInt(1),
15
@@ -72,23 +72,23 @@
16
                 \"slice\":
17
                 {
18
                     \"sst\": NumberInt(1),
19
-                    \"default_indicator\": true, 
20
+                    \"default_indicator\": true,
21
                     \"session\": 
22
                     {
23
                         \"name\" : \"internet\",
24
                         \"type\" : NumberInt(3),
25
-                        \"qos\" : 
26
-                        { \"index\": NumberInt(9), 
27
-                            \"arp\": 
28
+                        \"qos\" :
29
+                        { \"index\": NumberInt(9),
30
+                            \"arp\":
31
                             {
32
                                 \"priority_level\" : NumberInt(8),
33
                                 \"pre_emption_capability\": NumberInt(1),
34
                                 \"pre_emption_vulnerability\": NumberInt(2)
35
                             }
36
                         },
37
-                        \"ambr\": 
38
+                        \"ambr\":
39
                         {
40
-                            \"downlink\": 
41
+                            \"downlink\":
42
                             {
43
                                 \"value\": NumberInt(1000000000),
44
                                 \"unit\": NumberInt(0)
45
@@ -103,15 +103,15 @@
46
                         \"_id\": new ObjectId(),
47
                     },
48
                     \"_id\": new ObjectId(),
49
-                }, 
50
-                \"security\": 
51
+                },
52
+                \"security\":
53
                 {
54
                     \"k\" : \"$KI\",
55
                     \"op\" : null,
56
                     \"opc\" : \"$OPC\",
57
                     \"amf\" : \"8000\",
58
                 },
59
-                \"ambr\" : 
60
+                \"ambr\" :
61
                 {
62
                     \"downlink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)},
63
                     \"uplink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)}
64
@@ -126,12 +126,12 @@
65
     fi
66
 
67
     if  "$#" -eq 5 ; then
68
-        IMSI=$2 
69
+        IMSI=$2
70
         IP=$3
71
         KI=$4
72
         OPC=$5
73
 
74
-        mongosh --eval "db.subscribers.insertOne( 
75
+        mongosh --eval "db.subscribers.insertOne(
76
             {
77
                 \"_id\": new ObjectId(),
78
                 \"schema_version\": NumberInt(1),
79
@@ -144,23 +144,23 @@
80
                 \"slice\":
81
                 {
82
                     \"sst\": NumberInt(1),
83
-                    \"default_indicator\": true, 
84
+                    \"default_indicator\": true,
85
                     \"session\": 
86
                     {
87
                         \"name\" : \"internet\",
88
                         \"type\" : NumberInt(3),
89
-                        \"qos\" : 
90
-                        { \"index\": NumberInt(9), 
91
-                            \"arp\": 
92
+                        \"qos\" :
93
+                        { \"index\": NumberInt(9),
94
+                            \"arp\":
95
                             {
96
                                 \"priority_level\" : NumberInt(8),
97
                                 \"pre_emption_capability\": NumberInt(1),
98
                                 \"pre_emption_vulnerability\": NumberInt(2)
99
                             }
100
                         },
101
-                        \"ambr\": 
102
+                        \"ambr\":
103
                         {
104
-                            \"downlink\": 
105
+                            \"downlink\":
106
                             {
107
                                 \"value\": NumberInt(1000000000),
108
                                 \"unit\": NumberInt(0)
109
@@ -171,23 +171,23 @@
110
                                 \"unit\": NumberInt(0)
111
                             }
112
                         },
113
-                        \"ue\": 
114
-                        { 
115
+                        \"ue\":
116
+                        {
117
                             \"addr\": \"$IP\"
118
                         },
119
                         \"pcc_rule\": ,
120
                         \"_id\": new ObjectId(),
121
                     },
122
                     \"_id\": new ObjectId(),
123
-                }, 
124
-                \"security\": 
125
+                },
126
+                \"security\":
127
                 {
128
                     \"k\" : \"$KI\",
129
                     \"op\" : null,
130
                     \"opc\" : \"$OPC\",
131
                     \"amf\" : \"8000\",
132
                 },
133
-                \"ambr\" : 
134
+                \"ambr\" :
135
                 {
136
                     \"downlink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)},
137
                     \"uplink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)}
138
@@ -207,11 +207,11 @@
139
 
140
 if  "$1" = "addT1" ; then
141
     if  "$#" -eq 4 ; then
142
-        IMSI=$2 
143
+        IMSI=$2
144
         KI=$3
145
         OPC=$4
146
 
147
-        mongosh --eval "db.subscribers.insertOne( 
148
+        mongosh --eval "db.subscribers.insertOne(
149
             {
150
                 \"_id\": new ObjectId(),
151
                 \"schema_version\": NumberInt(1),
152
@@ -224,23 +224,23 @@
153
                 \"slice\":
154
                 {
155
                     \"sst\": NumberInt(1),
156
-                    \"default_indicator\": true, 
157
+                    \"default_indicator\": true,
158
                     \"session\": 
159
                     {
160
                         \"name\" : \"internet\",
161
                         \"type\" : NumberInt(3),
162
-                        \"qos\" : 
163
-                        { \"index\": NumberInt(9), 
164
-                            \"arp\": 
165
+                        \"qos\" :
166
+                        { \"index\": NumberInt(9),
167
+                            \"arp\":
168
                             {
169
                                 \"priority_level\" : NumberInt(8),
170
                                 \"pre_emption_capability\": NumberInt(1),
171
                                 \"pre_emption_vulnerability\": NumberInt(2)
172
                             }
173
                         },
174
-                        \"ambr\": 
175
+                        \"ambr\":
176
                         {
177
-                            \"downlink\": 
178
+                            \"downlink\":
179
                             {
180
                                 \"value\": NumberInt(1000000000),
181
                                 \"unit\": NumberInt(0)
182
@@ -256,18 +256,18 @@
183
                     },{
184
                         \"name\" : \"internet1\",
185
                         \"type\" : NumberInt(3),
186
-                        \"qos\" : 
187
-                        { \"index\": NumberInt(9), 
188
-                            \"arp\": 
189
+                        \"qos\" :
190
+                        { \"index\": NumberInt(9),
191
+                            \"arp\":
192
                             {
193
                                 \"priority_level\" : NumberInt(8),
194
                                 \"pre_emption_capability\": NumberInt(1),
195
                                 \"pre_emption_vulnerability\": NumberInt(2)
196
                             }
197
                         },
198
-                        \"ambr\": 
199
+                        \"ambr\":
200
                         {
201
-                            \"downlink\": 
202
+                            \"downlink\":
203
                             {
204
                                 \"value\": NumberInt(1000000000),
205
                                 \"unit\": NumberInt(0)
206
@@ -283,18 +283,18 @@
207
                     },{
208
                         \"name\" : \"internet2\",
209
                         \"type\" : NumberInt(3),
210
-                        \"qos\" : 
211
-                        { \"index\": NumberInt(9), 
212
-                            \"arp\": 
213
+                        \"qos\" :
214
+                        { \"index\": NumberInt(9),
215
+                            \"arp\":
216
                             {
217
                                 \"priority_level\" : NumberInt(8),
218
                                 \"pre_emption_capability\": NumberInt(1),
219
                                 \"pre_emption_vulnerability\": NumberInt(2)
220
                             }
221
                         },
222
-                        \"ambr\": 
223
+                        \"ambr\":
224
                         {
225
-                            \"downlink\": 
226
+                            \"downlink\":
227
                             {
228
                                 \"value\": NumberInt(1000000000),
229
                                 \"unit\": NumberInt(0)
230
@@ -310,15 +310,15 @@
231
                     }
232
                     ,
233
                     \"_id\": new ObjectId(),
234
-                }, 
235
-                \"security\": 
236
+                },
237
+                \"security\":
238
                 {
239
                     \"k\" : \"$KI\",
240
                     \"op\" : null,
241
                     \"opc\" : \"$OPC\",
242
                     \"amf\" : \"8000\",
243
                 },
244
-                \"ambr\" : 
245
+                \"ambr\" :
246
                 {
247
                     \"downlink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)},
248
                     \"uplink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)}
249
@@ -333,12 +333,12 @@
250
     fi
251
 
252
     if  "$#" -eq 5 ; then
253
-        IMSI=$2 
254
+        IMSI=$2
255
         IP=$3
256
         KI=$4
257
         OPC=$5
258
 
259
-        mongosh --eval "db.subscribers.insertOne( 
260
+        mongosh --eval "db.subscribers.insertOne(
261
             {
262
                 \"_id\": new ObjectId(),
263
                 \"schema_version\": NumberInt(1),
264
@@ -351,23 +351,23 @@
265
                 \"slice\":
266
                 {
267
                     \"sst\": NumberInt(1),
268
-                    \"default_indicator\": true, 
269
+                    \"default_indicator\": true,
270
                     \"session\": 
271
                     {
272
                         \"name\" : \"internet\",
273
                         \"type\" : NumberInt(3),
274
-                        \"qos\" : 
275
-                        { \"index\": NumberInt(9), 
276
-                            \"arp\": 
277
+                        \"qos\" :
278
+                        { \"index\": NumberInt(9),
279
+                            \"arp\":
280
                             {
281
                                 \"priority_level\" : NumberInt(8),
282
                                 \"pre_emption_capability\": NumberInt(1),
283
                                 \"pre_emption_vulnerability\": NumberInt(2)
284
                             }
285
                         },
286
-                        \"ambr\": 
287
+                        \"ambr\":
288
                         {
289
-                            \"downlink\": 
290
+                            \"downlink\":
291
                             {
292
                                 \"value\": NumberInt(1000000000),
293
                                 \"unit\": NumberInt(0)
294
@@ -378,8 +378,8 @@
295
                                 \"unit\": NumberInt(0)
296
                             }
297
                         },
298
-                        \"ue\": 
299
-                        { 
300
+                        \"ue\":
301
+                        {
302
                             \"addr\": \"$IP\"
303
                         },
304
                         \"pcc_rule\": ,
305
@@ -387,18 +387,18 @@
306
                     },{
307
                         \"name\" : \"internet1\",
308
                         \"type\" : NumberInt(3),
309
-                        \"qos\" : 
310
-                        { \"index\": NumberInt(9), 
311
-                            \"arp\": 
312
+                        \"qos\" :
313
+                        { \"index\": NumberInt(9),
314
+                            \"arp\":
315
                             {
316
                                 \"priority_level\" : NumberInt(8),
317
                                 \"pre_emption_capability\": NumberInt(1),
318
                                 \"pre_emption_vulnerability\": NumberInt(2)
319
                             }
320
                         },
321
-                        \"ambr\": 
322
+                        \"ambr\":
323
                         {
324
-                            \"downlink\": 
325
+                            \"downlink\":
326
                             {
327
                                 \"value\": NumberInt(1000000000),
328
                                 \"unit\": NumberInt(0)
329
@@ -409,8 +409,8 @@
330
                                 \"unit\": NumberInt(0)
331
                             }
332
                         },
333
-                        \"ue\": 
334
-                        { 
335
+                        \"ue\":
336
+                        {
337
                             \"addr\": \"$IP\"
338
                         },
339
                         \"pcc_rule\": ,
340
@@ -418,18 +418,18 @@
341
                     },{
342
                         \"name\" : \"internet2\",
343
                         \"type\" : NumberInt(3),
344
-                        \"qos\" : 
345
-                        { \"index\": NumberInt(9), 
346
-                            \"arp\": 
347
+                        \"qos\" :
348
+                        { \"index\": NumberInt(9),
349
+                            \"arp\":
350
                             {
351
                                 \"priority_level\" : NumberInt(8),
352
                                 \"pre_emption_capability\": NumberInt(1),
353
                                 \"pre_emption_vulnerability\": NumberInt(2)
354
                             }
355
                         },
356
-                        \"ambr\": 
357
+                        \"ambr\":
358
                         {
359
-                            \"downlink\": 
360
+                            \"downlink\":
361
                             {
362
                                 \"value\": NumberInt(1000000000),
363
                                 \"unit\": NumberInt(0)
364
@@ -440,8 +440,8 @@
365
                                 \"unit\": NumberInt(0)
366
                             }
367
                         },
368
-                        \"ue\": 
369
-                        { 
370
+                        \"ue\":
371
+                        {
372
                             \"addr\": \"$IP\"
373
                         },
374
                         \"pcc_rule\": ,
375
@@ -449,15 +449,15 @@
376
                     }
377
                     ,
378
                     \"_id\": new ObjectId(),
379
-                }, 
380
-                \"security\": 
381
+                },
382
+                \"security\":
383
                 {
384
                     \"k\" : \"$KI\",
385
                     \"op\" : null,
386
                     \"opc\" : \"$OPC\",
387
                     \"amf\" : \"8000\",
388
                 },
389
-                \"ambr\" : 
390
+                \"ambr\" :
391
                 {
392
                     \"downlink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)},
393
                     \"uplink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)}
394
@@ -481,7 +481,7 @@
395
         exit 1
396
     fi
397
 
398
-    IMSI=$2 
399
+    IMSI=$2
400
     mongosh --eval "db.subscribers.deleteOne({\"imsi\": \"$IMSI\"});" $DB_URI
401
     exit $?
402
 fi
403
@@ -501,7 +501,7 @@
404
         echo "open5gs-dbctl: incorrect number of args, format is \"open5gs-dbctl static_ip imsi ip\""
405
         exit 1
406
     fi
407
-    IMSI=$2 
408
+    IMSI=$2
409
     IP=$3
410
 
411
     mongosh --eval "db.subscribers.updateOne({\"imsi\": \"$IMSI\"},{\$set: { \"slice.0.session.0.ue.addr\": \"$IP\" }});" $DB_URI
412
@@ -513,7 +513,7 @@
413
         echo "open5gs-dbctl: incorrect number of args, format is \"open5gs-dbctl static_ip6 imsi ip\""
414
         exit 1
415
     fi
416
-    IMSI=$2 
417
+    IMSI=$2
418
     IP=$3
419
 
420
     mongosh --eval "db.subscribers.updateOne({\"imsi\": \"$IMSI\"},{\$set: { \"slice.0.session.0.ue.addr6\": \"$IP\" }});" $DB_URI
421
@@ -525,7 +525,7 @@
422
         echo "open5gs-dbctl: incorrect number of args, format is \"open5gs-dbctl type imsi type\""
423
         exit 1
424
     fi
425
-    IMSI=$2 
426
+    IMSI=$2
427
     TYPE=$3
428
 
429
     mongosh --eval "db.subscribers.updateOne({\"imsi\": \"$IMSI\"},{\$set: { \"slice.0.session.0.type\": NumberInt($TYPE) }});" $DB_URI
430
@@ -534,12 +534,12 @@
431
 
432
 if  "$1" = "add_ue_with_apn" ; then
433
     if  "$#" -eq 5 ; then
434
-        IMSI=$2 
435
+        IMSI=$2
436
         KI=$3
437
         OPC=$4
438
         APN=$5
439
 
440
-        mongosh --eval "db.subscribers.insertOne( 
441
+        mongosh --eval "db.subscribers.insertOne(
442
             {
443
                 \"_id\": new ObjectId(),
444
                 \"schema_version\": NumberInt(1),
445
@@ -552,23 +552,23 @@
446
                 \"slice\":
447
                 {
448
                     \"sst\": NumberInt(1),
449
-                    \"default_indicator\": true, 
450
+                    \"default_indicator\": true,
451
                     \"session\": 
452
                     {
453
                         \"name\" : \"$APN\",
454
                         \"type\" : NumberInt(3),
455
-                        \"qos\" : 
456
-                        { \"index\": NumberInt(9), 
457
-                            \"arp\": 
458
+                        \"qos\" :
459
+                        { \"index\": NumberInt(9),
460
+                            \"arp\":
461
                             {
462
                                 \"priority_level\" : NumberInt(8),
463
                                 \"pre_emption_capability\": NumberInt(1),
464
                                 \"pre_emption_vulnerability\": NumberInt(2)
465
                             }
466
                         },
467
-                        \"ambr\": 
468
+                        \"ambr\":
469
                         {
470
-                            \"downlink\": 
471
+                            \"downlink\":
472
                             {
473
                                 \"value\": NumberInt(1000000000),
474
                                 \"unit\": NumberInt(0)
475
@@ -583,15 +583,15 @@
476
                         \"_id\": new ObjectId(),
477
                     },
478
                     \"_id\": new ObjectId(),
479
-                }, 
480
-                \"security\": 
481
+                },
482
+                \"security\":
483
                 {
484
                     \"k\" : \"$KI\",
485
                     \"op\" : null,
486
                     \"opc\" : \"$OPC\",
487
                     \"amf\" : \"8000\",
488
                 },
489
-                \"ambr\" : 
490
+                \"ambr\" :
491
                 {
492
                     \"downlink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)},
493
                     \"uplink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)}
494
@@ -611,14 +611,14 @@
495
 
496
 if  "$1" = "add_ue_with_slice" ; then
497
     if  "$#" -eq 7 ; then
498
-        IMSI=$2 
499
+        IMSI=$2
500
         KI=$3
501
         OPC=$4
502
         APN=$5
503
         SST=$6
504
         SD=$7
505
 
506
-        mongosh --eval "db.subscribers.insertOne( 
507
+        mongosh --eval "db.subscribers.insertOne(
508
             {
509
                 \"_id\": new ObjectId(),
510
                 \"schema_version\": NumberInt(1),
511
@@ -632,23 +632,23 @@
512
                 {
513
                     \"sst\": NumberInt($SST),
514
                     \"sd\": \"$SD\",
515
-                    \"default_indicator\": true, 
516
+                    \"default_indicator\": true,
517
                     \"session\": 
518
                     {
519
                         \"name\" : \"$APN\",
520
                         \"type\" : NumberInt(3),
521
-                        \"qos\" : 
522
-                        { \"index\": NumberInt(9), 
523
-                            \"arp\": 
524
+                        \"qos\" :
525
+                        { \"index\": NumberInt(9),
526
+                            \"arp\":
527
                             {
528
                                 \"priority_level\" : NumberInt(8),
529
                                 \"pre_emption_capability\": NumberInt(1),
530
                                 \"pre_emption_vulnerability\": NumberInt(2)
531
                             }
532
                         },
533
-                        \"ambr\": 
534
+                        \"ambr\":
535
                         {
536
-                            \"downlink\": 
537
+                            \"downlink\":
538
                             {
539
                                 \"value\": NumberInt(1000000000),
540
                                 \"unit\": NumberInt(0)
541
@@ -663,15 +663,15 @@
542
                         \"_id\": new ObjectId(),
543
                     },
544
                     \"_id\": new ObjectId(),
545
-                }, 
546
-                \"security\": 
547
+                },
548
+                \"security\":
549
                 {
550
                     \"k\" : \"$KI\",
551
                     \"op\" : null,
552
                     \"opc\" : \"$OPC\",
553
                     \"amf\" : \"8000\",
554
                 },
555
-                \"ambr\" : 
556
+                \"ambr\" :
557
                 {
558
                     \"downlink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)},
559
                     \"uplink\" : { \"value\": NumberInt(1000000000), \"unit\": NumberInt(0)}
560
@@ -691,34 +691,34 @@
561
 
562
 if  "$1" = "update_apn" ; then
563
     if  "$#" -eq 4 ; then
564
-        IMSI=$2 
565
+        IMSI=$2
566
         APN=$3
567
         SLICE_NUM=$4
568
-        
569
-        mongosh --eval "db.subscribers.updateOne({ \"imsi\": \"$IMSI\"}, 
570
+
571
+        mongosh --eval "db.subscribers.updateOne({ \"imsi\": \"$IMSI\"},
572
             {\$push: { \"slice.$SLICE_NUM.session\":
573
                            {
574
-                            \"name\" : \"$APN\", 
575
-                            \"type\" : NumberInt(3), 
576
-                            \"_id\" : new ObjectId(), 
577
+                            \"name\" : \"$APN\",
578
+                            \"type\" : NumberInt(3),
579
+                            \"_id\" : new ObjectId(),
580
                             \"pcc_rule\" : ,
581
-                            \"ambr\" : 
582
-                            { 
583
-                                \"uplink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) }, 
584
-                                \"downlink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) }, 
585
-                            }, 
586
-                            \"qos\" : 
587
-                            { 
588
-                                \"index\" : NumberInt(9), 
589
-                                \"arp\" : 
590
-                                { 
591
-                                    \"priority_level\" : NumberInt(8), 
592
-                                    \"pre_emption_capability\" : NumberInt(1), 
593
-                                    \"pre_emption_vulnerability\" : NumberInt(1), 
594
-                                }, 
595
-                            }, 
596
+                            \"ambr\" :
597
+                            {
598
+                                \"uplink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) },
599
+                                \"downlink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) },
600
+                            },
601
+                            \"qos\" :
602
+                            {
603
+                                \"index\" : NumberInt(9),
604
+                                \"arp\" :
605
+                                {
606
+                                    \"priority_level\" : NumberInt(8),
607
+                                    \"pre_emption_capability\" : NumberInt(1),
608
+                                    \"pre_emption_vulnerability\" : NumberInt(1),
609
+                                },
610
+                            },
611
                            }
612
-                    }   
613
+                    }
614
             });" $DB_URI
615
         exit $?
616
     fi
617
@@ -729,43 +729,43 @@
618
 
619
 if  "$1" = "update_slice" ; then
620
     if  "$#" -eq 5 ; then
621
-        IMSI=$2 
622
+        IMSI=$2
623
         APN=$3
624
         SST=$4
625
         SD=$5
626
-        
627
-        mongosh --eval "db.subscribers.updateOne({ \"imsi\": \"$IMSI\"}, 
628
+
629
+        mongosh --eval "db.subscribers.updateOne({ \"imsi\": \"$IMSI\"},
630
             {\$push: { \"slice\":
631
-                           
632
-                            { 
633
-                            \"sst\" : NumberInt($SST), 
634
-                            \"sd\" : \"$SD\", 
635
-                            \"default_indicator\" : false, 
636
-                            \"_id\" : new ObjectId(), 
637
-                            \"session\" : 
638
-                            { 
639
-                                \"name\" : \"$APN\", 
640
-                                \"type\" : NumberInt(3), 
641
-                                \"_id\" : new ObjectId(), 
642
+
643
+                            {
644
+                            \"sst\" : NumberInt($SST),
645
+                            \"sd\" : \"$SD\",
646
+                            \"default_indicator\" : false,
647
+                            \"_id\" : new ObjectId(),
648
+                            \"session\" :
649
+                            {
650
+                                \"name\" : \"$APN\",
651
+                                \"type\" : NumberInt(3),
652
+                                \"_id\" : new ObjectId(),
653
                                 \"pcc_rule\" : ,
654
-                                \"ambr\" : 
655
-                                { 
656
-                                    \"uplink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) }, 
657
-                                    \"downlink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) }, 
658
-                                }, 
659
-                                \"qos\" : 
660
-                                { 
661
-                                    \"index\" : NumberInt(9), 
662
-                                    \"arp\" : 
663
-                                    { 
664
-                                        \"priority_level\" : NumberInt(8), 
665
-                                        \"pre_emption_capability\" : NumberInt(1), 
666
-                                        \"pre_emption_vulnerability\" : NumberInt(1), 
667
-                                    }, 
668
-                                }, 
669
+                                \"ambr\" :
670
+                                {
671
+                                    \"uplink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) },
672
+                                    \"downlink\" : { \"value\": NumberInt(1), \"unit\" : NumberInt(3) },
673
+                                },
674
+                                \"qos\" :
675
+                                {
676
+                                    \"index\" : NumberInt(9),
677
+                                    \"arp\" :
678
+                                    {
679
+                                        \"priority_level\" : NumberInt(8),
680
+                                        \"pre_emption_capability\" : NumberInt(1),
681
+                                        \"pre_emption_vulnerability\" : NumberInt(1),
682
+                                    },
683
+                                },
684
                              }
685
                             }
686
-                    }   
687
+                    }
688
             });" $DB_URI
689
         exit $?
690
     fi
691
@@ -794,7 +794,7 @@
692
         UL_VALUE=$5
693
         UL_UNIT=$6
694
         mongosh --eval "db.subscribers.updateOne({\"imsi\": \"$IMSI\"},
695
-            {\$set: { 
696
+            {\$set: {
697
                 \"ambr\" : {
698
                     \"downlink\" : {
699
                         \"value\" : NumberInt($DL_VALUE),
700
open5gs_2.6.6.2.cb114.202310102026.tar.xz/src/mme/sgsap-build.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/src/mme/sgsap-build.c Changed
32
 
1
@@ -199,6 +199,9 @@
2
     ogs_tlv_t *root = NULL;
3
     ogs_pkbuf_t *pkbuf = NULL;
4
 
5
+    ogs_gtp2_uli_tai_t tai;
6
+    ogs_gtp2_uli_e_cgi_t e_cgi;
7
+
8
     ogs_assert(mme_ue);
9
     csmap = mme_ue->csmap;
10
     ogs_assert(csmap);
11
@@ -208,6 +211,20 @@
12
     root = ogs_tlv_add(NULL, OGS_TLV_MODE_T1_L1, SGSAP_IE_IMSI_TYPE,
13
             SGSAP_IE_IMSI_LEN, 0, &mme_ue->nas_mobile_identity_imsi);
14
 
15
+    memset(&tai, 0, sizeof(tai));
16
+    ogs_nas_from_plmn_id(&tai.nas_plmn_id, &mme_ue->tai.plmn_id);
17
+    tai.tac = htobe16(mme_ue->tai.tac);
18
+
19
+    ogs_tlv_add(root, OGS_TLV_MODE_T1_L1,
20
+            SGSAP_IE_TAI_TYPE, SGSAP_IE_TAI_LEN, 0, &tai);
21
+
22
+    memset(&e_cgi, 0, sizeof(e_cgi));
23
+    ogs_nas_from_plmn_id(&e_cgi.nas_plmn_id, &mme_ue->e_cgi.plmn_id);
24
+    e_cgi.cell_id = htobe32(mme_ue->e_cgi.cell_id);
25
+
26
+    ogs_tlv_add(root, OGS_TLV_MODE_T1_L1,
27
+            SGSAP_IE_E_CGI_TYPE, SGSAP_IE_E_CGI_LEN, 0, &e_cgi);
28
+
29
     pkbuf = ogs_pkbuf_alloc(NULL, OGS_MAX_SDU_LEN);
30
     if (!pkbuf) {
31
         ogs_error("ogs_pkbuf_alloc() failed");
32
open5gs_2.6.6.2.cb114.202310102026.tar.xz/src/mme/sgsap-types.h -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/src/mme/sgsap-types.h Changed
13
 
1
@@ -69,9 +69,9 @@
2
 #define SGSAP_IE_SERVICE_INDICATOR_TYPE         32
3
 #define SGSAP_IE_SERVICE_INDICATOR_LEN          1
4
 #define SGSAP_IE_TAI_TYPE                       35
5
-#define SGSAP_IE_TAI_LEN                        7
6
+#define SGSAP_IE_TAI_LEN                        5
7
 #define SGSAP_IE_E_CGI_TYPE                     36
8
-#define SGSAP_IE_E_CGI_LEN                      9
9
+#define SGSAP_IE_E_CGI_LEN                      7
10
 #define SGSAP_IE_UE_EMM_MODE_TYPE               37
11
 #define SGSAP_IE_UE_EMM_MODE_LEN                1
12
 
13
open5gs_2.6.6.2.cb114.202310102026.tar.xz/src/smf/s5c-handler.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/src/smf/s5c-handler.c Changed
30
 
1
@@ -250,7 +250,27 @@
2
     rv = ogs_gtp2_paa_to_ip(paa, &sess->session.ue_ip);
3
     ogs_assert(rv == OGS_OK);
4
 
5
-    ogs_assert(OGS_PFCP_CAUSE_REQUEST_ACCEPTED == smf_sess_set_ue_ip(sess));
6
+    /* Set UE IP Address */
7
+    rv = smf_sess_set_ue_ip(sess);
8
+    if (rv != OGS_PFCP_CAUSE_REQUEST_ACCEPTED) {
9
+        /* only two possibilities are:
10
+         * OGS_PFCP_CAUSE_ALL_DYNAMIC_ADDRESS_ARE_OCCUPIED
11
+         * OGS_PFCP_CAUSE_NO_RESOURCES_AVAILABLE
12
+         */
13
+        ogs_error("Failed to set UE IP Address");
14
+        switch(rv) {
15
+        case OGS_PFCP_CAUSE_ALL_DYNAMIC_ADDRESS_ARE_OCCUPIED:
16
+            cause_value = OGS_GTP2_CAUSE_ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED;
17
+            break;
18
+        case OGS_PFCP_CAUSE_NO_RESOURCES_AVAILABLE:
19
+            cause_value = OGS_GTP2_CAUSE_NO_RESOURCES_AVAILABLE;
20
+            break;
21
+        default:
22
+            cause_value = OGS_GTP2_CAUSE_REQUEST_REJECTED_REASON_NOT_SPECIFIED;
23
+            break;
24
+        }
25
+        return cause_value;
26
+    }
27
 
28
     ogs_info("UE IMSI%s APN%s IPv4%s IPv6%s",
29
         smf_ue->imsi_bcd,
30
open5gs_2.6.6.2.cb114.202310102026.tar.xz/tests/af/npcf-build.c -> open5gs_2.6.6.7.77a62.202310112026.tar.xz/tests/af/npcf-build.c Changed
10
 
1
@@ -367,7 +367,7 @@
2
 
3
     OpenAPI_list_t *SubComponentList = NULL;
4
     OpenAPI_map_t *SubComponentMap = NULL;
5
-    OpenAPI_media_sub_component_t *SubComponent = NULL;
6
+    OpenAPI_media_sub_component_rm_t *SubComponent = NULL;
7
 
8
     OpenAPI_list_t *fDescList = NULL;
9
     OpenAPI_list_t *codecList = NULL;
10