Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
json_validation.hpp File Reference
#include <nlohmann/json-schema.hpp>
#include <nlohmann/json.hpp>
Include dependency graph for json_validation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nlohmann::json import_json (std::string file_path)
 
bool json_matches_schema (const nlohmann::json &json_object, const nlohmann::json &schema)
 

Function Documentation

◆ import_json()

nlohmann::json import_json ( std::string  file_path)

Definition at line 6 of file json_validation.cpp.

◆ json_matches_schema()

bool json_matches_schema ( const nlohmann::json &  json_object,
const nlohmann::json &  schema 
)

Definition at line 11 of file json_validation.cpp.