json-schema-static-docs icon indicating copy to clipboard operation
json-schema-static-docs copied to clipboard

Cannot handle `default` which is an object

Open abemedia opened this issue 2 years ago • 1 comments

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>

abemedia avatar May 27 '23 11:05 abemedia

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

tomcollins avatar Oct 18 '24 13:10 tomcollins