Skip to content

Commit fe11b2f

Browse files
authored
fix: typo (#53)
fix #51 replace #52
1 parent b937564 commit fe11b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jsonschema.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ generate_validator = function(ctx, schema)
907907
if schema.exclusiveMinimum then
908908
ctx:stmt(sformat(' if %s %s %s then', ctx:param(1), "<=", schema.exclusiveMinimum))
909909
ctx:stmt(sformat(' return false, %s("expected %%s to be %s than %s", %s)',
910-
ctx:libfunc('string.format'), 'sctrictly greater', schema.exclusiveMinimum, ctx:param(1)))
910+
ctx:libfunc('string.format'), 'strictly greater', schema.exclusiveMinimum, ctx:param(1)))
911911
ctx:stmt( ' end')
912912
end
913913

@@ -921,7 +921,7 @@ generate_validator = function(ctx, schema)
921921
if schema.exclusiveMaximum then
922922
ctx:stmt(sformat(' if %s %s %s then', ctx:param(1), ">=", schema.exclusiveMaximum))
923923
ctx:stmt(sformat(' return false, %s("expected %%s to be %s than %s", %s)',
924-
ctx:libfunc('string.format'), 'sctrictly smaller', schema.exclusiveMaximum, ctx:param(1)))
924+
ctx:libfunc('string.format'), 'strictly smaller', schema.exclusiveMaximum, ctx:param(1)))
925925
ctx:stmt( ' end')
926926
end
927927

0 commit comments

Comments
 (0)