Top "Jsonschema" questions

A JSON Schema is a JSON document (an object) which defines constraints on what other JSON documents (the instances) should obey; it can also be used to interpret instances so as to provide links to external resources (hyper schema).

JSon schema and Inheritance

I have searched on json schema with java bindings with inheritance and all searches led me to the usage of "…

java json inheritance binding jsonschema
JSON schema - valid if object does *not* contain a particular property

Is it possible to set up a JSON schema that still allows for additionalProperties but does not match if a …

json jsonschema
Why is this json schema invalid? using "any" type

{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "my json api", "description": "my json api", "type": "object", "properties": { "my_api_response": { "…

jsonschema
JSON schema $ref does not work for relative path

I have 3 schemas: child schema: { "title": "child_schema", "type": "object", "properties": { "wyx":{ "type": "number" } }, "additionalProperties": false, "required": ["wyx"] } parent schema: { "…

json jsonschema json-schema-validator
Dictionary-like JSON schema

I have a json object that can contain any number of nested objects with certain specification, for example: { "Bob": { "age": "42", "…

json dictionary jsonschema
How would you design JSON Schema for an arbitrary key?

I have the following JSON output data: { "label_name_0" : 0, "label_name_5" : 3, . . . "label_name_XXX" : 4 } The output is simple: a key[1] …

json jsonschema
Json schema dynamic key validation

Facing an issue with schema validation. schema : { "type": "object", "$schema": "http://json-schema.org/draft-03/schema", "id": "#", "required": true, "patternProperties": { "^[A-Z0…

jsonschema json-schema-validator
JSON Schema v4 "required" in nested object

I tried searching, but I'm not quite sure how to put this in words! The point of confusion is how "…

json jsonschema
JSON schema validation with arbitrary keys

I am using validictory for validating the attached JSON data and schema. Working so far. However the data dictionary can …

python validation jsonschema
How to tell JSON schema validator to pick schema from property value?

For example a schema for a file system, directory contains a list of files. The schema consists of the specification …

json inheritance jsonschema