CoolProp
8.0.0
An open-source fluid property and humid air property database
include
CoolProp
SchemaValidation.h
Go to the documentation of this file.
1
#ifndef COOLPROP_SCHEMA_VALIDATION_H
2
#define COOLPROP_SCHEMA_VALIDATION_H
3
4
#include <string>
5
6
namespace
CoolProp
{
7
8
// Schema-validation helpers that work on JSON strings — exposed even
9
// to SWIG since they take only std::string. Internally they parse,
10
// validate, and (for to_canonical_json_str) re-serialise into a
11
// canonical form with object keys sorted at every level.
12
//
13
// Throws CoolProp::ValueError on schema violation or invalid JSON.
14
void
validate_json_against_schema
(
const
std::string& instance_json,
const
std::string& schema_json);
15
16
std::string
to_canonical_json_str
(
const
std::string& json_str);
17
18
}
// namespace CoolProp
19
20
#endif
// COOLPROP_SCHEMA_VALIDATION_H
Generated by
1.9.4