SchemaViewer

Domain · API Doc

Interactive JSON Schema tree viewer with type coloring, constraint display, and collapsible nodes.

Object schema

Preview
id* string read-only UUID identifier
name* string Display name
price* number
Code
<%- include('modules/domain/api-doc/SchemaViewer', {
  schema: {
    type: 'object',
    required: ['id', 'name', 'price'],
    properties: {
      id:    { type: 'string', description: 'UUID identifier', readOnly: true },
      name:  { type: 'string', description: 'Display name' },
      price: { type: 'number' },
    }
  }
}) %>
Source modules/domain/api-doc/SchemaViewer.ejs