iFun Engine API  1.0.0-b6053
Great Technology for Great Games
Public Types | Public Member Functions | Static Public Attributes | List of all members
fun::JsonSchema Class Reference

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 stringname () const
 
bool required () const
 
Type type () const
 
bool ValidateJsonMessage (const Json &json_object) const
 

Static Public Attributes

static const JsonSchema kNull