json-schema
json-schema copied to clipboard
Ruby JSON Schema Validator
Fix for issue #472
I found this while working through more of the common test suite failures. The `draft4/optional/format.json` test currently pauses during a URI validation test because it's trying to make a request...
There's a bug where if you pass a string as data and it looks like a URI, we try to parse it and load the data from that location. However,...
It seems that in version 4.1.1, `JSON::Validator#validation_errors` always returns `[]`. I think it's due to the `@errors` attribute being reset during validation: https://github.com/voxpupuli/json-schema/blob/76ea712a7fb444b738abbdc35295a6ccbd8d69e4/lib/json-schema/validator.rb#L126 . To reproduce: ```ruby schema = {...
@ruby-json-schema/owners I have a lot of ideas for refactoring, modernising and slimlining the json-schema gem, as well as adding support for draft 6, 7 and eventually 8. However, I know...
Hey! It would be awesome to also add the `unevaluatedProperties` attribute. Although it is quite similar to the `additionalProperties` one, it has the advantage that works with `oneOf` or `anyOf`,...
Hello, I have written a JSON Schema for a project and currently is failing to validate stating that property (`input_arguments`) basically should be present but it is not required. ###...
Hi everyone, Given: ``` schema = { properties: { prop_1: { type: 'string' }, prop_2: { type: 'string' } }, additionalProperties: false } ``` I want the below to be...
I'm using ruby 2.7.1 and rails 6.1 When validating the following json against the following schema, JSON::Validator.validate throws TypeError exception class/object JSON: `[ { "name": "enable_customer_membership", "value": null }, {...
Both ruby version are EoL. We already merged a breaking change to master, so I think it's good to drop those old ruby versions.