We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed494f commit ab27c92Copy full SHA for ab27c92
index.js
@@ -846,13 +846,6 @@ function buildValue (location, input) {
846
code += `
847
json += JSON.stringify(${input})
848
`
849
- } else if ('const' in schema) {
850
- code += `
851
- if(validator.validate(${JSON.stringify(schema)}, ${input}))
852
- json += '${JSON.stringify(schema.const)}'
853
- else
854
- throw new Error(\`Item $\{JSON.stringify(${input})} does not match schema definition.\`)
855
- `
856
} else {
857
858
0 commit comments