JSON Schema: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 24: Line 24:
}
}
</syntaxhighlight>
</syntaxhighlight>
 
OpenAPI Specification (OAS) relies on JSON Schema. See: {{Internal|OpenAPI_Specification#Overview|OpenAPI Specification}}
 
OpenAPI Specification (OAS) relies on JSON Schema. See: {{OpenAPI_Specification#Overview|OpenAPI Specification}}

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