proxygen
folly::jsonschema::Validator Struct Referenceabstract

#include <JSONSchema.h>

Public Member Functions

virtual ~Validator ()=0
 
virtual void validate (const dynamic &value) const =0
 
virtual exception_wrapper try_validate (const dynamic &value) const noexcept=0
 

Detailed Description

Interface for a schema validator.

Definition at line 46 of file JSONSchema.h.

Constructor & Destructor Documentation

Validator::~Validator ( )
pure virtualdefault

Member Function Documentation

virtual exception_wrapper folly::jsonschema::Validator::try_validate ( const dynamic value) const
pure virtualnoexcept

Check whether the given value passes the schema. Returns an exception_wrapper indicating success or what the failure was.

virtual void folly::jsonschema::Validator::validate ( const dynamic value) const
pure virtual

Check whether the given value passes the schema. Throws if it fails.


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