JSON BinPack 0.0.1
A space-efficient open-source binary JSON serialization format based on JSON Schema with both schema-driven and schema-less support.
Loading...
Searching...
No Matches
compiler.h
1#ifndef SOURCEMETA_JSONBINPACK_COMPILER_H_
2#define SOURCEMETA_JSONBINPACK_COMPILER_H_
3
4#ifndef SOURCEMETA_JSONBINPACK_COMPILER_EXPORT
5#include <sourcemeta/jsonbinpack/compiler_export.h>
6#endif
7
16
17#include <sourcemeta/core/json.h>
18#include <sourcemeta/core/jsonschema.h>
19
20#include <string_view> // std::string_view
21
22namespace sourcemeta::jsonbinpack {
23
48SOURCEMETA_JSONBINPACK_COMPILER_EXPORT
49auto compile(sourcemeta::core::JSON &schema,
50 const sourcemeta::core::SchemaWalker &walker,
51 const sourcemeta::core::SchemaResolver &resolver,
52 std::string_view default_dialect = "") -> void;
53
80SOURCEMETA_JSONBINPACK_COMPILER_EXPORT
81auto canonicalize(sourcemeta::core::JSON &schema,
82 const sourcemeta::core::SchemaWalker &walker,
83 const sourcemeta::core::SchemaResolver &resolver,
84 std::string_view default_dialect = "") -> void;
85
86} // namespace sourcemeta::jsonbinpack
87
88#endif
SOURCEMETA_JSONBINPACK_COMPILER_EXPORT auto canonicalize(sourcemeta::core::JSON &schema, const sourcemeta::core::SchemaWalker &walker, const sourcemeta::core::SchemaResolver &resolver, std::string_view default_dialect="") -> void
SOURCEMETA_JSONBINPACK_COMPILER_EXPORT auto compile(sourcemeta::core::JSON &schema, const sourcemeta::core::SchemaWalker &walker, const sourcemeta::core::SchemaResolver &resolver, std::string_view default_dialect="") -> void