diff options
| author | Ankush Singh <11595119+thewisebro@users.noreply.github.com> | 2020-06-11 12:51:27 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-11 00:21:27 -0700 |
| commit | 31aea2572884a9faed9eea443233261c1130c74f (patch) | |
| tree | 1e3905dce262eec98e36b200e241f667cc4921b3 /ports/json-schema-validator/fix-ambiguous-assignment.patch | |
| parent | 9c0893e04db383e87617b8119659a734e6398149 (diff) | |
| download | vcpkg-31aea2572884a9faed9eea443233261c1130c74f.tar.gz vcpkg-31aea2572884a9faed9eea443233261c1130c74f.zip | |
[json-schema-validator] Add new port (#11599)
* [json-schema-validator] Add new port
* [json-schema-validator] Fix string ambiguous assignment error
* [json-schema-validator] Remove redundant part from patch's path
* [json-schema-validator] Forward find_package() for nlohmann_json
* [json-schema-validator] comment out lines from source's CMakeLists.txt
* [json-schema-validator] Improve portfile.cmake and regenerate patch
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Diffstat (limited to 'ports/json-schema-validator/fix-ambiguous-assignment.patch')
| -rw-r--r-- | ports/json-schema-validator/fix-ambiguous-assignment.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/json-schema-validator/fix-ambiguous-assignment.patch b/ports/json-schema-validator/fix-ambiguous-assignment.patch new file mode 100644 index 000000000..3e655b485 --- /dev/null +++ b/ports/json-schema-validator/fix-ambiguous-assignment.patch @@ -0,0 +1,13 @@ +diff --git a/src/json-validator.cpp b/src/json-validator.cpp +index f16f3ef..1f7b615 100644 +--- a/src/json-validator.cpp ++++ b/src/json-validator.cpp +@@ -663,7 +663,7 @@ public: + #ifndef NO_STD_REGEX + attr = sch.find("pattern"); + if (attr != sch.end()) { +- patternString_ = attr.value(); ++ patternString_ = attr.value().get<std::string>(); + pattern_ = {true, REGEX_NAMESPACE::regex(attr.value().get<std::string>(), + REGEX_NAMESPACE::regex::ECMAScript)}; + sch.erase(attr); |
