[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

@ -31,9 +31,11 @@ extern "C" {
typedef struct OpenAPI_app_session_context_update_data_s OpenAPI_app_session_context_update_data_t;
typedef struct OpenAPI_app_session_context_update_data_s {
char *af_app_id;
bool is_af_rout_req_null;
struct OpenAPI_af_routing_requirement_rm_s *af_rout_req;
char *asp_id;
char *bdt_ref_id;
bool is_ev_subsc_null;
struct OpenAPI_events_subsc_req_data_rm_s *ev_subsc;
char *mcptt_id;
char *mc_video_id;
@ -54,9 +56,11 @@ typedef struct OpenAPI_app_session_context_update_data_s {
OpenAPI_app_session_context_update_data_t *OpenAPI_app_session_context_update_data_create(
char *af_app_id,
bool is_af_rout_req_null,
OpenAPI_af_routing_requirement_rm_t *af_rout_req,
char *asp_id,
char *bdt_ref_id,
bool is_ev_subsc_null,
OpenAPI_events_subsc_req_data_rm_t *ev_subsc,
char *mcptt_id,
char *mc_video_id,