merge
This commit is contained in:
commit
cabc3d5aa1
@ -1083,6 +1083,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
template <typename T> RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue<T>), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); }
|
template <typename T> RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue<T>), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); }
|
||||||
|
|
||||||
|
#ifndef __cpp_lib_three_way_comparison
|
||||||
//! Equal-to operator with arbitrary types (symmetric version)
|
//! Equal-to operator with arbitrary types (symmetric version)
|
||||||
/*! \return (rhs == lhs)
|
/*! \return (rhs == lhs)
|
||||||
*/
|
*/
|
||||||
@ -1093,6 +1094,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
template <typename T> friend RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue<T>), (bool)) operator!=(const T& lhs, const GenericValue& rhs) { return !(rhs == lhs); }
|
template <typename T> friend RAPIDJSON_DISABLEIF_RETURN((internal::IsGenericValue<T>), (bool)) operator!=(const T& lhs, const GenericValue& rhs) { return !(rhs == lhs); }
|
||||||
//@}
|
//@}
|
||||||
|
#endif
|
||||||
|
|
||||||
//!@name Type
|
//!@name Type
|
||||||
//@{
|
//@{
|
||||||
|
@ -530,12 +530,12 @@ public:
|
|||||||
AssignIfExist(allOf_, *schemaDocument, p, value, GetAllOfString(), document);
|
AssignIfExist(allOf_, *schemaDocument, p, value, GetAllOfString(), document);
|
||||||
AssignIfExist(anyOf_, *schemaDocument, p, value, GetAnyOfString(), document);
|
AssignIfExist(anyOf_, *schemaDocument, p, value, GetAnyOfString(), document);
|
||||||
AssignIfExist(oneOf_, *schemaDocument, p, value, GetOneOfString(), document);
|
AssignIfExist(oneOf_, *schemaDocument, p, value, GetOneOfString(), document);
|
||||||
}
|
|
||||||
|
|
||||||
if (const ValueType* v = GetMember(value, GetNotString())) {
|
if (const ValueType* v = GetMember(value, GetNotString())) {
|
||||||
schemaDocument->CreateSchema(¬_, p.Append(GetNotString(), allocator_), *v, document, id_);
|
schemaDocument->CreateSchema(¬_, p.Append(GetNotString(), allocator_), *v, document, id_);
|
||||||
notValidatorIndex_ = validatorCount_;
|
notValidatorIndex_ = validatorCount_;
|
||||||
validatorCount_++;
|
validatorCount_++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Object
|
// Object
|
||||||
@ -983,7 +983,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (additionalPropertiesSchema_) {
|
if (additionalPropertiesSchema_) {
|
||||||
if (additionalPropertiesSchema_ && context.patternPropertiesSchemaCount > 0) {
|
if (context.patternPropertiesSchemaCount > 0) {
|
||||||
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = additionalPropertiesSchema_;
|
context.patternPropertiesSchemas[context.patternPropertiesSchemaCount++] = additionalPropertiesSchema_;
|
||||||
context.valueSchema = typeless_;
|
context.valueSchema = typeless_;
|
||||||
context.valuePatternValidatorType = Context::kPatternValidatorWithAdditionalProperty;
|
context.valuePatternValidatorType = Context::kPatternValidatorWithAdditionalProperty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user