Open Lighting Architecture  Latest Git
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

◆ FromString()

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: