ajv-keywords
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -29,3 +29,3 @@ "use strict"; | ||
cxt.setParams({ schemaProp }); | ||
gen.elseIf(codegen_1._ `${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans | ||
gen.elseIf(codegen_1._ `"" + ${value} == ${schemaProp}`); // intentional ==, to match numbers and booleans | ||
const schCxt = cxt.subschema({ keyword: "selectCases", schemaProp }, schValid); | ||
@@ -32,0 +32,0 @@ cxt.mergeEvaluated(schCxt, codegen_1.Name); |
@@ -30,2 +30,4 @@ "use strict"; | ||
module.exports = ajvKeywords; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
module.exports.default = ajvKeywords; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "ajv-keywords", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Custom JSON-Schema keywords for Ajv validator", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -36,3 +36,3 @@ import type {KeywordDefinition, KeywordErrorDefinition, KeywordCxt, ErrorObject} from "ajv" | ||
cxt.setParams({schemaProp}) | ||
gen.elseIf(_`${value} == ${schemaProp}`) // intentional ==, to match numbers and booleans | ||
gen.elseIf(_`"" + ${value} == ${schemaProp}`) // intentional ==, to match numbers and booleans | ||
const schCxt = cxt.subschema({keyword: "selectCases", schemaProp}, schValid) | ||
@@ -39,0 +39,0 @@ cxt.mergeEvaluated(schCxt, Name) |
@@ -30,1 +30,4 @@ import type Ajv from "ajv" | ||
module.exports = ajvKeywords | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
module.exports.default = ajvKeywords |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
130915
1946