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
|
|
@ -50,13 +50,16 @@ typedef struct OpenAPI_access_and_mobility_subscription_data_s {
|
|||
OpenAPI_list_t *internal_group_ids;
|
||||
OpenAPI_list_t* shared_vn_group_data_ids;
|
||||
struct OpenAPI_ambr_rm_s *subscribed_ue_ambr;
|
||||
bool is_nssai_null;
|
||||
struct OpenAPI_nssai_s *nssai;
|
||||
OpenAPI_set_t *rat_restrictions;
|
||||
OpenAPI_list_t *forbidden_areas;
|
||||
struct OpenAPI_service_area_restriction_s *service_area_restriction;
|
||||
OpenAPI_list_t *core_network_type_restrictions;
|
||||
bool is_rfsp_index_null;
|
||||
bool is_rfsp_index;
|
||||
int rfsp_index;
|
||||
bool is_subs_reg_timer_null;
|
||||
bool is_subs_reg_timer;
|
||||
int subs_reg_timer;
|
||||
bool is_ue_usage_type;
|
||||
|
|
@ -65,6 +68,7 @@ typedef struct OpenAPI_access_and_mobility_subscription_data_s {
|
|||
int mps_priority;
|
||||
bool is_mcs_priority;
|
||||
int mcs_priority;
|
||||
bool is_active_time_null;
|
||||
bool is_active_time;
|
||||
int active_time;
|
||||
struct OpenAPI_sor_info_s *sor_info;
|
||||
|
|
@ -84,6 +88,7 @@ typedef struct OpenAPI_access_and_mobility_subscription_data_s {
|
|||
int service_gap_time;
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent;
|
||||
struct OpenAPI_mdt_configuration_s *mdt_configuration;
|
||||
bool is_trace_data_null;
|
||||
struct OpenAPI_trace_data_s *trace_data;
|
||||
struct OpenAPI_cag_data_s *cag_data;
|
||||
char *stn_sr;
|
||||
|
|
@ -120,13 +125,16 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
OpenAPI_list_t *internal_group_ids,
|
||||
OpenAPI_list_t* shared_vn_group_data_ids,
|
||||
OpenAPI_ambr_rm_t *subscribed_ue_ambr,
|
||||
bool is_nssai_null,
|
||||
OpenAPI_nssai_t *nssai,
|
||||
OpenAPI_set_t *rat_restrictions,
|
||||
OpenAPI_list_t *forbidden_areas,
|
||||
OpenAPI_service_area_restriction_t *service_area_restriction,
|
||||
OpenAPI_list_t *core_network_type_restrictions,
|
||||
bool is_rfsp_index_null,
|
||||
bool is_rfsp_index,
|
||||
int rfsp_index,
|
||||
bool is_subs_reg_timer_null,
|
||||
bool is_subs_reg_timer,
|
||||
int subs_reg_timer,
|
||||
bool is_ue_usage_type,
|
||||
|
|
@ -135,6 +143,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
int mps_priority,
|
||||
bool is_mcs_priority,
|
||||
int mcs_priority,
|
||||
bool is_active_time_null,
|
||||
bool is_active_time,
|
||||
int active_time,
|
||||
OpenAPI_sor_info_t *sor_info,
|
||||
|
|
@ -154,6 +163,7 @@ OpenAPI_access_and_mobility_subscription_data_t *OpenAPI_access_and_mobility_sub
|
|||
int service_gap_time,
|
||||
OpenAPI_mdt_user_consent_e mdt_user_consent,
|
||||
OpenAPI_mdt_configuration_t *mdt_configuration,
|
||||
bool is_trace_data_null,
|
||||
OpenAPI_trace_data_t *trace_data,
|
||||
OpenAPI_cag_data_t *cag_data,
|
||||
char *stn_sr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue