JSON Schema: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://tools.ietf.org/html/draft-wright-json-schema-00 =Internal= * JSON Concepts =Overview=")
 
Line 8: Line 8:


=Overview=
=Overview=
JSON Schema is a vocabulary that allows to annotate and validate JSON documents. The schema describes the data format, and provides complete structural validation. Example:
<syntaxhighlight lang='json'>
{
  "description":"A customer",
  "type":"object",
  "properties":
  {
      "first": {"type": "string"},
      "last" : {"type" : "string"}
  }
}
</syntaxhighlight>

Revision as of 18:28, 27 February 2019

External

Internal

Overview

JSON Schema is a vocabulary that allows to annotate and validate JSON documents. The schema describes the data format, and provides complete structural validation. Example:

{
  "description":"A customer",
  "type":"object",
  "properties":
   {
      "first": {"type": "string"},
      "last" : {"type" : "string"}
   }
}