5 #ifndef CUTELYSTVALIDATORJSON_H 6 #define CUTELYSTVALIDATORJSON_H 8 #include "validatorrule.h" 12 class ValidatorJsonPrivate;
60 ExpectedType expectedType = ExpectedType::All,
67 ~ValidatorJson()
override;
77 ValidatorReturnType validate(Context *c,
const ParamsMultiMap ¶ms)
const override;
89 void validateCb(Context *c,
const ParamsMultiMap ¶ms, ValidatorRtFn cb)
const override;
94 QString genericValidationError(Context *c,
98 Q_DECLARE_PRIVATE(ValidatorJson)
99 Q_DISABLE_COPY(ValidatorJson)
104 #endif // CUTELYSTVALIDATORJSON_H
Stores custom error messages and the input field label.
The Cutelyst namespace holds all public Cutelyst API.
Base class for all validator rules.
QMultiMap< QString, QString > ParamsMultiMap
Checks if the inut data is valid JSON.