1 #ifndef XAPP_MODEL_ConfigMetadata_H
2 #define XAPP_MODEL_ConfigMetadata_H
9 struct ConfigMetadata: ModelBase {
10 std::string ConfigType;
12 json validator_schema = R"(
14 "$schema": "http://json-schema.org/draft-07/schema#",
15 "title": "ConfigMetadata",
18 "description": "Type of Config",
20 "enum": ["json", "xml", "other"]
23 "description": "Name of xApp",
34 virtual json get_validator_schema() const { return validator_schema; }
37 void from_json(const json& j, ConfigMetadata& ref) {
39 std::cout << __func__ << " ConfigMetadata " << std::endl;
41 j.at("ConfigType").get_to(ref.ConfigType);
42 j.at("XappName").get_to(ref.XappName);
45 void to_json(json& j, const ConfigMetadata& ref) {
47 {"ConfigType",ref.ConfigType},
48 {"XappName", ref.XappName}
54 #endif /*XAPP_MODEL_ConfigMetadata_H*/