mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
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.
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/*
|
|
* updated_item.h
|
|
*
|
|
* Identifies a fragment of a resource.
|
|
*/
|
|
|
|
#ifndef _OpenAPI_updated_item_H_
|
|
#define _OpenAPI_updated_item_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "any_type.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_updated_item_s OpenAPI_updated_item_t;
|
|
typedef struct OpenAPI_updated_item_s {
|
|
char *item;
|
|
bool is_value_null;
|
|
OpenAPI_any_type_t *value;
|
|
} OpenAPI_updated_item_t;
|
|
|
|
OpenAPI_updated_item_t *OpenAPI_updated_item_create(
|
|
char *item,
|
|
bool is_value_null,
|
|
OpenAPI_any_type_t *value
|
|
);
|
|
void OpenAPI_updated_item_free(OpenAPI_updated_item_t *updated_item);
|
|
OpenAPI_updated_item_t *OpenAPI_updated_item_parseFromJSON(cJSON *updated_itemJSON);
|
|
cJSON *OpenAPI_updated_item_convertToJSON(OpenAPI_updated_item_t *updated_item);
|
|
OpenAPI_updated_item_t *OpenAPI_updated_item_copy(OpenAPI_updated_item_t *dst, OpenAPI_updated_item_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_updated_item_H_ */
|
|
|