|
|
@@ -8,12 +8,19 @@
|
|
|
|
|
|
using SchemaParams = std::tuple<jvalidate::schema::Version, std::filesystem::path>;
|
|
|
|
|
|
+#if !defined(JVALIDATE_JSON_SCHEMA_TEST_SUITE_DIR)
|
|
|
inline std::filesystem::path const & JSONSchemaTestSuiteDir() {
|
|
|
static auto const g_root =
|
|
|
std::filesystem::path(__FILE__).parent_path().parent_path().parent_path();
|
|
|
static auto const g_path = g_root / "thirdparty" / "JSON-Schema-Test-Suite";
|
|
|
return g_path;
|
|
|
}
|
|
|
+#else
|
|
|
+inline std::filesystem::path const & JSONSchemaTestSuiteDir() {
|
|
|
+ static std::filesystem::path const g_path = JVALIDATE_JSON_SCHEMA_TEST_SUITE_DIR;
|
|
|
+ return g_path;
|
|
|
+}
|
|
|
+#endif
|
|
|
|
|
|
inline std::string to_string(jvalidate::schema::Version version) {
|
|
|
std::stringstream ss;
|