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).

How do I validate incoming JSON data inside a REST service?

A rest service needs to validate all incoming json data against a json schema. The json schemas are public accessible …

java json validation rest jsonschema
How do I require one field or another or (one of two others) but not all of them?

I am having trouble coming up with a JSON schema that will validate if the JSON contains either: one field …

json validation jsonschema
Validating JSON against Swagger API schema

I created an API spec from some JSON files and I am trying to test if the files validate against …

json swagger swagger-ui jsonschema swagger-editor
What is the difference between "required" vs "optional" in JSON Schema

Sometimes, I noticed the following JSON Schemas: { "type": "object", "properties": { "address": { "type": "string", "required": true } } } vs { "type": "object", "properties": { "address": { "…

json jsonschema
Using RegEx in JSON Schema

Trying to write a JSON schema that uses RegEx to validate a value of an item. Have an item named …

regex json schema jsonschema
Correct JSON Schema for an array of items of different type

I have an unordered array of JSON items. According to the specification http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5 the …

json validation jsonschema
specify a value can be a string or null with json schema

Hopefully this isn't obvious to others because I find the docs at http://json-schema.org/ to be lacking in finer …

c# .net json json.net jsonschema
setting required on a json-schema array

I am trying to figure out how to set required on my json-schema array of objects. The required property works …

json jsonschema
Validate JSON against JSON Schema C#

Is there a way to validate a JSON structure against a JSON schema for that structure? I have looked and …

c# json validation jsonschema
Generate Avro Schema from certain Java Object

Apache Avro provides a compact, fast, binary data format, rich data structure for serialization. However, it requires user to define …

java serialization avro jsonschema