UNPKG

@adobe/jsonschema2md

Version:

Validate and document complex JSON Schemas the easy way.

97 lines (58 loc) 1.28 kB
--- template: reference foo: bar --- # Examples Schema ``` https://example.com/schemas/examples ``` This is an example schema with *multiple* examples. Too many examples? There can never be too many examples! | Abstract | Extensible | Status | Custom Properties | Additional Properties | Defined In | |----------|------------|--------|-------------------|-----------------------|------------| | Can be instantiated | No | Experimental | Forbidden | Permitted | [examples.schema.json](examples.schema.json) | ## Examples Examples ```json { "foo": "bi", "bar": "bu" } ``` ```json { "foo": "zip", "bar": "zap" } ``` # Examples Properties | Property | Type | Required | Defined by | |----------|------|----------|------------| | [bar](#bar) | `string` | **Required** | Examples (this schema) | | [foo](#foo) | `string` | Optional | Examples (this schema) | | `*` | any | Additional | this schema *allows* additional properties | ## bar A simple string. `bar` * is **required** * type: `string` * defined in this schema ### bar Type `string` ### bar Examples ```json "bar" ``` ```json "baz" ``` ## foo A simple string. `foo` * is optional * type: `string` * defined in this schema ### foo Type `string` ### foo Example ```json "bar" ```