template <typename, typename, typename>
class GenericSchemaValidator
Defined at line 2438 of file ../../third_party/rapidjson/include/rapidjson/schema.h
JSON Schema Validator.
A SAX style JSON schema validator.
It uses a
to validate SAX events.
It delegates the incoming SAX events to an output handler.
The default output handler does nothing.
It can be reused multiple times by calling
Template Parameters
Public Methods
void GenericSchemaValidator<SchemaDocumentType, OutputHandler, StateAllocator> (const SchemaDocumentType & schemaDocument, StateAllocator * allocator, size_t schemaStackCapacity, size_t documentStackCapacity)
Constructor without output handler.
Parameters
Defined at line 2458 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void GenericSchemaValidator<SchemaDocumentType, OutputHandler, StateAllocator> (const SchemaDocumentType & schemaDocument, OutputHandler & outputHandler, StateAllocator * allocator, size_t schemaStackCapacity, size_t documentStackCapacity)
Constructor with output handler.
Parameters
Defined at line 2488 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void ~GenericSchemaValidator<SchemaDocumentType, OutputHandler, StateAllocator> ()
Destructor.
Defined at line 2513 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void Reset ()
Reset the internal states.
Defined at line 2519 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void ResetError ()
Reset the error state.
Defined at line 2527 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void SetValidateFlags (unsigned int flags)
Implementation of ISchemaValidator
Defined at line 2535 of file ../../third_party/rapidjson/include/rapidjson/schema.h
unsigned int GetValidateFlags ()
Defined at line 2538 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool IsValid ()
Defined at line 2542 of file ../../third_party/rapidjson/include/rapidjson/schema.h
ValueType & GetError ()
Gets the error object.
Defined at line 2550 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const ValueType & GetError ()
Defined at line 2551 of file ../../third_party/rapidjson/include/rapidjson/schema.h
PointerType GetInvalidSchemaPointer ()
Gets the JSON pointer pointed to the invalid schema.
If reporting all errors, the stack will be empty.
Defined at line 2555 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const Ch * GetInvalidSchemaKeyword ()
Gets the keyword of invalid schema.
If reporting all errors, the stack will be empty, so return "errors".
Defined at line 2561 of file ../../third_party/rapidjson/include/rapidjson/schema.h
ValidateErrorCode GetInvalidSchemaCode ()
Gets the error code of invalid schema.
If reporting all errors, the stack will be empty, so return kValidateErrors.
Defined at line 2569 of file ../../third_party/rapidjson/include/rapidjson/schema.h
PointerType GetInvalidDocumentPointer ()
Gets the JSON pointer pointed to the invalid value.
If reporting all errors, the stack will be empty.
Defined at line 2577 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void NotMultipleOf (int64_t actual, const SValue & expected)
Defined at line 2586 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void NotMultipleOf (uint64_t actual, const SValue & expected)
Defined at line 2589 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void NotMultipleOf (double actual, const SValue & expected)
Defined at line 2592 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void AboveMaximum (int64_t actual, const SValue & expected, bool exclusive)
Defined at line 2595 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void AboveMaximum (uint64_t actual, const SValue & expected, bool exclusive)
Defined at line 2599 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void AboveMaximum (double actual, const SValue & expected, bool exclusive)
Defined at line 2603 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void BelowMinimum (int64_t actual, const SValue & expected, bool exclusive)
Defined at line 2607 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void BelowMinimum (uint64_t actual, const SValue & expected, bool exclusive)
Defined at line 2611 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void BelowMinimum (double actual, const SValue & expected, bool exclusive)
Defined at line 2615 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void TooLong (const Ch * str, SizeType length, SizeType expected)
Defined at line 2620 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void TooShort (const Ch * str, SizeType length, SizeType expected)
Defined at line 2624 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DoesNotMatch (const Ch * str, SizeType length)
Defined at line 2628 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DisallowedItem (SizeType index)
Defined at line 2634 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void TooFewItems (SizeType actualCount, SizeType expectedCount)
Defined at line 2639 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void TooManyItems (SizeType actualCount, SizeType expectedCount)
Defined at line 2643 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DuplicateItems (SizeType index1, SizeType index2)
Defined at line 2647 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void TooManyProperties (SizeType actualCount, SizeType expectedCount)
Defined at line 2656 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void TooFewProperties (SizeType actualCount, SizeType expectedCount)
Defined at line 2660 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void StartMissingProperties ()
Defined at line 2664 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void AddMissingProperty (const SValue & name)
Defined at line 2667 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool EndMissingProperties ()
Defined at line 2670 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void PropertyViolations (ISchemaValidator ** subvalidators, SizeType count)
Defined at line 2679 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DisallowedProperty (const Ch * name, SizeType length)
Defined at line 2683 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void StartDependencyErrors ()
Defined at line 2689 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void StartMissingDependentProperties ()
Defined at line 2692 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void AddMissingDependentProperty (const SValue & targetName)
Defined at line 2695 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void EndMissingDependentProperties (const SValue & sourceName)
Defined at line 2698 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void AddDependencySchemaError (const SValue & sourceName, ISchemaValidator * subvalidator)
Defined at line 2714 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool EndDependencyErrors ()
Defined at line 2718 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DisallowedValue (const ValidateErrorCode code)
Defined at line 2728 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void StartDisallowedType ()
Defined at line 2732 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void AddExpectedType (const typename SchemaType::ValueType & expectedType)
Defined at line 2735 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void EndDisallowedType (const typename SchemaType::ValueType & actualType)
Defined at line 2738 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void NotAllOf (ISchemaValidator ** subvalidators, SizeType count)
Defined at line 2745 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void NoneOf (ISchemaValidator ** subvalidators, SizeType count)
Defined at line 2752 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void NotOneOf (ISchemaValidator ** subvalidators, SizeType count)
Defined at line 2755 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void MultipleOneOf (SizeType index1, SizeType index2)
Defined at line 2758 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void Disallowed ()
Defined at line 2766 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DisallowedWhenWriting ()
Defined at line 2770 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DisallowedWhenReading ()
Defined at line 2774 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetInstanceRefString ()
Defined at line 2786 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetSchemaRefString ()
Defined at line 2787 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetExpectedString ()
Defined at line 2788 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetActualString ()
Defined at line 2789 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetDisallowedString ()
Defined at line 2790 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetMissingString ()
Defined at line 2791 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetErrorsString ()
Defined at line 2792 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetErrorCodeString ()
Defined at line 2793 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetErrorMessageString ()
Defined at line 2794 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetDuplicatesString ()
Defined at line 2795 of file ../../third_party/rapidjson/include/rapidjson/schema.h
const StringRefType & GetMatchesString ()
Defined at line 2796 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Null ()
Defined at line 2831 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Bool (bool b)
Defined at line 2832 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Int (int i)
Defined at line 2833 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Uint (unsigned int u)
Defined at line 2834 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Int64 (int64_t i)
Defined at line 2835 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Uint64 (uint64_t u)
Defined at line 2836 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Double (double d)
Defined at line 2837 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool RawNumber (const Ch * str, SizeType length, bool copy)
Defined at line 2838 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool String (const Ch * str, SizeType length, bool copy)
Defined at line 2840 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool StartObject ()
Defined at line 2843 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool Key (const Ch * str, SizeType len, bool copy)
Defined at line 2851 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool EndObject (SizeType memberCount)
Defined at line 2864 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool StartArray ()
Defined at line 2875 of file ../../third_party/rapidjson/include/rapidjson/schema.h
bool EndArray (SizeType elementCount)
Defined at line 2883 of file ../../third_party/rapidjson/include/rapidjson/schema.h
ISchemaValidator * CreateSchemaValidator (const SchemaType & root, const bool inheritContinueOnErrors)
Implementation of ISchemaStateFactory
<SchemaType
>
Defined at line 2899 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DestroySchemaValidator (ISchemaValidator * validator)
Defined at line 2909 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void * CreateHasher ()
Defined at line 2915 of file ../../third_party/rapidjson/include/rapidjson/schema.h
uint64_t GetHashCode (void * hasher)
Defined at line 2919 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void DestroryHasher (void * hasher)
Defined at line 2923 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void * MallocState (size_t size)
Defined at line 2929 of file ../../third_party/rapidjson/include/rapidjson/schema.h
void FreeState (void * p)
Defined at line 2933 of file ../../third_party/rapidjson/include/rapidjson/schema.h