1#ifndef SOURCEMETA_CORE_JSONSCHEMA_DEPENDENCIES_H_
2#define SOURCEMETA_CORE_JSONSCHEMA_DEPENDENCIES_H_
4#ifndef SOURCEMETA_CORE_JSONSCHEMA_EXPORT
5#include <sourcemeta/core/jsonschema_export.h>
8#include <sourcemeta/core/json.h>
9#include <sourcemeta/core/jsonpointer.h>
11#include <sourcemeta/core/jsonschema_frame.h>
12#include <sourcemeta/core/jsonschema_types.h>
19namespace sourcemeta::core {
184SOURCEMETA_CORE_JSONSCHEMA_EXPORT
const WeakPointer EMPTY_WEAK_POINTER
Definition jsonpointer.h:56
GenericPointer< std::reference_wrapper< const std::string >, PropertyHashJSON< JSON::String > > WeakPointer
Definition jsonpointer.h:46
std::vector< sourcemeta::core::WeakPointer > Paths
A list of paths to frame within a schema wrapper.
Definition jsonschema_frame.h:164
std::string_view default_id
Definition jsonschema_dependencies.h:71
UnresolvedCallback unresolved
Definition jsonschema_dependencies.h:113
std::string_view default_base
Definition jsonschema_dependencies.h:83
std::function< void(const SchemaDependency &)> UnresolvedCallback
A callback to report every reference that nothing came to answer for.
Definition jsonschema_dependencies.h:63
AccountedPredicate accounted
Definition jsonschema_dependencies.h:104
std::string_view default_dialect
The dialect to assume for a schema that declares none.
Definition jsonschema_dependencies.h:66
std::uint64_t max_locations
Definition jsonschema_dependencies.h:94
const sourcemeta::core::JSON * document
Definition jsonschema_dependencies.h:44
AccountedCallback accounted_callback
Definition jsonschema_dependencies.h:120
std::string_view destination
The identifier of the document that the reference leads to.
Definition jsonschema_dependencies.h:38
std::string_view origin
Definition jsonschema_dependencies.h:34
std::function< void(std::string_view)> AccountedCallback
A callback to report every URI that analysis comes to account for.
Definition jsonschema_dependencies.h:61
std::function< bool(std::string_view)> AccountedPredicate
A predicate to ask whether the caller already accounts for a URI.
Definition jsonschema_dependencies.h:59
SchemaFrame::Paths paths
Definition jsonschema_dependencies.h:78
std::function< void(const SchemaDependency &)> SchemaDependencyCallback
Definition jsonschema_dependencies.h:49
SOURCEMETA_CORE_JSONSCHEMA_EXPORT auto schema_dependencies(const sourcemeta::core::JSON &schema, const SchemaWalker &walker, const SchemaResolver &resolver, const SchemaDependencyCallback &callback, const SchemaDependenciesOptions &options={}) -> std::uint64_t
std::function< SchemaResolverResult(std::string_view)> SchemaResolver
Definition jsonschema_types.h:41
std::function< const SchemaWalkerResult &( std::string_view, const SchemaVocabularies &)> SchemaWalker
Definition jsonschema_types.h:254