From 5d7a6c5c4c7b41858b5fbb51b4c4c97005f3eed4 Mon Sep 17 00:00:00 2001 From: Dominic Reber Date: Wed, 13 Dec 2023 15:48:55 +0100 Subject: [PATCH 1/2] Fix isString() method in yaml_cpp_adapter --- include/valijson/adapters/yaml_cpp_adapter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/valijson/adapters/yaml_cpp_adapter.hpp b/include/valijson/adapters/yaml_cpp_adapter.hpp index 362d471..9065fbc 100644 --- a/include/valijson/adapters/yaml_cpp_adapter.hpp +++ b/include/valijson/adapters/yaml_cpp_adapter.hpp @@ -433,7 +433,7 @@ class YamlCppValue bool isString() const { - return true; + return m_value.isScalar(); } private: From afc92d5428ca24de7ff49ceeb9b8edc6b946ea3a Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Fri, 15 Dec 2023 10:54:41 +1100 Subject: [PATCH 2/2] Change isString to IsString --- include/valijson/adapters/yaml_cpp_adapter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/valijson/adapters/yaml_cpp_adapter.hpp b/include/valijson/adapters/yaml_cpp_adapter.hpp index 9065fbc..206e7b3 100644 --- a/include/valijson/adapters/yaml_cpp_adapter.hpp +++ b/include/valijson/adapters/yaml_cpp_adapter.hpp @@ -433,7 +433,7 @@ class YamlCppValue bool isString() const { - return m_value.isScalar(); + return m_value.IsScalar(); } private: