Variables
advancedFilterSchema
advancedFilterSchema: any = require('./schemas/advancedFilter.json')
basicFilterSchema
basicFilterSchema: any = require('./schemas/basicFilter.json')
filterSchema
filterSchema: any = require('./schemas/filter.json')
loadSchema
loadSchema: any = require('./schemas/load.json')
pageSchema
pageSchema: any = require('./schemas/page.json')
require
require: Function
settingsSchema
settingsSchema: any = require('./schemas/settings.json')
validateFilter
validateFilter: (Anonymous function) = validate(filterSchema, {schemas: {basicFilter: basicFilterSchema,advancedFilter: advancedFilterSchema}})
validateLoad
validateLoad: (Anonymous function) = validate(loadSchema, {schemas: {settings: settingsSchema,basicFilter: basicFilterSchema,advancedFilter: advancedFilterSchema}})
validatePage
validatePage: (Anonymous function) = validate(pageSchema)
validateSettings
validateSettings: (Anonymous function) = validate(settingsSchema, {schemas: {basicFilter: basicFilterSchema,advancedFilter: advancedFilterSchema}})
Takes in schema and returns function which can be used to validate the schema with better semantics around exposing errors