MySQL 9.1.0
Source Code Documentation
|
Json_schema_validation_report contains a more detailed report about a failed JSON Schema validation. More...
#include <json_schema.h>
Public Member Functions | |
std::string | human_readable_reason () const |
const std::string & | schema_location () const |
const std::string & | schema_failed_keyword () const |
const std::string & | document_location () const |
void | set_error_report (std::string &&schema_location, const char *schema_failed_keyword, std::string &&document_location) |
Populates the object with validation information. More... | |
Private Attributes | |
std::string | m_schema_location |
std::string | m_schema_failed_keyword |
std::string | m_document_location |
Json_schema_validation_report contains a more detailed report about a failed JSON Schema validation.
It's mainly used by the function JSON_SCHEMA_VALIDATION_REPORT to print out a more detailed report to the user.
|
inline |
std::string Json_schema_validation_report::human_readable_reason | ( | ) | const |
|
inline |
|
inline |
|
inline |
Populates the object with validation information.
schema_location | a JSON pointer in URI format, pointing to where in the JSON Schema the validation failed |
schema_failed_keyword | a string describing the name of the JSON Schema keyword that failed validation |
document_location | a JSON pointer in URI format, pointing to where in the JSON document the validation failed |
|
private |
|
private |
|
private |