Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
json_validation.cpp File Reference
#include <jsonvalidation/json_validation.hpp>
#include <fstream>
#include <iostream>
#include <string>
Include dependency graph for json_validation.cpp:

Go to the source code of this file.

Functions

nlohmann::json import_json (std::string file_path)
 
bool json_matches_schema (const nlohmann::json &imported_data, 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 &  imported_data,
const nlohmann::json &  schema 
)

Definition at line 11 of file json_validation.cpp.