# JSON Schema for Humans configuration file - [![badge](https://img.shields.io/badge/Optional-yellow) Property `minify`](#minify) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `description_is_markdown`](#description_is_markdown) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `expand_buttons`](#expand_buttons) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `show_breadcrumbs`](#show_breadcrumbs) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `collapse_long_descriptions`](#collapse_long_descriptions) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `link_to_reused_ref`](#link_to_reused_ref) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `recursive_detection_depth`](#recursive_detection_depth) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `deprecated_from_description`](#deprecated_from_description) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `default_from_description`](#default_from_description) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `copy_css`](#copy_css) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `copy_js`](#copy_js) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `templates_directory`](#templates_directory) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `template_name`](#template_name) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `markdown_options`](#markdown_options) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `template_md_options`](#template_md_options) - [![badge](https://img.shields.io/badge/Optional-yellow) Property `badge_as_image`](#template_md_options_badge_as_image) **Title:** JSON Schema for Humans configuration file | Type | `object` | | ------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | | | **Description:** Choose how to generate JSON Schema for Humans documentation file. Configuration parameters can be provided in several ways: - On the CLI using `--config parameter_name=value` (example: `--config template_name=flat`) - On the CLI using a config file `--config-file config.json` - From code, by providing a GenerationConfiguration object to the called generation method.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `minify`
| Type | `boolean` | | ----------- | --------- | | **Default** | `true` | | | | **Description:** Minify the output HTML document.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `description_is_markdown`
| Type | `boolean` | | ----------- | --------- | | **Default** | `true` | | | | **Description:** Whether to consider the description as markdown and render it accordingly.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `expand_buttons`
| Type | `boolean` | | ----------- | --------- | | **Default** | `false` | | | | **Description:** Add an `Expand all` and a `Collapse all` button at the top of the generated documentation.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `show_breadcrumbs`
| Type | `boolean` | | ----------- | --------- | | **Default** | `true` | | | | **Description:** For each property, show the relative place of that property in the schema.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `collapse_long_descriptions`
| Type | `boolean` | | ----------- | --------- | | **Default** | `true` | | | | **Description:** If a description is considered big, show only the beginning and add a `Read more` button.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `link_to_reused_ref`
| Type | `boolean` | | ----------- | --------- | | **Default** | `true` | | | | **Description:** If several `$ref` points to the same definition, only render the documentation for this definition the first time. All other occurrences are replaced by an anchor link to the first occurrence. The first occurrence is the one that is the least nested from the top of the schema and appears first in that nesting level. *Note*: If this option is off and the schema contains recursive definitions, the generation will crash!
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `recursive_detection_depth`
| Type | `integer` | | ----------- | --------- | | **Default** | `25` | | | | **Description:** *Advanced option* If `link_to_reused_ref` is false and a `$ref` in the schema refers to a parent of itself, we would get a `RecursionError` trying to render the documentation. To avoid this, each reference is checked for circular references. This option determines the number of times to recursively follow definitions looking for a circular reference. In other words, if a schema has a deeply nested element that refers to itself, this option may need to be increased.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `deprecated_from_description`
| Type | `boolean` | | ----------- | --------- | | **Default** | `false` | | | | **Description:** Mark a property as deprecated (with a big red badge) if the description contains the string `[Deprecated`.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `default_from_description`
| Type | `boolean` | | ----------- | --------- | | **Default** | `false` | | | | **Description:** Extract the default value of a property from the description like this: ``[Default `the_default_value`]``. The default value from the "default" attribute will be used in priority.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `copy_css`
| Type | `boolean` | | ----------- | --------- | | **Default** | `true` | | | | **Description:** Copy `schema_doc.css` to the same directory as `RESULT_FILE` after generation.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `copy_js`
| Type | `boolean` | | ----------- | --------- | | **Default** | `true` | | | | **Description:** Copy `schema_doc.min.js` to the same directory as `RESULT_FILE` after generation. This file contains the logic for the anchor links.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `templates_directory`
| Type | `string` | | ---- | -------- | | | | **Description:** The file system path to the directory containing templates, with a default of the `templates` directory within the library source code.
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `template_name`
| Type | `enum (of string)` | | ----------- | ------------------ | | **Default** | `"js"` | | | | **Description:** The name of the set of templates to use to render the documentation. `js` is the default and uses javascript for anchor links, collapsible sections and tabs. `flat` uses no javascript, but has no interactivity. Must be one of: * "flat" * "js" * "md"
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `markdown_options`
| Type | `object` | | ------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | **Default** | `{"fenced-code-blocks": {"break-on-newline": true, "cssclass": "highlight jumbotron", "tables": null}, "tables": null}` | | | | **Description:** [Markdown 2 options](https://github.com/trentm/python-markdown2/wiki/Extras) for the descriptions. `description_is_markdown` must be true for this to have any effect. **WARNING** Adding an extra, even if the value is false, will activate it. For example `{"break-on-newline": false}` will activate the `break-on-newline` extra. **Example:** ```json { "fenced-code-blocks": { "cssclass": "highlight jumbotron" }, "tables": null, "break-on-newline": true, "cuddled-lists": true } ```
## ![badge](https://img.shields.io/badge/Optional-yellow) Property `template_md_options`
| Type | `object` | | ------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Additional properties** | [![badge](https://img.shields.io/badge/Any+type-allowed-green)](# "Additional Properties of any type are allowed.") | | | | **Description:** specific options to md template
### ![badge](https://img.shields.io/badge/Optional-yellow) Property `badge_as_image`
| Type | `boolean` | | ----------- | --------- | | **Default** | `false` | | | | **Description:** if true generate badges(eg: optional, required) using embedded image (https://img.shields.io). if false, use text instead
---------------------------------------------------------------------------------------------------------------------------- Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on date