Am I correct that the root type can only be object?
See original GitHub issueWhat did you do
I used type: 'array' at the root of my json schema file.
What did you expect to happen
I expected it to be documented.
What happened
nothing related to type array was documented.
What’s your environment
- Operating System: Mac OS X El Capitan
- node.js version:
v9.4.0
Do you have example files:
For this schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "http://www.axa.ch/schemas/types/children.json",
"type": "array",
"title": "Children",
"description": "Components rendered within a Component.",
"additionalItems": false,
"items": [
{ "$ref": "http://www.axa.ch/schemas/components/Autocomplete.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/BulletRadioButtons.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Button.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Checkbox.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Datepicker.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Dropdown.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Error.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Icon.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Link.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/List.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/ListItem.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Map.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Markdown.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/ModalDialog.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/MultipleSelectList.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/MultipleSelectListItem.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/ProcessEnding.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/SegmentedRadioButtons.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/SelectList.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/SelectListItem.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Textarea.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Textfield.json#" },
{ "$ref": "http://www.axa.ch/schemas/components/Typo.json#" }
]
}
I’m getting following Markdown
# Children Schema
http://www.axa.ch/schemas/types/children.json
Components rendered within a Component.
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
|----------|------------|--------|--------------|-------------------|-----------------------|------------|
| Can be instantiated | No | Experimental | No | Forbidden | Permitted | [types/children.json](types/children.json) |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:8 (5 by maintainers)
Top Results From Across the Web
In JavaScript, what is the ultimate root, Object or Function?
The simple answer is the root of a prototype chain will always be Object.prototype , weird user manipulation aside. – Dagg Nabbit. Jan...
Read more >Understanding the Composition Root - Manning
The Composition Root should be the sole place in the entire application that knows about the structure of the constructed object graphs.
Read more >Analyze GC Roots | dotMemory Documentation - JetBrains
From the point of Garbage Collector, root is a reference to an object that must not and will not be collected. This makes...
Read more >Chapter: Input Output - ROOT - CERN
If the line starts with OBJ , the object is in memory. The <class> is the name of the ROOT class (T-something). The...
Read more >15. Classes and Objects — the Basics — How to Think Like a ...
Python is an object-oriented programming language, which means that it ... and the kinds of data they apply to, and each instance of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

🎉 This issue has been resolved in version 4.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
For clarity sake, since this referenced
masterand not a specific commit the line highlights are no longer correct.Here are the respective highlights as of the commit in reference:
propertieshttps://github.com/adobe/jsonschema2md/blob/74db566fe8edbe855add70c0e55262d9c763b2f4/lib/markdownWriter.js#L172-L202definitionhttps://github.com/adobe/jsonschema2md/blob/74db566fe8edbe855add70c0e55262d9c763b2f4/lib/markdownWriter.js#L203-L241