Skip to content

Commit

Permalink
fix: transform keyword toEnumCase, closes #83
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Feb 9, 2019
1 parent 1b6eebb commit f3a159b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keywords/transform.js
Expand Up @@ -30,7 +30,7 @@ module.exports = function defFunc (ajv) {
compile: function (schema, parentSchema) {
var cfg;

if (schema == 'toEnumCase') {
if (schema.indexOf('toEnumCase') !== -1) {
// build hash table to enum values
cfg = {hash: {}};

Expand Down

0 comments on commit f3a159b

Please sign in to comment.