@hyperjump/json-schema
Version:
A JSON Schema validator with support for custom keywords, vocabularies, and dialects
13 lines (10 loc) • 389 B
JavaScript
let metaSchemaOutputFormat;
let shouldValidateSchema = true;
export const getMetaSchemaOutputFormat = () => metaSchemaOutputFormat;
export const setMetaSchemaOutputFormat = (format) => {
metaSchemaOutputFormat = format;
};
export const getShouldValidateSchema = () => shouldValidateSchema;
export const setShouldValidateSchema = (isEnabled) => {
shouldValidateSchema = isEnabled;
};