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

Method jsonObject

tests/testvalidator.cpp:847–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845 // ***** Endpoint for ValidatorJson with object expected ******
846 C_ATTR(jsonObject, :Local :AutoArgs)
847 void jsonObject(Context *c)
848 {
849 Validator v({new ValidatorJson(
850 u"field"_s, ValidatorJson::ExpectedType::Object, m_validatorMessages)});
851 checkResponse(c, v.validate(c));
852 }
853
854 // ***** Endpoint for ValidatorJson with array expected ******
855 C_ATTR(jsonArray, :Local :AutoArgs)

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected