mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +00:00
[openapi] Add support for nullable fields
Depending on the OpenAPI yaml files, fields can be marked as "nullable". Which means that the field can be either present, not present, or null. This feature is important for example in SmContextUpdateData structure, where many fields are described similar as the following: This IE shall be included for the modification .... For deleting the field, it shall contain the Null value.
This commit is contained in:
parent
7ea37ef618
commit
50464d174e
154 changed files with 2773 additions and 0 deletions
|
|
@ -24,17 +24,24 @@ typedef struct OpenAPI_qos_monitoring_data_s {
|
|||
char *qm_id;
|
||||
OpenAPI_list_t *req_qos_mon_params;
|
||||
OpenAPI_list_t *rep_freqs;
|
||||
bool is_rep_thresh_dl_null;
|
||||
bool is_rep_thresh_dl;
|
||||
int rep_thresh_dl;
|
||||
bool is_rep_thresh_ul_null;
|
||||
bool is_rep_thresh_ul;
|
||||
int rep_thresh_ul;
|
||||
bool is_rep_thresh_rp_null;
|
||||
bool is_rep_thresh_rp;
|
||||
int rep_thresh_rp;
|
||||
bool is_wait_time_null;
|
||||
bool is_wait_time;
|
||||
int wait_time;
|
||||
bool is_rep_period_null;
|
||||
bool is_rep_period;
|
||||
int rep_period;
|
||||
bool is_notify_uri_null;
|
||||
char *notify_uri;
|
||||
bool is_notify_corre_id_null;
|
||||
char *notify_corre_id;
|
||||
bool is_direct_notif_ind;
|
||||
int direct_notif_ind;
|
||||
|
|
@ -44,17 +51,24 @@ OpenAPI_qos_monitoring_data_t *OpenAPI_qos_monitoring_data_create(
|
|||
char *qm_id,
|
||||
OpenAPI_list_t *req_qos_mon_params,
|
||||
OpenAPI_list_t *rep_freqs,
|
||||
bool is_rep_thresh_dl_null,
|
||||
bool is_rep_thresh_dl,
|
||||
int rep_thresh_dl,
|
||||
bool is_rep_thresh_ul_null,
|
||||
bool is_rep_thresh_ul,
|
||||
int rep_thresh_ul,
|
||||
bool is_rep_thresh_rp_null,
|
||||
bool is_rep_thresh_rp,
|
||||
int rep_thresh_rp,
|
||||
bool is_wait_time_null,
|
||||
bool is_wait_time,
|
||||
int wait_time,
|
||||
bool is_rep_period_null,
|
||||
bool is_rep_period,
|
||||
int rep_period,
|
||||
bool is_notify_uri_null,
|
||||
char *notify_uri,
|
||||
bool is_notify_corre_id_null,
|
||||
char *notify_corre_id,
|
||||
bool is_direct_notif_ind,
|
||||
int direct_notif_ind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue