[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

@ -48,8 +48,10 @@ typedef struct OpenAPI_media_component_s {
OpenAPI_flow_status_e f_status;
char *mar_bw_dl;
char *mar_bw_ul;
bool is_max_packet_loss_rate_dl_null;
bool is_max_packet_loss_rate_dl;
int max_packet_loss_rate_dl;
bool is_max_packet_loss_rate_ul_null;
bool is_max_packet_loss_rate_ul;
int max_packet_loss_rate_ul;
char *max_supp_bw_dl;
@ -72,7 +74,9 @@ typedef struct OpenAPI_media_component_s {
bool is_sharing_key_ul;
int sharing_key_ul;
struct OpenAPI_tsn_qos_container_s *tsn_qos;
bool is_tscai_input_dl_null;
struct OpenAPI_tscai_input_container_s *tscai_input_dl;
bool is_tscai_input_ul_null;
struct OpenAPI_tscai_input_container_s *tscai_input_ul;
bool is_tscai_time_dom;
int tscai_time_dom;
@ -97,8 +101,10 @@ OpenAPI_media_component_t *OpenAPI_media_component_create(
OpenAPI_flow_status_e f_status,
char *mar_bw_dl,
char *mar_bw_ul,
bool is_max_packet_loss_rate_dl_null,
bool is_max_packet_loss_rate_dl,
int max_packet_loss_rate_dl,
bool is_max_packet_loss_rate_ul_null,
bool is_max_packet_loss_rate_ul,
int max_packet_loss_rate_ul,
char *max_supp_bw_dl,
@ -121,7 +127,9 @@ OpenAPI_media_component_t *OpenAPI_media_component_create(
bool is_sharing_key_ul,
int sharing_key_ul,
OpenAPI_tsn_qos_container_t *tsn_qos,
bool is_tscai_input_dl_null,
OpenAPI_tscai_input_container_t *tscai_input_dl,
bool is_tscai_input_ul_null,
OpenAPI_tscai_input_container_t *tscai_input_ul,
bool is_tscai_time_dom,
int tscai_time_dom