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

Method jsonArray

tests/testvalidator.cpp:856–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854 // ***** Endpoint for ValidatorJson with array expected ******
855 C_ATTR(jsonArray, :Local :AutoArgs)
856 void jsonArray(Context *c)
857 {
858 Validator v({new ValidatorJson(
859 u"field"_s, ValidatorJson::ExpectedType::Array, m_validatorMessages)});
860 checkResponse(c, v.validate(c));
861 }
862
863 // ***** Endpoint for ValidatorMax ******
864 C_ATTR(max, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected