#include <schema.h>
Classes | |
struct | PatternProperty |
struct | Property |
struct | SchemaArray |
Public Types | |
typedef SchemaDocumentType::AllocatorType | AllocatorType |
typedef EncodingType::Ch | Ch |
typedef SchemaValidationContext< SchemaDocumentType > | Context |
typedef ValueType::EncodingType | EncodingType |
typedef IValidationErrorHandler< Schema > | ErrorHandler |
typedef SchemaDocumentType::PointerType | PointerType |
typedef Schema< SchemaDocumentType > | SchemaType |
typedef GenericValue< EncodingType, AllocatorType > | SValue |
typedef SchemaDocumentType::ValueType | ValueType |
Public Member Functions | |
bool | BeginValue (Context &context) const |
bool | Bool (Context &context, bool) const |
bool | Double (Context &context, double d) const |
bool | EndArray (Context &context, SizeType elementCount) const |
bool | EndObject (Context &context, SizeType memberCount) const |
RAPIDJSON_FORCEINLINE bool | EndValue (Context &context) const |
const PointerType & | GetPointer () const |
const SValue & | GetURI () const |
bool | Int (Context &context, int i) const |
bool | Int64 (Context &context, int64_t i) const |
bool | Key (Context &context, const Ch *str, SizeType len, bool) const |
bool | Null (Context &context) const |
RAPIDJSON_STRING_ (PatternProperties, 'p', 'a', 't', 't', 'e', 'r', 'n', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's') RAPIDJSON_STRING_(AdditionalProperties | |
Schema (SchemaDocumentType *schemaDocument, const PointerType &p, const ValueType &value, const ValueType &document, AllocatorType *allocator) | |
bool | StartArray (Context &context) const |
bool | StartObject (Context &context) const |
bool | String (Context &context, const Ch *str, SizeType length, bool) const |
bool | Uint (Context &context, unsigned u) const |
bool | Uint64 (Context &context, uint64_t u) const |
~Schema () | |
Public Attributes | |
a | |
d | |
e | |
i | |
l | |
n | |
o | |
p | |
P | |
r | |
t | |
Private Types | |
typedef internal::GenericRegex< EncodingType, AllocatorType > | RegexType |
enum | SchemaValueType { kNullSchemaType, kBooleanSchemaType, kObjectSchemaType, kArraySchemaType, kStringSchemaType, kNumberSchemaType, kIntegerSchemaType, kTotalSchemaType } |
Private Member Functions | |
void | AddType (const ValueType &type) |
template<typename V1 , typename V2 > | |
void | AddUniqueElement (V1 &a, const V2 &v) |
void | AssignIfExist (SchemaArray &out, SchemaDocumentType &schemaDocument, const PointerType &p, const ValueType &value, const ValueType &name, const ValueType &document) |
bool | CheckDoubleMaximum (Context &context, double d) const |
bool | CheckDoubleMinimum (Context &context, double d) const |
bool | CheckDoubleMultipleOf (Context &context, double d) const |
bool | CheckInt (Context &context, int64_t i) const |
bool | CheckUint (Context &context, uint64_t i) const |
bool | CreateParallelValidator (Context &context) const |
template<typename ValueType > | |
RegexType * | CreatePattern (const ValueType &value) |
void | CreateSchemaValidators (Context &context, const SchemaArray &schemas) const |
void | DisallowedType (Context &context, const ValueType &actualType) const |
bool | FindPropertyIndex (const ValueType &name, SizeType *outIndex) const |
Static Private Member Functions | |
static void | AssignIfExist (bool &out, const ValueType &value, const ValueType &name) |
static void | AssignIfExist (SizeType &out, const ValueType &value, const ValueType &name) |
static const ValueType * | GetMember (const ValueType &value, const ValueType &name) |
static bool | IsPatternMatch (const RegexType *pattern, const Ch *str, SizeType) |
Private Attributes | |
bool | additionalItems_ |
const SchemaType * | additionalItemsSchema_ |
bool | additionalProperties_ |
const SchemaType * | additionalPropertiesSchema_ |
AllocatorType * | allocator_ |
SchemaArray | allOf_ |
SchemaArray | anyOf_ |
SizeType | defaultValueLength_ |
uint64_t * | enum_ |
SizeType | enumCount_ |
bool | exclusiveMaximum_ |
bool | exclusiveMinimum_ |
bool | hasDependencies_ |
bool | hasRequired_ |
bool | hasSchemaDependencies_ |
const SchemaType * | itemsList_ |
const SchemaType ** | itemsTuple_ |
SizeType | itemsTupleCount_ |
SValue | maximum_ |
SizeType | maxItems_ |
SizeType | maxLength_ |
SizeType | maxProperties_ |
SValue | minimum_ |
SizeType | minItems_ |
SizeType | minLength_ |
SizeType | minProperties_ |
SValue | multipleOf_ |
const SchemaType * | not_ |
SizeType | notValidatorIndex_ |
SchemaArray | oneOf_ |
RegexType * | pattern_ |
PatternProperty * | patternProperties_ |
SizeType | patternPropertyCount_ |
PointerType | pointer_ |
Property * | properties_ |
SizeType | propertyCount_ |
unsigned | type_ |
const SchemaType * | typeless_ |
bool | uniqueItems_ |
SValue | uri_ |
SizeType | validatorCount_ |
Friends | |
class | GenericSchemaDocument< ValueType, AllocatorType > |
typedef SchemaDocumentType::AllocatorType internal::Schema< SchemaDocumentType >::AllocatorType |
typedef EncodingType::Ch internal::Schema< SchemaDocumentType >::Ch |
typedef SchemaValidationContext<SchemaDocumentType> internal::Schema< SchemaDocumentType >::Context |
typedef ValueType::EncodingType internal::Schema< SchemaDocumentType >::EncodingType |
typedef IValidationErrorHandler<Schema> internal::Schema< SchemaDocumentType >::ErrorHandler |
typedef SchemaDocumentType::PointerType internal::Schema< SchemaDocumentType >::PointerType |
|
private |
typedef Schema<SchemaDocumentType> internal::Schema< SchemaDocumentType >::SchemaType |
typedef GenericValue<EncodingType, AllocatorType> internal::Schema< SchemaDocumentType >::SValue |
typedef SchemaDocumentType::ValueType internal::Schema< SchemaDocumentType >::ValueType |
|
private |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inline |
internal::Schema< SchemaDocumentType >::RAPIDJSON_STRING_ | ( | PatternProperties | , |
'p' | , | ||
'a' | , | ||
't' | , | ||
't' | , | ||
'e' | , | ||
'r' | , | ||
'n' | , | ||
'P' | , | ||
'r' | , | ||
'o' | , | ||
'p' | , | ||
'e' | , | ||
'r' | , | ||
't' | , | ||
'i' | , | ||
'e' | , | ||
's' | |||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
internal::Schema< SchemaDocumentType >::a |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
internal::Schema< SchemaDocumentType >::d |
|
private |
internal::Schema< SchemaDocumentType >::e |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
internal::Schema< SchemaDocumentType >::i |
|
private |
|
private |
|
private |
internal::Schema< SchemaDocumentType >::l |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
internal::Schema< SchemaDocumentType >::n |
|
private |
|
private |
internal::Schema< SchemaDocumentType >::o |
|
private |
internal::Schema< SchemaDocumentType >::P |
internal::Schema< SchemaDocumentType >::p |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
internal::Schema< SchemaDocumentType >::r |
internal::Schema< SchemaDocumentType >::t |
|
private |
|
private |
|
private |
|
private |
|
private |