Make a validator that can be used to check various json. Thread‐safe.

Synopsis

Declared in <folly/json/JSONSchema.h>

std::unique_ptr<Validator>
makeValidator(dynamic const& schema);

Return Value

A validator that checks values against the given schema.

Parameters

Name

Description

schema

The schema to validate values against.

Created with MrDocs