Skip to content
Margo v0.0.22

JSON Schema fence

#

The jsonschema fence validates an inline schema or a ref= path and renders its properties as an indented tree.

Source

markdown
```jsonschema
{
  "title": "Widget",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
```

Result

Widget

  • idstring*
  • labelsarray

Options

Use an inline JSON object, ref=path/to/schema.json, or an embedded ref=margo://schema/v1/... contract. A #/pointer fragment selects a nested schema. The result is always a validated, indented property tree.