mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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
|
|
@ -26,26 +26,38 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_pp_data_s OpenAPI_pp_data_t;
|
||||
typedef struct OpenAPI_pp_data_s {
|
||||
bool is_communication_characteristics_null;
|
||||
struct OpenAPI_communication_characteristics_s *communication_characteristics;
|
||||
char *supported_features;
|
||||
bool is_expected_ue_behaviour_parameters_null;
|
||||
struct OpenAPI_expected_ue_behaviour_s *expected_ue_behaviour_parameters;
|
||||
bool is_ec_restriction_null;
|
||||
struct OpenAPI_ec_restriction_s *ec_restriction;
|
||||
struct OpenAPI_acs_info_rm_s *acs_info;
|
||||
bool is_stn_sr_null;
|
||||
char *stn_sr;
|
||||
bool is_lcs_privacy_null;
|
||||
struct OpenAPI_lcs_privacy_s *lcs_privacy;
|
||||
struct OpenAPI_sor_info_s *sor_info;
|
||||
bool is__5mbs_authorization_info_null;
|
||||
struct OpenAPI_model_5_mbs_authorization_info_s *_5mbs_authorization_info;
|
||||
} OpenAPI_pp_data_t;
|
||||
|
||||
OpenAPI_pp_data_t *OpenAPI_pp_data_create(
|
||||
bool is_communication_characteristics_null,
|
||||
OpenAPI_communication_characteristics_t *communication_characteristics,
|
||||
char *supported_features,
|
||||
bool is_expected_ue_behaviour_parameters_null,
|
||||
OpenAPI_expected_ue_behaviour_t *expected_ue_behaviour_parameters,
|
||||
bool is_ec_restriction_null,
|
||||
OpenAPI_ec_restriction_t *ec_restriction,
|
||||
OpenAPI_acs_info_rm_t *acs_info,
|
||||
bool is_stn_sr_null,
|
||||
char *stn_sr,
|
||||
bool is_lcs_privacy_null,
|
||||
OpenAPI_lcs_privacy_t *lcs_privacy,
|
||||
OpenAPI_sor_info_t *sor_info,
|
||||
bool is__5mbs_authorization_info_null,
|
||||
OpenAPI_model_5_mbs_authorization_info_t *_5mbs_authorization_info
|
||||
);
|
||||
void OpenAPI_pp_data_free(OpenAPI_pp_data_t *pp_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue