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

Method required

tests/testvalidator.cpp:972–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970 // ***** Endpoint for ValidatorRequired ******
971 C_ATTR(required, :Local :AutoArgs)
972 void required(Context *c)
973 {
974 Validator v({new ValidatorRequired(u"field"_s, m_validatorMessages)});
975 checkResponse(c, v.validate(c));
976 }
977
978 // ***** Endpoint for ValidatorRequiredIf ******
979 C_ATTR(requiredIf, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected