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

Method json

tests/testvalidator.cpp:838–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836 // ***** Endpoint for ValidatorJson ******
837 C_ATTR(json, :Local :AutoArgs)
838 void json(Context *c)
839 {
840 Validator v(
841 {new ValidatorJson(u"field"_s, ValidatorJson::ExpectedType::All, m_validatorMessages)});
842 checkResponse(c, v.validate(c));
843 }
844
845 // ***** Endpoint for ValidatorJson with object expected ******
846 C_ATTR(jsonObject, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected