|
|
@@ -41,7 +41,7 @@ namespace jvalidate {
|
|
|
*
|
|
|
* @tparam RE A type that can be used to solve regular expressions
|
|
|
*/
|
|
|
-template <RegexEngine RE = detail::StdRegexEngine> class ValidatorT {
|
|
|
+template <RegexEngine RE = detail::StdRegexEngine> class Validator {
|
|
|
private:
|
|
|
schema::Node const & schema_;
|
|
|
ValidationConfig cfg_;
|
|
|
@@ -56,7 +56,7 @@ public:
|
|
|
* @param cfg Any special (runtime) configuration rules being applied to the
|
|
|
* validator.
|
|
|
*/
|
|
|
- ValidatorT(schema::Node const & schema, ValidationConfig const & cfg = {})
|
|
|
+ Validator(schema::Node const & schema, ValidationConfig const & cfg = {})
|
|
|
: schema_(schema), cfg_(cfg) {}
|
|
|
|
|
|
/**
|
|
|
@@ -119,12 +119,4 @@ public:
|
|
|
return validate(adapter::AdapterFor<JSON>(json), result);
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
-/**
|
|
|
- * @brief Syntactic sugar for ValidatorT<>.
|
|
|
- */
|
|
|
-class Validator : public ValidatorT<> {
|
|
|
-public:
|
|
|
- using Validator::ValidatorT::ValidatorT;
|
|
|
-};
|
|
|
}
|