json-schema
json-schema copied to clipboard
Ruby JSON Schema Validator
It would be awesome to leverage this gem to skip altogether the params permissions in the controller Today we can almost do so if our API doesn't allow additional properties....
The [json-schema docs](https://json-schema.org/understanding-json-schema/reference/string.html#format) suggest that a `format` keyword can be used to validate a string against different standard formats. I was wondering if this project supports either the `uri` or...
I understand the reasoning behind `:fragment => "#/"` for a required property that is missing from the root object. But I really needed to know *which* required property is missing,...
Hi! Ruby 3.0 has removed support for `URI.open` via `Kernel#open`, making these lines fail: - [reader.rb#L121](https://github.com/ruby-json-schema/json-schema/blob/v2.8.1/lib/json-schema/schema/reader.rb#L121) - [validator.rb#L596](https://github.com/ruby-json-schema/json-schema/blob/v2.8.1/lib/json-schema/validator.rb#L596) I was going to open a PR to change those lines but...
I have a schema definition that did not specify a schema uri such as `"$schema" => "http://json-schema.org/draft-04/schema#"` I created a custom format validation according to the example readme file and...
Hi ! Thanks for your awesome work. I would like to use your validator to "clean" my input compared to the JSON schema. Thing is, for what I see, `JSON::Validator.validate`...
We are intermittently receiving the following error: `JSON::Schema::SchemaError:#012 The fragment '/definitions/' does not exist on schema file:.json#` The schema file has the definitions section in question, and it is being...
Hi, Experiencing a strange issue with cached schema from file paths. If I have the following block of code: ``` json = '[{ "foo": "bar" }]' schema = "schema.json" options...
I am writing a Schema validator that can run on Linux (and Mac) and Windows platforms and I noticed something strange with the Schema Reader. When I attempted to read...
I've encountered a few problems dealing with fragments that this PR addresses: - traversing the pointer through the document tries to instantiate the value as a json schema at every...