From e7056d71ff6e2fda2f4019b849d9319c84bbb156 Mon Sep 17 00:00:00 2001 From: yiyiyimu Date: Fri, 5 Feb 2021 10:35:41 +0800 Subject: [PATCH] fix: typo Signed-off-by: yiyiyimu --- 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