{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdn.jsdelivr.net/npm/rapidoc@15.0.0/dist/rapidoc-options.schema.json",
  "title": "<rapi-doc> attributes",
  "description": "Attributes of the <rapi-doc> element of rapidoc 15.0.0. Booleans may be given as booleans or as the strings \"true\" and \"false\"; the element reads strings.",
  "type": "object",
  "properties": {
    "spec-url": {
      "description": "URL of the OpenAPI specification file (JSON or YAML) to load and render.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "sort-tags": {
      "description": "Sorts tags in alphabetical order. When set to \"false\", preserves the tag order defined in the OpenAPI specification.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "sort-schemas": {
      "description": "Sorts component schemas alphabetically. When set to \"false\", preserves the order defined in the spec. Note: Only has an effect if render-style=\"focused\" and show-components=\"true\".",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "sort-endpoints-by": {
      "description": "Sorts endpoints within each tag group by path, HTTP method, or summary. 'none' leaves the sort order unmodified. ⓘ This is a static initialization attribute. It will not have any effect if modified using JavaScript after the spec is rendered.",
      "type": "string",
      "enum": [
        "path",
        "method",
        "summary",
        "none"
      ],
      "default": "path",
      "x-rapidoc-kind": "enum"
    },
    "show-unused-tags": {
      "description": "Shows tags that no operation uses, as long as they have a description, so a tag can hold a guide or concepts section (written in markdown) next to the operations. Each such tag gets a section and a sidebar link. When \"false\", tags without operations are left out, except those the spec lists in x-tagGroups, which show either way. Either way, an OpenAPI 3.2 tag that is the parent of other tags is drawn as their group's heading, not as a section, and a tag whose kind is not nav never gets one. ⓘ This is a static initialization attribute. It will not have any effect if modified using JavaScript after the spec is rendered.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "generate-missing-tags": {
      "description": "Groups operations that have no tag under a tag made from the first segment of their path.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "filter-operations": {
      "description": "Which operations to show: a space- or comma-separated list of terms. An operation is shown when it matches any include term (every one is, without one) and no ! term. A term is an operationId (getPetById), a method and path (GET /pet/{petId}), a path for all its methods, a path glob (/pet/**; * is one segment, ** any number), tag:store, badge:Beta (an x-badges label, or an OpenAPI 3.2 tag of kind: badge) or deprecated; ! before a term leaves out what it matches (!badge:Internal). Shown operations keep the order of the first term they match, so a list of operationIds shows them in that order (unless sort-endpoints-by is set).",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "render-style": {
      "description": "Controls the overall documentation presentation layout. Three distinct modes are supported: view: Optimized for interactive exploration with collapsible operations | Example read: Continuous narrative page layout, ideal for reading through API specifications from top to bottom | Example focused: Displays a single endpoint at a time with a dedicated sidebar, ideal for large enterprise schemas | Example",
      "type": "string",
      "enum": [
        "read",
        "view",
        "focused"
      ],
      "default": "read",
      "x-rapidoc-kind": "enum"
    },
    "layout": {
      "description": "Controls the multi-column orientation of request parameters and response panels on desktop screens (>768px). In 'row' layout, request and response sections sit side-by-side; in 'column' layout, they stack vertically. Defaults to 'column' when render-style is 'read' or 'focused', and 'row' when render-style is 'view'.",
      "type": "string",
      "enum": [
        "row",
        "column"
      ],
      "x-rapidoc-kind": "enum"
    },
    "response-area-height": {
      "description": "Allowed: Any valid CSS height value (e.g. 400px, 50%, 60vh). Controls the vertical height of the interactive response payload viewer.",
      "type": "string",
      "default": "400px",
      "x-rapidoc-kind": "string"
    },
    "page-direction": {
      "description": "Text direction of the page.",
      "type": "string",
      "enum": [
        "ltr",
        "rtl"
      ],
      "default": "ltr",
      "x-rapidoc-kind": "enum"
    },
    "scroll-offset": {
      "description": "Allowed: A number of pixels (e.g. 96). With auto-height=\"true\", where the page scrolls instead of RapiDoc, this is the height of a sticky or fixed page header. Navigation scrolls a section to just below it, and the active navigation item ignores sections hidden under it. When not set, RapiDoc uses the scroll root's scroll-padding-top, so a page that already sets it needs no extra configuration.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "scroll-behavior": {
      "description": "How the page scrolls when a navigation item is clicked.",
      "type": "string",
      "enum": [
        "smooth",
        "auto"
      ],
      "default": "smooth",
      "x-rapidoc-kind": "enum"
    },
    "scroll-container": {
      "description": "CSS selector of the ancestor element that scrolls, when it cannot be detected.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "auto-height": {
      "description": "Lets the element grow to the height of its content, so the host page scrolls instead of the element.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "theme": {
      "description": "Brand color preset, or a custom brand color as a hex code. Each preset defines a dark and a light palette.",
      "type": "string",
      "examples": [
        "ember",
        "carbon",
        "cobalt",
        "jade",
        "indigo",
        "amber"
      ],
      "default": "amber",
      "x-rapidoc-kind": "enum"
    },
    "color-scheme": {
      "description": "Base color scheme mode. 'system' automatically matches the user's OS preference. 'auto' follows the host page: it reads the page's CSS color-scheme (for example :root[data-theme='light'] { color-scheme: light }, as Starlight sets it) and updates when the page switches theme; when the page declares none, it falls back to the OS preference.",
      "type": "string",
      "enum": [
        "dark",
        "light",
        "system",
        "auto"
      ],
      "default": "dark",
      "x-rapidoc-kind": "enum"
    },
    "radius": {
      "description": "Corner radius scale applied across cards, buttons, badges, inputs, and dialogs.",
      "type": "string",
      "enum": [
        "none",
        "sm",
        "md",
        "lg",
        "full"
      ],
      "default": "sm",
      "x-rapidoc-kind": "enum"
    },
    "scale": {
      "description": "Relative scale factor for typography and UI elements across the documentation portal.",
      "type": "string",
      "enum": [
        "sm",
        "default",
        "lg"
      ],
      "default": "default",
      "x-rapidoc-kind": "enum"
    },
    "primary-color": {
      "description": "A custom brand color as a hex code. Same as passing the hex code to theme.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "css-file": {
      "description": "File name of a stylesheet the page already loads with a <link> tag. Its rules are copied into the shadow DOM.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "css-classes": {
      "description": "Space-separated CSS class names, defined in css-file, to add to the element's root.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "show-side-nav": {
      "description": "The navigation sidebar (read and focused modes). true docks it beside the content on wide layouts and turns it into a menu button with a slide-over menu when the element is narrower than 768px; floating uses the menu button and slide-over menu at every width, so the content takes the whole width; false shows no sidebar.",
      "type": "string",
      "enum": [
        "true",
        "false",
        "floating"
      ],
      "default": "true",
      "x-rapidoc-kind": "enum"
    },
    "show-method-in-nav-bar": {
      "description": "Shows each operation's HTTP method (GET, POST, etc.) at the start of its sidebar item, in a column of its own: as plain text, colored text, or a colored block with a three-letter method. false shows the summary alone.",
      "type": "string",
      "enum": [
        "false",
        "as-plain-text",
        "as-colored-text",
        "as-colored-block"
      ],
      "default": "as-colored-text",
      "x-rapidoc-kind": "enum"
    },
    "show-badges-in-nav-bar": {
      "description": "Marks sidebar items whose operation shows a badge (x-badges, or an OpenAPI 3.2 tag of kind: badge) with a small dot in the first badge's color; its tooltip and accessible label list the badges. Badges with color: none are left out. The dot's shape and size can be styled with the nav-badge-dot CSS part.",
      "type": "string",
      "enum": [
        "dot",
        "false"
      ],
      "default": "dot",
      "x-rapidoc-kind": "enum"
    },
    "use-path-in-nav-bar": {
      "description": "Displays raw API URL paths in the navigation bar instead of operation summaries. NOTE: Setting this to true displays the path only. To display the HTTP method alongside the path, also configure show-method-in-nav-bar.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "nav-item-overflow": {
      "description": "Controls text truncation behavior for long endpoint paths and operation summaries in the navigation sidebar. When set to ellipsis (default), long paths truncate with a clean ellipsis. When set to wrap, long items wrap across multiple lines without clipping.",
      "type": "string",
      "enum": [
        "ellipsis",
        "wrap"
      ],
      "default": "ellipsis",
      "x-rapidoc-kind": "enum"
    },
    "info-description-headings-in-navbar": {
      "description": "Extracts Markdown headings (H1 and H2) from the specification's info description and adds them to the sidebar navigation menu (read mode only).",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "update-route": {
      "description": "When set to \"true\", automatically updates the browser's URL address hash as the user scrolls through or clicks on different sections.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "goto-path": {
      "description": "Target endpoint location to navigate to automatically after the specification finishes loading. Must be provided in the format of {method}-{path} (e.g., to focus on GET /user/login, provide get-/user/login).",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "show-header": {
      "description": "Toggles the top navigation header bar. Set to false to prevent users from loading alternative spec URLs or to seamlessly embed inside existing layouts.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "heading-text": {
      "description": "Custom title text displayed on the top-left corner of the header.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "show-info": {
      "description": "Toggles visibility of the OpenAPI document info section (title, description, version, terms of service). Useful when embedding `` into an existing developer portal or knowledge base that already contains its own header.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "show-components": {
      "description": "Toggles the components section (schemas, responses, examples, request bodies, headers, security schemes) in both the document body and sidebar menu (available in focused render-style).",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "allow-search": {
      "description": "Enables the instant search and filtering input in the navigation sidebar.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "allow-advanced-search": {
      "description": "Enables deep multi-property search modal, indexing paths, descriptions, parameter names, and response schemas.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "allow-spec-url-load": {
      "description": "When set to false, disables the input field allowing users to load arbitrary external OpenAPI specification URLs.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "allow-spec-file-load": {
      "description": "When set to false, hides the file picker allowing users to upload and preview local OpenAPI spec files (desktop viewports >768px).",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "allow-spec-file-download": {
      "description": "When set to true, displays convenient buttons in the overview section to download the raw OpenAPI specification file or view it in a new tab.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "schema-style": {
      "description": "Controls the visual representation of complex JSON schemas in request and response panels. 'tree' provides an interactive collapsible tree view; 'table' renders structured tabular rows.",
      "type": "string",
      "enum": [
        "tree",
        "table"
      ],
      "default": "tree",
      "x-rapidoc-kind": "enum"
    },
    "schema-expand-level": {
      "description": "Initial depth level for auto-expanding complex nested schema properties and sub-objects (the default expands all levels).",
      "type": "number",
      "default": 99999,
      "x-rapidoc-kind": "number"
    },
    "schema-description-expanded": {
      "description": "Controls whether schema field constraints, validation rules, and descriptions are fully expanded by default or collapsed to a single line.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "allow-schema-description-expand-toggle": {
      "description": "Shows or hides the button allowing users to toggle between single-line summary and multi-line detailed schema property descriptions.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "schema-hide-read-only": {
      "description": "'default' hides read-only properties in request bodies while displaying them in response models and webhook callbacks. Set to 'never' to always display read-only fields across all payloads. Note: This does not affect example generation.",
      "type": "string",
      "enum": [
        "default",
        "never"
      ],
      "default": "default",
      "x-rapidoc-kind": "enum"
    },
    "schema-hide-write-only": {
      "description": "'default' hides write-only properties in response bodies while displaying them in request payloads. Set to 'never' to always display write-only fields across all payloads. Note: This does not affect example generation.",
      "type": "string",
      "enum": [
        "default",
        "never"
      ],
      "default": "default",
      "x-rapidoc-kind": "enum"
    },
    "default-schema-tab": {
      "description": "Selects which tab is active by default, and listed first, for request bodies, responses and object parameters: 'schema' (data contract model) or 'example' (sample JSON payload).",
      "type": "string",
      "enum": [
        "schema",
        "example"
      ],
      "default": "example",
      "x-rapidoc-kind": "enum"
    },
    "allow-try": {
      "description": "Enables the interactive \"TRY\" console allowing users to test live API calls directly from their browser. Besides true and false, it takes the terms of filter-operations to turn Try on only for the operations they select: !deprecated !tag:pending-implementation keeps it off for deprecated operations and those tagged pending-implementation. The others keep their request documentation and show a disabled TRY DISABLED button. The Authentication section stays usable unless it is false.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "show-curl-before-try": {
      "description": "When set to true, generates and displays copyable cURL commands directly within the endpoint documentation prior to clicking \"TRY\".",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "fill-request-fields-with-example": {
      "description": "Pre-populates interactive request parameter inputs and request body fields using example values defined in the OpenAPI spec.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "allow-server-selection": {
      "description": "Enables the dropdown allowing users to switch between target servers declared in the OpenAPI spec.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "server-url": {
      "description": "Custom API server base URL. Overrides the servers array defined in the OpenAPI specification. Particularly useful when sharing a single spec across development, staging, and production environments.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "default-api-server": {
      "description": "Selects which server URL from the spec's servers list should be selected by default.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "fetch-credentials": {
      "description": "Configures credentials mode for cross-origin browser Fetch requests as defined in the Fetch Standard, enabling transmission of cookies and Authorization headers in CORS requests.",
      "type": "string",
      "enum": [
        "omit",
        "same-origin",
        "include"
      ],
      "x-rapidoc-kind": "enum"
    },
    "allow-authentication": {
      "description": "Controls the display of interactive authentication controls (HTTP Basic, Bearer Token, API Key, OAuth2). Disable to hide authentication dialogs when using hardcoded or pre-authenticated API keys.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "true",
      "x-rapidoc-kind": "boolean"
    },
    "persist-auth": {
      "description": "Keeps API keys, bearer tokens and OAuth access tokens in localStorage across page reloads; an OAuth token is dropped once it expires. Basic credentials and OAuth client secrets are never stored.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "api-key-name": {
      "description": "Name of the header or query parameter used when transmitting the API key in interactive console requests.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "api-key-location": {
      "description": "Specifies whether the API key is passed as an HTTP request header or query parameter.",
      "type": "string",
      "enum": [
        "header",
        "query"
      ],
      "default": "header",
      "x-rapidoc-kind": "enum"
    },
    "api-key-value": {
      "description": "Pre-configured API key value sent during interactive console requests. Can also be set or overwritten directly in the UI.",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "oauth-receiver": {
      "description": "Relative or absolute path to the OAuth receiver HTML file for handling authorization redirection callbacks.",
      "type": "string",
      "default": "oauth-receiver.html",
      "x-rapidoc-kind": "string"
    },
    "additional-authorize-params": {
      "description": "Custom query parameters appended to the OAuth2 authorization URL query string (e.g. proxy launch tokens, prompt, audience). Supported Formats: JSON String (recommended for HTML attributes):additional-authorize-params='{\"launch\": \"xyz123\", \"prompt\": \"consent\"}' URL Query String:additional-authorize-params=\"launch=xyz123&prompt=consent\" JavaScript Object (via property):rapidocEl.additionalAuthorizeParams = { launch: 'xyz123', prompt: 'consent' };",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "additional-token-params": {
      "description": "Custom parameters included in the POST request body sent to the OAuth2 token endpoint (e.g. custom proxy parameters, resource, audience). Supported Formats: JSON String (recommended for HTML attributes):additional-token-params='{\"audience\": \"https://api.example.com\", \"resource\": \"urn:my:api\"}' URL-Encoded String:additional-token-params=\"audience=https%3A%2F%2Fapi.example.com\" JavaScript Object (via property):rapidocEl.additionalTokenParams = { audience: 'https://api.example.com' };",
      "type": "string",
      "x-rapidoc-kind": "string"
    },
    "mock-server": {
      "description": "Enables the built-in, zero-dependency in-browser mock server. Transparently intercepts outgoing network requests (both RapiDoc's Try console and host application fetch/XHR calls) and serves mock responses based on OpenAPI examples or generated from schemas.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "mock-server-status-code": {
      "description": "HTTP status code to answer with, or several separated by commas, used in turn per operation (503, 503, 200: two failures, then a success); a random: prefix picks one at random for each call (random:200, 500), cycle: says in turn explicitly. Or a JSON map by operation, each with its own codes and prefix ({ \"POST /orders\": \"cycle:503, 200\", \"*\": \"200\" }). Set it to an empty string to use the first 2xx response in the spec.",
      "type": "string",
      "default": "200",
      "x-rapidoc-kind": "string"
    },
    "mock-server-delay": {
      "description": "Simulated network latency in milliseconds before resolving mock responses. Useful for testing client loading spinners and optimistic UI updates. For a streamed response (OpenAPI 3.2 itemSchema: Server-Sent Events, JSON Lines), the response starts at once and this is the gap between its items (300 ms when 0).",
      "type": "number",
      "default": 0,
      "x-rapidoc-kind": "number"
    },
    "mock-server-log": {
      "description": "Logs one line per answered request (method, path and status code) to the browser console.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "mcp": {
      "description": "Enables Model Context Protocol (MCP) server export for AI agents. true renders an Export MCP Server button in the overview section that downloads a zip with the MCP manifest (manifest.json), a fixed runtime (runtime.js) and a stdio TypeScript server (server.ts). false or an empty value hides the button.",
      "type": [
        "boolean",
        "string"
      ],
      "enum": [
        true,
        false,
        "true",
        "false"
      ],
      "default": "false",
      "x-rapidoc-kind": "boolean"
    },
    "mcp-server-name": {
      "description": "Custom name for the generated MCP server. Defaults to the API specification title.",
      "type": "string",
      "x-rapidoc-kind": "string"
    }
  },
  "additionalProperties": {
    "type": [
      "string",
      "number",
      "boolean"
    ]
  }
}
