Read fields, types, constraints, and descriptions in a shared schema hierarchy. Branches expand with native browser controls, including when JavaScript is unavailable.
DefaultRendered example
dataobject
Data that helps a client respond to an operation failure. The fields depend on the type of error.
@schematree.SchemaTree(schematree.Config{AriaLabel:"Response schema",Nodes:[]schematree.Node{{Name:"data",Type:"object",DescriptionContent:responseDescription(),Children:[]schematree.Node{{Name:"error_type",Type:"string",Required:true,Description:"Identifies the kind of failure.",}},}},})
Configuration schema
The same component accepts a JSON Schema adapter. Full property paths remain available on field names, and required state is expressed in words.
Configuration schemaRendered example
assetsstring
Whether generated pages reference copied assets or embed supported assets.
Allowed
local, inline
Default
local
base_pathstring
Normalized public path prefix used by links and canonical URLs.
Default
/
custom_cssarray
Additional stylesheets for this site.
Default
[]
itemsobject
css_urlstringrequired
minLength
1
frameobject
Frame settings for the generated site.
builtinstring
commandstring
Configuration schema
schematree.Node{Name:"custom_css",Path:"/custom_css",Type:"array",Description:"Additional stylesheets for this site.",Constraints:[]schematree.Constraint{{Name:"Default",Value:"[]"}},Children:[]schematree.Node{{Name:"items",Type:"object",Children:[]schematree.Node{{Name:"css_url",Type:"string",Required:true,Constraints:[]schematree.Constraint{{Name:"minLength",Value:"1"}},}},}},}
Component descriptions
DescriptionContent overrides plain Description. Supply a rendered Markdown component, links, lists, or other block content; parse and sanitize external content in the caller.
Component descriptionsRendered example
plainstring
Text such as <strong> is escaped and displayed literally.
richstring
Data that helps a client respond to an operation failure. The fields depend on the type of error.
Goshtoso can store preferences and demo state in your browser. Some examples use cookies and IndexedDB to persist local demo state. There is no analytics, advertising, or third-party tracking. You can use the site without storage, but preferences and some examples will reset or stop persisting. Details in our Privacy Policy.