mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +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
|
|
@ -19,23 +19,31 @@ extern "C" {
|
|||
|
||||
typedef struct OpenAPI_usage_threshold_rm_s OpenAPI_usage_threshold_rm_t;
|
||||
typedef struct OpenAPI_usage_threshold_rm_s {
|
||||
bool is_duration_null;
|
||||
bool is_duration;
|
||||
int duration;
|
||||
bool is_total_volume_null;
|
||||
bool is_total_volume;
|
||||
long total_volume;
|
||||
bool is_downlink_volume_null;
|
||||
bool is_downlink_volume;
|
||||
long downlink_volume;
|
||||
bool is_uplink_volume_null;
|
||||
bool is_uplink_volume;
|
||||
long uplink_volume;
|
||||
} OpenAPI_usage_threshold_rm_t;
|
||||
|
||||
OpenAPI_usage_threshold_rm_t *OpenAPI_usage_threshold_rm_create(
|
||||
bool is_duration_null,
|
||||
bool is_duration,
|
||||
int duration,
|
||||
bool is_total_volume_null,
|
||||
bool is_total_volume,
|
||||
long total_volume,
|
||||
bool is_downlink_volume_null,
|
||||
bool is_downlink_volume,
|
||||
long downlink_volume,
|
||||
bool is_uplink_volume_null,
|
||||
bool is_uplink_volume,
|
||||
long uplink_volume
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue