Public Types | |
enum | Type { kInvalid = 0, kBoolean, kInteger, kDouble, kString, kObject, kArray } |
Public Member Functions | |
JsonSchema (const string &name, const Type &type, const bool &required) | |
JsonSchema (const string &name, const Type &type, const bool &required, const JsonSchema &e1, const JsonSchema &e2=kNull, const JsonSchema &e3=kNull, const JsonSchema &e4=kNull, const JsonSchema &e5=kNull, const JsonSchema &e6=kNull, const JsonSchema &e7=kNull, const JsonSchema &e8=kNull, const JsonSchema &e9=kNull, const JsonSchema &e10=kNull, const JsonSchema &e11=kNull, const JsonSchema &e12=kNull) | |
JsonSchema (const Type &type) | |
JsonSchema (const Type &type, const JsonSchema &e1, const JsonSchema &e2=kNull, const JsonSchema &e3=kNull, const JsonSchema &e4=kNull, const JsonSchema &e5=kNull, const JsonSchema &e6=kNull, const JsonSchema &e7=kNull, const JsonSchema &e8=kNull, const JsonSchema &e9=kNull, const JsonSchema &e10=kNull, const JsonSchema &e11=kNull, const JsonSchema &e12=kNull) | |
bool | HasName () const |
void | insert (const JsonSchema &item) |
void | insert (const std::vector< JsonSchema > &items) |
const std::vector< JsonSchema > & | items () const |
const string & | name () const |
bool | required () const |
Type | type () const |
bool | ValidateJsonMessage (const Json &json_object) const |
Static Public Attributes | |
static const JsonSchema | kNull |