Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 6x 6x 6x 6x 6x 6x | const Ajv = require('ajv').default; const ajv = new Ajv({ allErrors: true }); require('ajv-formats')(ajv); require('ajv-errors')(ajv /* , {singleError: true} */); const schemas = require('@molfar/msapi-schemas'); module.exports = { consumer: { schema: schemas.consumeStrict.json, validate: ajv.compile(schemas.consumeStrict.json), }, publisher: { schema: schemas.produceStrict.json, validate: ajv.compile(schemas.produceStrict.json), }, connection: { schema: schemas.connectionStrict.json, validate: ajv.compile(schemas.connectionStrict.json), }, }; |