Display Json Schema definition

Use the JsonSchema component to display Json Schema properties and definition.

Example

To create a Json Schema, just wrap the json schema with tag.

Person { "type": "object", "properties": { "name": { "type": "string", "description": "The person's name" }, "age": { "type": "integer", "minimum": 0 } }, "required": ["name"] }

Code:


<JsonSchema title="Person">
  {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "description": "The person's name"
      },
      "age": {
        "type": "integer",
        "minimum": 0
      }
    },
    "required": ["name"]
  }
</JsonSchema>

Configuration options

JsonSchema component has only one optional property. title the title shows in the json schema table