MySQL 8.0.40
Source Code Documentation
Json_schema_validation_report Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ document_location()

const std::string & Json_schema_validation_report::document_location ( ) const
inline
Returns
a JSON pointer in URI format, pointing to where in the JSON document the validation failed

◆ human_readable_reason()

std::string Json_schema_validation_report::human_readable_reason ( ) const
Returns
a human readable reason why the validation failed

◆ schema_failed_keyword()

const std::string & Json_schema_validation_report::schema_failed_keyword ( ) const
inline
Returns
a string describing the name of the JSON Schema keyword that failed validation

◆ schema_location()

const std::string & Json_schema_validation_report::schema_location ( ) const
inline
Returns
a JSON pointer in URI format, pointing to where in the JSON Schema the validation failed

◆ set_error_report()

void Json_schema_validation_report::set_error_report ( std::string &&  schema_location,
const char *  schema_failed_keyword,
std::string &&  document_location 
)
inline

Populates the object with validation information.

Parameters
schema_locationa JSON pointer in URI format, pointing to where in the JSON Schema the validation failed
schema_failed_keyworda string describing the name of the JSON Schema keyword that failed validation
document_locationa JSON pointer in URI format, pointing to where in the JSON document the validation failed

Member Data Documentation

◆ m_document_location

std::string Json_schema_validation_report::m_document_location
private

◆ m_schema_failed_keyword

std::string Json_schema_validation_report::m_schema_failed_keyword
private

◆ m_schema_location

std::string Json_schema_validation_report::m_schema_location
private

The documentation for this class was generated from the following files: