mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +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
|
|
@ -91,6 +91,7 @@ typedef struct OpenAPI_sm_context_create_data_s {
|
|||
char *supported_features;
|
||||
OpenAPI_dnn_selection_mode_e sel_mode;
|
||||
OpenAPI_list_t *backup_amf_info;
|
||||
bool is_trace_data_null;
|
||||
struct OpenAPI_trace_data_s *trace_data;
|
||||
char *udm_group_id;
|
||||
char *routing_indicator;
|
||||
|
|
@ -154,6 +155,7 @@ typedef struct OpenAPI_sm_context_create_data_s {
|
|||
char *old_pdu_session_ref;
|
||||
bool is_sm_policy_notify_ind;
|
||||
int sm_policy_notify_ind;
|
||||
bool is_pcf_ue_callback_info_null;
|
||||
struct OpenAPI_pcf_ue_callback_info_s *pcf_ue_callback_info;
|
||||
OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat;
|
||||
bool is_upip_supported;
|
||||
|
|
@ -214,6 +216,7 @@ OpenAPI_sm_context_create_data_t *OpenAPI_sm_context_create_data_create(
|
|||
char *supported_features,
|
||||
OpenAPI_dnn_selection_mode_e sel_mode,
|
||||
OpenAPI_list_t *backup_amf_info,
|
||||
bool is_trace_data_null,
|
||||
OpenAPI_trace_data_t *trace_data,
|
||||
char *udm_group_id,
|
||||
char *routing_indicator,
|
||||
|
|
@ -277,6 +280,7 @@ OpenAPI_sm_context_create_data_t *OpenAPI_sm_context_create_data_create(
|
|||
char *old_pdu_session_ref,
|
||||
bool is_sm_policy_notify_ind,
|
||||
int sm_policy_notify_ind,
|
||||
bool is_pcf_ue_callback_info_null,
|
||||
OpenAPI_pcf_ue_callback_info_t *pcf_ue_callback_info,
|
||||
OpenAPI_satellite_backhaul_category_e satellite_backhaul_cat,
|
||||
bool is_upip_supported,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue