Skip to content

Commit 5f26f21

Browse files
spacewandermembphis
authored andcommitted
chore: fixed typo detected by misspell
1 parent 127632a commit 5f26f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jsonschema.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,14 +862,14 @@ generate_validator = function(ctx, schema)
862862
local validator = ctx:validator({ 'oneOf', tostring(i-1) }, subschema)
863863
ctx:stmt(sformat(' if %s(%s) then', validator, ctx:param(1)))
864864
ctx:stmt( ' if matched then')
865-
ctx:stmt(sformat(' return false, %s("value sould match only one schema, but matches both schemas %%d and %%d", matched, %d)',
865+
ctx:stmt(sformat(' return false, %s("value should match only one schema, but matches both schemas %%d and %%d", matched, %d)',
866866
ctx:libfunc('string.format'), i))
867867
ctx:stmt( ' end')
868868
ctx:stmt( ' matched = ', tostring(i))
869869
ctx:stmt( ' end')
870870
end
871871
ctx:stmt(' if not matched then')
872-
ctx:stmt(' return false, "value sould match only one schema, but matches none"')
872+
ctx:stmt(' return false, "value should match only one schema, but matches none"')
873873
ctx:stmt(' end')
874874
ctx:stmt('end')
875875
end

0 commit comments

Comments
 (0)