From 708d2a1a05f0ce748ab8cc636e31c4fba4e96be9 Mon Sep 17 00:00:00 2001 From: Bobin Mathew Date: Wed, 13 Jan 2021 15:31:23 +0530 Subject: [PATCH] Update jsonschema.lua --- lib/jsonschema.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jsonschema.lua b/lib/jsonschema.lua index d76e9b4..f3dffb4 100644 --- a/lib/jsonschema.lua +++ b/lib/jsonschema.lua @@ -907,7 +907,7 @@ generate_validator = function(ctx, schema) if schema.exclusiveMinimum then ctx:stmt(sformat(' if %s %s %s then', ctx:param(1), "<=", schema.exclusiveMinimum)) ctx:stmt(sformat(' return false, %s("expected %%s to be %s than %s", %s)', - ctx:libfunc('string.format'), 'sctrictly greater', schema.exclusiveMinimum, ctx:param(1))) + ctx:libfunc('string.format'), 'strictly greater', schema.exclusiveMinimum, ctx:param(1))) ctx:stmt( ' end') end @@ -921,7 +921,7 @@ generate_validator = function(ctx, schema) if schema.exclusiveMaximum then ctx:stmt(sformat(' if %s %s %s then', ctx:param(1), ">=", schema.exclusiveMaximum)) ctx:stmt(sformat(' return false, %s("expected %%s to be %s than %s", %s)', - ctx:libfunc('string.format'), 'sctrictly smaller', schema.exclusiveMaximum, ctx:param(1))) + ctx:libfunc('string.format'), 'strictly smaller', schema.exclusiveMaximum, ctx:param(1))) ctx:stmt( ' end') end