const fjs = require('fast-json-stringify')
const x = fjs({
type: 'object',
properties: {
kind: { enum: ['foobar'] } // if we remove `type` we should not crash an leave all the feature as is now
}
})
console.log(x({ kind: 'hello' })) // works
console.log(x({ kind: 'foobar' })) // works as expected
Created from: https://npm.runkit.com/fast-json-stringify