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

What is the difference between "anyof" and "oneof" in z schema?

Its looking like both works fine with my input validation code. Then what is the exact difference? Schema with oneof [{ "…

json validation jsonschema json-schema-validator
How do I configure VS Code to enable code completion on .json files (jsonschema support)?

In the Visual Stuido Code demo minute 28:57-29:20 and 30:20-31:10, some cool JSON code completion is shown. Where and how …

json jsonschema visual-studio-code
JSON schema to enforce array contents

Hi all and thanks in advance. I am attempting to create a JSON schema to enforce an array to contain …

arrays json validation schema jsonschema
How to set up local file references in python-jsonschema document?

I have a set of jsonschema compliant documents. Some documents contain references to other documents (via the $ref attribute). I …

python json jsonschema python-jsonschema
Converting from jsonschema to swagger 2.0

New to swagger and would like to know if there is a way to convert and existing jsonschema model to …

jsonschema swagger-2.0
Is JSON validation a best practice?

Is it a best practice to validate JSON? With both a JSON schema proposal and a JavaScript implementation of a …

json validation schema jsonschema
JSON schema for dynamic properties

i have an object in which the "key" of the property will be set dynamically... what is the right way …

json properties schema jsonschema
json-schema: how to transform from one json-schema to another

I have the two different json-schemas: schemaA -> A calendar as defined at http://json-schema.org/calendar { "$schema": "http://…

javascript templates jsonschema json-ld
'$id' property usage in JSON Schema

I'm using JSON Schema for validating data. I think that I may have a mistake on my schema by using …

json jsonschema json-schema-validator
How to extend a schema in JSON schema?

I'm using JSON schema for data modelling. I define a base Document schema, that I later use to define model …

json schema jsonschema