From 2659e378312bc5546e911298fcdfdf45662f06ed Mon Sep 17 00:00:00 2001 From: dhmemi Date: Mon, 6 Jun 2022 10:53:19 +0800 Subject: [PATCH] fix: -> "nlohmann/json-schema.hpp" Follow the c++ standard, the compiler will ignore local directories when it searches files include with angle-brackets. --- README.md | 2 +- app/format.cpp | 2 +- app/json-schema-validate.cpp | 2 +- app/readme.cpp | 2 +- src/json-patch.cpp | 2 +- src/json-uri.cpp | 2 +- src/json-validator.cpp | 2 +- src/string-format-check.cpp | 2 +- test/JSON-Schema-Test-Suite/json-schema-test.cpp | 2 +- test/binary-validation.cpp | 2 +- test/errors.cpp | 2 +- test/id-ref.cpp | 2 +- test/issue-149-entry-selection.cpp | 2 +- test/issue-25-default-values.cpp | 2 +- test/issue-70-root-schema-constructor.cpp | 2 +- test/issue-70.cpp | 2 +- test/issue-93/issue-93.cpp | 2 +- test/issue-98.cpp | 2 +- test/string-format-check-test.cpp | 2 +- test/uri.cpp | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index c7e69c1..345615c 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ See also `app/json-schema-validate.cpp`. #include #include -#include +#include "nlohmann/json-schema.hpp" using nlohmann::json; using nlohmann::json_schema::json_validator; diff --git a/app/format.cpp b/app/format.cpp index 40e6445..f121288 100644 --- a/app/format.cpp +++ b/app/format.cpp @@ -1,6 +1,6 @@ #include -#include +#include "nlohmann/json-schema.hpp" using nlohmann::json; using nlohmann::json_schema::json_validator; diff --git a/app/json-schema-validate.cpp b/app/json-schema-validate.cpp index 4b51237..794e7c2 100644 --- a/app/json-schema-validate.cpp +++ b/app/json-schema-validate.cpp @@ -6,7 +6,7 @@ * SPDX-License-Identifier: MIT * */ -#include +#include "nlohmann/json-schema.hpp" #include #include diff --git a/app/readme.cpp b/app/readme.cpp index 45f4d35..dedd009 100644 --- a/app/readme.cpp +++ b/app/readme.cpp @@ -1,7 +1,7 @@ #include #include -#include +#include "nlohmann/json-schema.hpp" using nlohmann::json; using nlohmann::json_schema::json_validator; diff --git a/src/json-patch.cpp b/src/json-patch.cpp index d0cd2e4..8f84f27 100644 --- a/src/json-patch.cpp +++ b/src/json-patch.cpp @@ -1,6 +1,6 @@ #include "json-patch.hpp" -#include +#include "nlohmann/json-schema.hpp" namespace { diff --git a/src/json-uri.cpp b/src/json-uri.cpp index 2602556..73994ab 100644 --- a/src/json-uri.cpp +++ b/src/json-uri.cpp @@ -6,7 +6,7 @@ * SPDX-License-Identifier: MIT * */ -#include +#include "nlohmann/json-schema.hpp" #include diff --git a/src/json-validator.cpp b/src/json-validator.cpp index 0beb613..ff7959a 100644 --- a/src/json-validator.cpp +++ b/src/json-validator.cpp @@ -6,7 +6,7 @@ * SPDX-License-Identifier: MIT * */ -#include +#include "nlohmann/json-schema.hpp" #include "json-patch.hpp" diff --git a/src/string-format-check.cpp b/src/string-format-check.cpp index 98954d9..9430874 100644 --- a/src/string-format-check.cpp +++ b/src/string-format-check.cpp @@ -1,4 +1,4 @@ -#include +#include "nlohmann/json-schema.hpp" #include #include diff --git a/test/JSON-Schema-Test-Suite/json-schema-test.cpp b/test/JSON-Schema-Test-Suite/json-schema-test.cpp index deee4c8..10be5ec 100644 --- a/test/JSON-Schema-Test-Suite/json-schema-test.cpp +++ b/test/JSON-Schema-Test-Suite/json-schema-test.cpp @@ -6,7 +6,7 @@ * SPDX-License-Identifier: MIT * */ -#include +#include "nlohmann/json-schema.hpp" #include #include diff --git a/test/binary-validation.cpp b/test/binary-validation.cpp index 01392cf..46784d5 100644 --- a/test/binary-validation.cpp +++ b/test/binary-validation.cpp @@ -1,7 +1,7 @@ // bson-validate.cpp #include -#include +#include "nlohmann/json-schema.hpp" #include static int error_count = 0; diff --git a/test/errors.cpp b/test/errors.cpp index 91c025c..7115133 100644 --- a/test/errors.cpp +++ b/test/errors.cpp @@ -1,4 +1,4 @@ -#include +#include "nlohmann/json-schema.hpp" #include diff --git a/test/id-ref.cpp b/test/id-ref.cpp index de54a98..5723bb3 100644 --- a/test/id-ref.cpp +++ b/test/id-ref.cpp @@ -1,6 +1,6 @@ #include -#include +#include "nlohmann/json-schema.hpp" #include diff --git a/test/issue-149-entry-selection.cpp b/test/issue-149-entry-selection.cpp index c54c2c4..455286b 100644 --- a/test/issue-149-entry-selection.cpp +++ b/test/issue-149-entry-selection.cpp @@ -1,4 +1,4 @@ -#include +#include "nlohmann/json-schema.hpp" #include diff --git a/test/issue-25-default-values.cpp b/test/issue-25-default-values.cpp index 354acf3..6a686dc 100644 --- a/test/issue-25-default-values.cpp +++ b/test/issue-25-default-values.cpp @@ -1,5 +1,5 @@ #include -#include +#include "nlohmann/json-schema.hpp" using nlohmann::json; using nlohmann::json_schema::json_validator; diff --git a/test/issue-70-root-schema-constructor.cpp b/test/issue-70-root-schema-constructor.cpp index 7dad6a1..0d8f1db 100644 --- a/test/issue-70-root-schema-constructor.cpp +++ b/test/issue-70-root-schema-constructor.cpp @@ -1,4 +1,4 @@ -#include +#include "nlohmann/json-schema.hpp" #include diff --git a/test/issue-70.cpp b/test/issue-70.cpp index bfac0a5..e4ba3bc 100644 --- a/test/issue-70.cpp +++ b/test/issue-70.cpp @@ -1,4 +1,4 @@ -#include +#include "nlohmann/json-schema.hpp" using nlohmann::json; using nlohmann::json_schema::json_validator; diff --git a/test/issue-93/issue-93.cpp b/test/issue-93/issue-93.cpp index 87ba599..0515f9e 100644 --- a/test/issue-93/issue-93.cpp +++ b/test/issue-93/issue-93.cpp @@ -1,4 +1,4 @@ -#include +#include "nlohmann/json-schema.hpp" #include #include diff --git a/test/issue-98.cpp b/test/issue-98.cpp index 088b324..8fd26d0 100644 --- a/test/issue-98.cpp +++ b/test/issue-98.cpp @@ -1,4 +1,4 @@ -#include +#include "nlohmann/json-schema.hpp" int main(void) { diff --git a/test/string-format-check-test.cpp b/test/string-format-check-test.cpp index 2a5fb88..7055d79 100644 --- a/test/string-format-check-test.cpp +++ b/test/string-format-check-test.cpp @@ -1,6 +1,6 @@ #include -#include +#include "nlohmann/json-schema.hpp" /** @return number of failed tests */ size_t diff --git a/test/uri.cpp b/test/uri.cpp index 9083cd3..0b1f967 100644 --- a/test/uri.cpp +++ b/test/uri.cpp @@ -7,7 +7,7 @@ * */ #include -#include +#include "nlohmann/json-schema.hpp" #include