Skip to main content
  1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. RegistryContentNode

RegistryContentNode

    A content node. Clients render ‘markdown’ for any ‘kind’ they do not recognize.

    Properties

    • kind string required
      Node kind. Known kinds: ’text’, ’language-chooser’, ‘os-chooser’. Render ‘markdown’ for unrecognized kinds.
    • markdown string required
      Markdown content. For ’text’ nodes, the content itself. For chooser nodes, a concatenation of options for fallback rendering.
    • options array[RegistryContentNodeOption] optional
      Options for chooser nodes; absent for ’text'.
    • language string optional
      The language this option applies to (for ’language-chooser’ nodes). One of: typescript, python, go, csharp, java, yaml.
    • os string optional
      The operating system this option applies to (for ‘os-chooser’ nodes). One of: linux, macos, windows.
    • content string required
      The content for this option, typically a code snippet or instructions.