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=")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=


* http://json-schema.org
* https://tools.ietf.org/html/draft-wright-json-schema-00
* https://tools.ietf.org/html/draft-wright-json-schema-00
* https://tools.ietf.org/html/draft-zyp-json-schema-04


=Internal=
=Internal=


* [[JSON Concepts#JSON_Schema|JSON Concepts]]
* [[JSON Concepts#JSON_Schema|JSON Concepts]]
* [[OpenAPI_Specification#Overview|OpenAPI Specification]]


=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>
OpenAPI Specification (OAS) relies on JSON Schema. See: {{Internal|OpenAPI_Specification#Overview|OpenAPI Specification}}

Latest revision as of 17:10, 26 January 2024

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"}
   }
}

OpenAPI Specification (OAS) relies on JSON Schema. See:

OpenAPI Specification