9 #ifndef INCLUDE_FUNAPI_COMMON_JSON_SCHEMA_H_ 10 #define INCLUDE_FUNAPI_COMMON_JSON_SCHEMA_H_ 35 JsonSchema(
const string &name,
const Type &type,
const bool &required);
37 JsonSchema(
const string &name,
const Type &type,
const bool &required,
55 bool ValidateJsonMessage(
const Json &json_object)
const;
58 const string &name()
const;
60 bool required()
const;
61 const std::vector<JsonSchema> &items()
const;
63 void insert(
const std::vector<JsonSchema> &items);
66 static bool ValidateJsonMessage(
const Json &json,
72 std::vector<JsonSchema> items_;
81 #endif // INCLUDE_FUNAPI_COMMON_JSON_SCHEMA_H_
Definition: json_schema.h:20