tomcollins / json-schema-static-docs

Quickly generate human friendly documentation from your JSON schema
https://tomcollins.github.io/json-schema-static-docs/
GNU General Public License v3.0
21 stars 7 forks source link

Cannot handle `default` which is an object #111

Open abemedia opened 1 year ago

abemedia commented 1 year ago

I have a schema which has defaults that are objects e.g.

    default:
      foo: bar

The resulting docs do not show JSON for this, but simply the following:

    <tr>
      <th>Default</th>
      <td colspan="2">[object Object]</td>
    </tr>
tomcollins commented 1 month ago

This will need an update to lib/renderer/index.js to handle objects.