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 anyOf validation based on one of properties

I'm having difficulty figuring out how to validate an array of objects based on the value of one of the …

json validation jsonschema
JSON Schema away to specify an "any"-type schema with certain required fields

Let's say I have the following JSON Schema { "name":"Product", "type":"object", "properties":{ "id":{ "type":"number", "required":true }, "name":{ "description":"…

json jsonschema
JSON Schema - Recursive Schema Definition

I have a JSON Schema { 'description': 'TPNode', 'type': 'object', 'id': 'tp_node', 'properties': { 'selector': { 'type': 'string', 'required': true }, 'attributes': { 'type': …

json jsonschema
Flask: Decorator to verify JSON and JSON Schema

I have a flask application with calls expecting JSON payload. Before each call is processed, I have a 2-step error …

python flask decorator jsonschema python-decorators
How do you use the JSON Schema 'default' attribute in Json.NET?

If I have a JSON Schema that specifies a default value for a property, like { "type" : "object", "properties" : { "foo" : { "type" : "…

json.net default-value jsonschema
Use JSON.NET to generate JSON schema with extra attributes

I am using JSON.NET to generate JSON Schema from c# object class. But I was unable to add any …

c# json.net jsonschema
JSON Schema compared with XML Schema and their future

I was looking for JSON schema standards and their corresponding php implementations. Expecting some open source out there and I …

xml json xmpp jsonschema
Make sure item property in array is unique in Json Schema?

Given the following JSON schema, is it possible to indicate that the "name" property shall be unique (i.e. there …

json jsonschema
Decimal precision in JSON Schema

I want to have my JSON Schema validate that no more than two decimal places are sent to my REST …

json rest jsonschema
How do I validate a JSON Schema schema, in Python?

I am programmatically generating a JSON-Schema schema. I wish to ensure that the schema is valid. Is there a schema …

python jsonschema