| 1008 | // ***** Endpoint for ValidatorRequiredIfStash with stash not match ***** |
| 1009 | C_ATTR(requiredIfStashNotMatch, :Local :AutoArgs) |
| 1010 | void requiredIfStashNotMatch(Context *c) |
| 1011 | { |
| 1012 | c->setStash(u"stashkey"_s, u"drei"_s); |
| 1013 | Validator v({new ValidatorRequiredIfStash( |
| 1014 | u"field"_s, u"stashkey"_s, QVariantList({u"eins"_s, u"zwei"_s}), m_validatorMessages)}); |
| 1015 | checkResponse(c, v.validate(c)); |
| 1016 | } |
| 1017 | |
| 1018 | // ***** Endpoint for ValidatorRequiredIfStash with stash match in other stash key ***** |
| 1019 | C_ATTR(requiredIfStashNotMatchStashKey, :Local :AutoArgs) |