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

Method requiredUnless

tests/testvalidator.cpp:1031–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029 // ***** Endpoint for ValidatorRequiredUnless ******
1030 C_ATTR(requiredUnless, :Local :AutoArgs)
1031 void requiredUnless(Context *c)
1032 {
1033 Validator v({new ValidatorRequiredUnless(
1034 u"field"_s, u"field2"_s, QStringList({u"eins"_s, u"zwei"_s}), m_validatorMessages)});
1035 checkResponse(c, v.validate(c));
1036 }
1037
1038 // ***** Endpoint for ValidatorRequiredUnlessStash with stash match *****
1039 C_ATTR(requiredUnlessStashMatch, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected