[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,6 +31,7 @@ typedef struct OpenAPI_session_management_subscription_data_1_s {
OpenAPI_list_t* shared_vn_group_data_ids;
char *shared_dnn_configurations_id;
OpenAPI_odb_packet_services_e odb_packet_services;
bool is_trace_data_null;
struct OpenAPI_trace_data_s *trace_data;
char *shared_trace_data_id;
OpenAPI_list_t* expected_ue_behaviours_list;
@ -46,6 +47,7 @@ OpenAPI_session_management_subscription_data_1_t *OpenAPI_session_management_sub
OpenAPI_list_t* shared_vn_group_data_ids,
char *shared_dnn_configurations_id,
OpenAPI_odb_packet_services_e odb_packet_services,
bool is_trace_data_null,
OpenAPI_trace_data_t *trace_data,
char *shared_trace_data_id,
OpenAPI_list_t* expected_ue_behaviours_list,