Skip to content

Commit e372606

Browse files
authored
chore: fix spelling (#56)
1 parent fe11b2f commit e372606

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Running the tests:
3131

3232
The project references the pcre regular library.
3333

34-
If you were using the LuaJIT of OpenResty, it will use the built-in `ngx.re.find` automaticly.
34+
If you were using the LuaJIT of OpenResty, it will use the built-in `ngx.re.find` automatically.
3535
But if you are using Lua 5.2, 5.3 or LuaJIT 2.1 beta, you will need to install `lrexlib-pcre`.
3636

3737
In addition, the project also relies on the `net_url` library, which you need to install anyway.

lib/jsonschema.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ generate_validator = function(ctx, schema)
944944
end
945945

946946
-- enum values
947-
-- TODO: for big sets of hashable values (> 16 or so), it might be intersing to create a
947+
-- TODO: for big sets of hashable values (> 16 or so), it might be interesting to create a
948948
-- table beforehand
949949
if schema.enum then
950950
ctx:stmt('if not (')

lib/jsonschema/store.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- This module is a store for all schemas unsed in a code context.
1+
-- This module is a store for all schemas unused in a code context.
22
-- It is meant to deal with the id and $ref madness that JSON schema authors
33
-- managed to put together. Resolving JSON references involves full URI
44
-- parsing, absolute/relative URLs, scope management, id aliases, multipass
@@ -213,7 +213,7 @@ function store_mt:insert(schema)
213213
map[id.fragment] = self:ref(s)
214214
else
215215
-- relative url (case 2)
216-
-- FIXME: I'm sure it's broken bacasue resolution scopes could be
216+
-- FIXME: I'm sure it's broken because resolution scopes could be
217217
-- nested... but at the same time, who the hell would do this and it
218218
-- passes the tests so ¯\_(ツ)_/¯
219219
local resolved = base_id:resolve(id)
@@ -244,7 +244,7 @@ end
244244

245245
local function new(schema, resolver)
246246
local self = setmetatable({
247-
ctx_store = {}, -- used to store metadata aobut schema parts
247+
ctx_store = {}, -- used to store metadata about schema parts
248248
schemas = {},
249249
resolver = resolver or default_resolver,
250250
}, store_mt)

spec/extra/format.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"schema": {"format": "hostname"},
103103
"tests": [
104104
{
105-
"description": "invalid hostname, invalid charator",
105+
"description": "invalid hostname, invalid character",
106106
"data": "local host",
107107
"valid": false
108108
}

spec/extra/table.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"valid": true
4848
},
4949
{
50-
"description": "additional proprty",
50+
"description": "additional property",
5151
"data": { "foo": 42, "bar": false },
5252
"valid": false
5353
},
@@ -57,7 +57,7 @@
5757
"valid": false
5858
},
5959
{
60-
"description": "mising property",
60+
"description": "missing property",
6161
"data": { },
6262
"valid": false
6363
}

t/draft4.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ local blacklist = {
3030
['ignores arrays'] = true
3131
},
3232
['exclusiveMinimum validation'] = {
33-
-- droped in jsonschema draft6
33+
-- dropped in jsonschema draft6
3434
['above the minimum is still valid'] = true,
3535
['boundary point is invalid'] = true,
3636
},

0 commit comments

Comments
 (0)