UNPKG

@adobe/jsonschema2md

Version:

Validate and document complex JSON Schemas the easy way.

43 lines (27 loc) 953 B
--- template: reference foo: bar --- # Constant Types Schema ``` https://example.com/schemas/constants ``` This is an example schema with examples for properties with constant values | Abstract | Extensible | Status | Custom Properties | Additional Properties | Defined In | |----------|------------|--------|-------------------|-----------------------|------------| | Can be instantiated | No | Experimental | Forbidden | Permitted | [constants.schema.json](constants.schema.json) | # Constant Types Properties | Property | Type | Required | Defined by | |----------|------|----------|------------| | [hello](#hello) | `const` | **Required** | Constant Types (this schema) | | `*` | any | Additional | this schema *allows* additional properties | ## hello A simple string, without strong constraints. `hello` * is **required** * type: `const` * defined in this schema The value of this property **must** be equal to: ```json "World" ```