Open Lighting Architecture: ola::web::JsonSchema Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ola::web::JsonSchema Class Reference
JSON

## 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 JsonObject * | AsJson () const
| Return the schema as Json.

## Static Public Member Functions
static JsonSchema * | FromString (const std::string &schema_string, std::string *error)
| Parse a string and return a new schema.

## 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:

- include/ola/web/JsonSchema.h
- common/web/JsonSchema.cpp