Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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. More...

Member Function Documentation

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

Parse a string and return a new schema.

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

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