Open Lighting Architecture  0.9.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
ola::web::JsonSchema Class Reference

Detailed Description

A JsonHandlerInterface implementation that builds a parse tree.

Public Member Functions

std::string SchemaURI () const
bool IsValid (const JsonValue &value)
 Validate a JsonValue against this schema.
const JsonObjectAsJson () const
 Return the schema as Json.

Static Public Member Functions

static JsonSchemaFromString (const std::string &schema_string, std::string *error)
 Parse a string and return a new schema.

Member Function Documentation

JsonSchema * ola::web::JsonSchema::FromString ( const std::string &  schema_string,
std::string *  error 
)
static

Parse a string and return a new schema.

Returns
A JsonSchema object, or NULL if the string wasn't a valid schema.

The documentation for this class was generated from the following files: