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

Understanding the "additionalProperties" keyword in JSON Schema draft version 4

Link to the specification: http://json-schema.org/latest/json-schema-validation.html#anchor64 Section 5.4.4.2 states: Successful validation of an object instance against …

json validation specifications jsonschema
Should a RESTful API have a schema?

I was told recently that a proper RESTful API should define a schema for the resources representations it accepts and …

rest xsd schema jsonschema
JSON schema validation with PHP

Is there any PHP library that validates a JSON object against a JSON Schema?

php json validation jsonschema
Convert JSON to JSON Schema draft 4 compatible with Swagger 2.0

I've been given some JSON files generated by a REST API with plenty of properties. I've created a Swagger 2.0 definition …

json swagger jsonschema swagger-2.0
How to manage multiple JSON schema files?

I'm trying to validate my JSON API using node.js + json-schema.js from commonjs-utils. Just single validation was easy but …

json node.js schema jsonschema
JSON schema : "allof" with "additionalProperties"

Suppose we have schema following schema (from tutorial here): { "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "address": { "type": "object", "properties": { "…

javascript json jsonschema
Only allow properties that are declared in JSON schema

I am using json-schema and wanting to only allow properties that are declared in this file to pass validation. For …

json jsonschema
How to define UUID property in JSON Schema and Open API (OAS)

When using JSON Schema and Open API specification (OAS) to document a REST API, how do I define the UUID …

jsonschema openapi
How do I use the `If` `then` `else` condition in json schema?

A relatively new addition to JSON Schema (draft-07) adds the if, then and else keywords. I cannot work out how …

jsonschema
Referencing a local relative file in a JSON Schema?

I am building a JSON for a REST web service. The schema however has grown to over 1300 lines and I …

java json jsonschema json-schema-validator