UNPKG

@hyperjump/json-schema

Version:

A JSON Schema validator with support for custom keywords, vocabularies, and dialects

18 lines (15 loc) 577 B
let metaSchemaOutputFormat; export const getMetaSchemaOutputFormat = () => metaSchemaOutputFormat; export const setMetaSchemaOutputFormat = (format) => { metaSchemaOutputFormat = format; }; let shouldValidateSchema = true; export const getShouldValidateSchema = () => shouldValidateSchema; export const setShouldValidateSchema = (isEnabled) => { shouldValidateSchema = isEnabled; }; let shouldValidateFormat; export const getShouldValidateFormat = () => shouldValidateFormat; export const setShouldValidateFormat = (isEnabled) => { shouldValidateFormat = isEnabled; };