MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / requiredIf

Method requiredIf

tests/testvalidator.cpp:980–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

978 // ***** Endpoint for ValidatorRequiredIf ******
979 C_ATTR(requiredIf, :Local :AutoArgs)
980 void requiredIf(Context *c)
981 {
982 Validator v({new ValidatorRequiredIf(
983 u"field"_s, u"field2"_s, QStringList({u"eins"_s, u"zwei"_s}), m_validatorMessages)});
984 checkResponse(c, v.validate(c));
985 }
986
987 // ***** Endpoint for ValidatorRequiredIfStash with stash match *****
988 C_ATTR(requiredIfStashMatch, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected