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 8997bf1 commit 90d662bCopy full SHA for 90d662b
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 if (schema.type === undefined) {
857
858
0 commit comments