We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently it always returns true.
I cannot help out with this right now, this issue is to document the shortcoming so other users are aware.
The text was updated successfully, but these errors were encountered:
please provide a mini example, we need it to confirm this issue
Sorry, something went wrong.
Example LUA code:
local schema = { type = 'object', propertyNames = { minLength = 4 }, } local model = { Foo = true } local options = {match_pattern=function () return true end, name="Test"} local validator = JsonSchema.generate_validator(schema, options) local isValid, errorStr = validator(model) print(isValid, errorStr)
Expected output: false property name too short Observed output: true nil
When using online validators, I receive the expected output with the following input.
JSON schema:
{ "type": "object", "propertyNames": { "minLength": 4 } }
JSON model:
{ "Foo": true }
@ypnos that is a todo feature, take a look at:
jsonschema/t/draft6.lua
Line 32 in f8d2f40
jsonschema/t/draft7.lua
Line 32 in 09dc6ed
welcome PR to fix it
No branches or pull requests
Currently it always returns true.
I cannot help out with this right now, this issue is to document the shortcoming so other users are aware.
The text was updated successfully, but these errors were encountered: