Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@ local v = jsonschema.generate_validator(schema, {
-- defaults to `cjson.null` (if available) or `nil`
null = null_token,

-- function called to match patterns, defaults to string.find.
-- The JSON schema specification mentions that the validator should obey
-- the ECMA-262 specification but Lua pattern matching library is much more
-- primitive than that. Users might want to use PCRE or other more powerful
-- libraries here
-- function called to match patterns, defaults to `ngx.re.find` in OpenResty
-- or `rex.find` from lrexlib-pcre on other occassions.
-- The pattern given here will obey the ECMA-262 specification.
match_pattern = function(string, patt)
return ... -- boolean value
end,
Expand Down