From 00f315c31f03ec3e274d6789b36ea1e92d54c481 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Mon, 29 Aug 2016 22:42:16 +0100 Subject: [PATCH] feat: allowedValues param in "enum" keyword error, closes #282 --- lib/dot/errors.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dot/errors.def b/lib/dot/errors.def index 55396f9f9..49d705910 100644 --- a/lib/dot/errors.def +++ b/lib/dot/errors.def @@ -161,7 +161,7 @@ additionalProperties: "{ additionalProperty: '{{=$additionalProperty}}' }", anyOf: "{}", dependencies: "{ property: '{{= it.util.escapeQuotes($property) }}', missingProperty: '{{=$missingProperty}}', depsCount: {{=$deps.length}}, deps: '{{= it.util.escapeQuotes($deps.length==1 ? $deps[0] : $deps.join(\", \")) }}' }", - 'enum': "{}", + 'enum': "{ allowedValues: schema{{=$lvl}} }", format: "{ format: {{#def.schemaValueQS}} }", _limit: "{ comparison: {{=$opExpr}}, limit: {{=$schemaValue}}, exclusive: {{=$exclusive}} }", _exclusiveLimit: "{}",