KiCad PCB EDA Suite
Loading...
Searching...
No Matches
JSON_SCHEMA_VALIDATOR Class Reference

#include <json_schema_validator.h>

Public Member Functions

 JSON_SCHEMA_VALIDATOR (const wxFileName &aSchemaFile)
 
 ~JSON_SCHEMA_VALIDATOR ()=default
 
nlohmann::json Validate (const nlohmann::json &aJson, nlohmann::json_schema::error_handler &aErrorHandler, const nlohmann::json_uri &aInitialUri=nlohmann::json_uri("#")) const
 

Private Attributes

nlohmann::json_schema::json_validator m_validator
 

Detailed Description

Definition at line 28 of file json_schema_validator.h.

Constructor & Destructor Documentation

◆ JSON_SCHEMA_VALIDATOR()

JSON_SCHEMA_VALIDATOR::JSON_SCHEMA_VALIDATOR ( const wxFileName &  aSchemaFile)

Definition at line 28 of file json_schema_validator.cpp.

References _, dummy, and m_validator.

◆ ~JSON_SCHEMA_VALIDATOR()

JSON_SCHEMA_VALIDATOR::~JSON_SCHEMA_VALIDATOR ( )
default

Member Function Documentation

◆ Validate()

nlohmann::json JSON_SCHEMA_VALIDATOR::Validate ( const nlohmann::json &  aJson,
nlohmann::json_schema::error_handler &  aErrorHandler,
const nlohmann::json_uri &  aInitialUri = nlohmann::json_uri("#") 
) const

Definition at line 59 of file json_schema_validator.cpp.

References m_validator.

Referenced by API_PLUGIN_CONFIG::API_PLUGIN_CONFIG().

Member Data Documentation

◆ m_validator

nlohmann::json_schema::json_validator JSON_SCHEMA_VALIDATOR::m_validator
private

Definition at line 40 of file json_schema_validator.h.

Referenced by JSON_SCHEMA_VALIDATOR(), and Validate().


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