mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30: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
|
|
@ -30,6 +30,7 @@ typedef struct OpenAPI_steering_mode_s {
|
|||
bool is__3g_load;
|
||||
int _3g_load;
|
||||
OpenAPI_access_type_e prio_acc;
|
||||
bool is_thres_value_null;
|
||||
struct OpenAPI_threshold_value_s *thres_value;
|
||||
OpenAPI_steer_mode_indicator_e steer_mode_ind;
|
||||
} OpenAPI_steering_mode_t;
|
||||
|
|
@ -41,6 +42,7 @@ OpenAPI_steering_mode_t *OpenAPI_steering_mode_create(
|
|||
bool is__3g_load,
|
||||
int _3g_load,
|
||||
OpenAPI_access_type_e prio_acc,
|
||||
bool is_thres_value_null,
|
||||
OpenAPI_threshold_value_t *thres_value,
|
||||
OpenAPI_steer_mode_indicator_e steer_mode_ind
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue