valijson/1.0.2

Valijson is a header-only JSON Schema Validation library for C++11.
Recipe info
2023-12-15

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
valijson/1.0.2

Using valijson

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
valijson/1.0.2
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("valijson/1.0.2")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): valijson
  • CMake target name(s): ValiJSON::valijson
  • libvalijson => ValiJSON::valijson
    
  • pkg-config file name(s): valijson.pc
  • libvalijson => valijson-libvalijson.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(valijson REQUIRED)
# ...
target_link_libraries(YOUR_TARGET ValiJSON::valijson)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the valijson homepage listed above:

#include "compat/optional.hpp"
#include "valijson/adapters/boost_json_adapter.hpp"
#include "valijson/adapters/json11_adapter.hpp"
#include "valijson/adapters/jsoncpp_adapter.hpp"
#include "valijson/adapters/nlohmann_json_adapter.hpp"
#include "valijson/adapters/picojson_adapter.hpp"
#include "valijson/adapters/poco_json_adapter.hpp"
#include "valijson/adapters/property_tree_adapter.hpp"
#include "valijson/adapters/qtjson_adapter.hpp"
#include "valijson/adapters/rapidjson_adapter.hpp"
#include "valijson/adapters/std_string_adapter.hpp"
#include "valijson/adapters/yaml_cpp_adapter.hpp"
#include "valijson/constraint_builder.hpp"
#include "valijson/constraints/basic_constraint.hpp"
#include "valijson/constraints/concrete_constraints.hpp"
#include "valijson/constraints/constraint.hpp"
#include "valijson/constraints/constraint_visitor.hpp"
#include "valijson/exceptions.hpp"
#include "valijson/internal/adapter.hpp"
#include "valijson/internal/basic_adapter.hpp"
#include "valijson/internal/custom_allocator.hpp"
#include "valijson/internal/debug.hpp"
#include "valijson/internal/frozen_value.hpp"
#include "valijson/internal/json_pointer.hpp"
#include "valijson/internal/json_reference.hpp"
#include "valijson/internal/optional.hpp"
#include "valijson/internal/optional_bundled.hpp"
#include "valijson/internal/uri.hpp"
#include "valijson/schema.hpp"
#include "valijson/schema_parser.hpp"
#include "valijson/subschema.hpp"
#include "valijson/utils/boost_json_utils.hpp"
#include "valijson/utils/file_utils.hpp"
#include "valijson/utils/json11_utils.hpp"
#include "valijson/utils/jsoncpp_utils.hpp"
#include "valijson/utils/nlohmann_json_utils.hpp"
#include "valijson/utils/picojson_utils.hpp"
#include "valijson/utils/poco_json_utils.hpp"
#include "valijson/utils/property_tree_utils.hpp"
#include "valijson/utils/qtjson_utils.hpp"
#include "valijson/utils/rapidjson_utils.hpp"
#include "valijson/utils/utf8_utils.hpp"
#include "valijson/utils/yaml_cpp_utils.hpp"
#include "valijson/validation_results.hpp"
#include "valijson/validation_visitor.hpp"
#include "valijson/validator.hpp"