ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | Static Public Member Functions | List of all members
ocpp::Schemas Class Reference

Contains the json schema validation for the libocpp config. More...

#include <schemas.hpp>

Public Member Functions

 Schemas (fs::path schemas_path)
 Creates a new Schemas object looking for the root schema file in relation to the provided main_dir.
 
 Schemas (const json &schema_in)
 Creates a new Schemas object using the supplied JSON schema.
 
 Schemas (json &&schema_in)
 Creates a new Schemas object using the supplied JSON schema.
 
json get_schema ()
 Provides the config schema. More...
 
std::shared_ptr< json_validator > get_validator ()
 Provides the config schema validator. More...
 

Static Public Member Functions

static void format_checker (const std::string &format, const std::string &value)
 Provides a format checker for the given format and value.
 

Detailed Description

Contains the json schema validation for the libocpp config.

Member Function Documentation

◆ get_schema()

json ocpp::Schemas::get_schema ( )

Provides the config schema.

Returns
the config schema as as json object

◆ get_validator()

std::shared_ptr< json_validator > ocpp::Schemas::get_validator ( )

Provides the config schema validator.

Returns
a json_validator for the config

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