[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:
Bostjan Meglic 2023-10-05 13:39:14 +02:00 committed by Sukchan Lee
parent 7ea37ef618
commit 50464d174e
154 changed files with 2773 additions and 0 deletions

View file

@ -21,12 +21,16 @@ extern "C" {
typedef struct OpenAPI_downlink_data_notification_control_rm_s OpenAPI_downlink_data_notification_control_rm_t;
typedef struct OpenAPI_downlink_data_notification_control_rm_s {
bool is_notif_ctrl_inds_null;
OpenAPI_list_t *notif_ctrl_inds;
bool is_types_of_notif_null;
OpenAPI_list_t *types_of_notif;
} OpenAPI_downlink_data_notification_control_rm_t;
OpenAPI_downlink_data_notification_control_rm_t *OpenAPI_downlink_data_notification_control_rm_create(
bool is_notif_ctrl_inds_null,
OpenAPI_list_t *notif_ctrl_inds,
bool is_types_of_notif_null,
OpenAPI_list_t *types_of_notif
);
void OpenAPI_downlink_data_notification_control_rm_free(OpenAPI_downlink_data_notification_control_rm_t *downlink_data_notification_control_rm);