Lines Matching full:schema
13 #include "third_party/valijson/src/include/valijson/schema.hpp"
42 void LoadSchema(const char* schema_json, valijson::Schema* schema) { in LoadSchema() argument
46 parser.populateSchema(adapter, *schema); in LoadSchema()
50 const valijson::Schema& schema) { in Validate() argument
54 if (validator.validate(schema, document_adapter, &results)) { in Validate()
64 valijson::Schema schema; in Validate() local
66 parser.populateSchema(adapter, schema); in Validate()
68 return Validate(document, schema); in Validate()
72 static valijson::Schema schema; in ValidateStreamingMessage() local
74 std::call_once(flag, [] { LoadSchema(kStreamingSchema, &schema); }); in ValidateStreamingMessage()
75 return Validate(message, schema); in ValidateStreamingMessage()
79 static valijson::Schema schema; in ValidateReceiverMessage() local
81 std::call_once(flag, [] { LoadSchema(kReceiverSchema, &schema); }); in ValidateReceiverMessage()
82 return Validate(message, schema); in ValidateReceiverMessage()