json-schema
json-schema copied to clipboard
Ruby JSON Schema Validator
We've had a bug for a while where strict validation didn't work for draft1 and draft2 schemas. Strict validation should raise errors if there are properties in the data that...
Right now, we cache schemas, and the key we use to cache them is either the URL we got them from, or if there's no URL, we generate a UUID...
I want to resurrect #206 , which removed support for alternative JSON backends. I believe that rather than putting this off to a version 3.0 release which will probably never...
This refactors some of `Validator` to fix an issue with validating a fragment of an extended schema against a json object. The problem is that while navigating through the schema,...
I'd like to enable [HoundCI](https://houndci.com/) for json-schema. It works using [rubocop](https://github.com/bbatsov/rubocop) to warn of style violations on pull requests. Before we can do that, we need to establish a rubocop...
Currently the Validator class requires data be passed into the constructor, though it doesn't do anything important with it then. In my case, I'm validating in a server and I...
This introduces a few refactors and changes which fixes handling of what validates as a valid Draft 4 schema: ``` { "id": "#/example", "type": "integer", "oneOf": [ {"$ref": "#/definitions/foo"}, {"$ref":...
With Rails 5 `ActionController::Parameters` no longer inherits from `Hash`. Using the controller `params` with json-schema therefore results in the validations always returning `true` Example: ```ruby Test [11] > schema =...
If a JSON structure contains a string with a unicode null \u0000 escape then the validation fails: `{"error":{"code":"ValidationErrors","message":"Mismatched request accept header value: \u0000","reference":"lECClIZKlQtLiw2DeIKCvYOlRty8WD28"}}`
Sounds related to https://github.com/ruby-json-schema/json-schema/issues/369 or https://github.com/ruby-json-schema/json-schema/issues/404 According to [the docs](https://github.com/ruby-json-schema/json-schema#advanced-options): ``` # # with the `:strict` option, all properties are condsidered to have `"required": true` and all objects `"additionalProperties": false`...