/*
 * report_item.h
 *
 * indicates performed modivications.
 */

#ifndef _OpenAPI_report_item_H_
#define _OpenAPI_report_item_H_

#include <string.h>
#include "third-party/cjson/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
typedef struct OpenAPI_report_item_s OpenAPI_report_item_t;

#ifdef __cplusplus
extern "C" {
#endif

struct OpenAPI_report_item_s {
    char *path;
    char *reason;
};

OpenAPI_report_item_t *OpenAPI_report_item_create(
    char *path,
    char *reason
);
void OpenAPI_report_item_free(OpenAPI_report_item_t *report_item);
OpenAPI_report_item_t *OpenAPI_report_item_parseFromJSON(cJSON *report_itemJSON);
cJSON *OpenAPI_report_item_convertToJSON(OpenAPI_report_item_t *report_item);
OpenAPI_report_item_t *OpenAPI_report_item_copy(OpenAPI_report_item_t *dst, OpenAPI_report_item_t *src);

#ifdef __cplusplus
}
#endif

#endif /* _OpenAPI_report_item_H_ */

