mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +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
|
|
@ -21,6 +21,7 @@ typedef struct OpenAPI_as_time_distribution_param_s OpenAPI_as_time_distribution
|
|||
typedef struct OpenAPI_as_time_distribution_param_s {
|
||||
bool is_as_time_dist_ind;
|
||||
int as_time_dist_ind;
|
||||
bool is_uu_error_budget_null;
|
||||
bool is_uu_error_budget;
|
||||
int uu_error_budget;
|
||||
} OpenAPI_as_time_distribution_param_t;
|
||||
|
|
@ -28,6 +29,7 @@ typedef struct OpenAPI_as_time_distribution_param_s {
|
|||
OpenAPI_as_time_distribution_param_t *OpenAPI_as_time_distribution_param_create(
|
||||
bool is_as_time_dist_ind,
|
||||
int as_time_dist_ind,
|
||||
bool is_uu_error_budget_null,
|
||||
bool is_uu_error_budget,
|
||||
int uu_error_budget
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue