OptionaldeepOptionaldefaultThe default expansion depth for the model on the model-example section.
OptionaldefaultControls how the model is shown when the API is first rendered. The user can always switch the rendering for a given model by clicking the 'Model' and 'Example Value' links.
OptionaldefaultThe default expansion depth for models (set to -1 completely hide the models).
OptionaldisplayControls the display of operationId in operations list.
OptionaldisplayControls the display of the request duration (in milliseconds) for "Try it out" requests.
OptionaldocControls the default expansion setting for the operations and tags. It can be 'list' (expands only the tags), 'full' (expands the tags and operations) or 'none' (expands nothing).
OptionalfilterIf set, enables filtering. The top bar will show an edit box that you can use to filter the tagged operations that are shown. Can be Boolean to enable or disable, or a string, in which case filtering will be enabled using that string as the filter expression. Filtering is case-sensitive matching the filter expression anywhere inside the tag.
OptionallayoutThe name of a component available via the plugin system to use as the top-level layout for Swagger UI.
OptionalmaxIf set, limits the number of tagged operations displayed to at most this many. The default is to show all operations.
OptionalprimaryIf the value matches the name of a spec provided in urls, that spec will be displayed when Swagger UI loads, instead of defaulting to the first spec in urls.
OptionalqueryEnables overriding configuration parameters via URL search params.
OptionalrequestThis is the default configuration section for the requestSnippets plugin.
Optionalgenerators?: {Generators for different shell syntax.
Optionalcurl_bash?: { syntax: string; title: string }cURL command for Bash shell
Optionalcurl_cmd?: { syntax: string; title: string }cURL command for CMD shell
Optionalcurl_powershell?: { syntax: string; title: string }cURL command for PowerShell shell
OptionaldefaultExpanded?: booleanTrue if the list of languages should be expanded by default.
Optionallanguages?: null | ["curl_bash"]An array to only show certain syntax. Set to ["curl_bash"] to only show curl bash.
OptionalpersistAuthorization?: booleanIf set to true, it persists authorization data, and it would not be lost on browser close/refresh
OptionalshowMutatedRequest?: booleanIf set to true, uses the mutated request returned from a requestInterceptor to produce the curl command in the UI, otherwise the request before the requestInterceptor was applied is used.
OptionalsupportedSubmitMethods?: string[]List of HTTP methods that have the "Try it out" feature enabled. An empty array disables "Try it out" for all operations. This does not filter the operations from the display.
OptionalvalidatorUrl?: null | stringBy default, Swagger UI attempts to validate specs against swagger.io's online validator. You can use this parameter to set a different validator URL, for example for locally deployed validators (Validator Badge). Setting it to either none, 127.0.0.1 or localhost will disable validation.
OptionalwithCredentials?: booleanIf set to true, enables passing credentials, as defined in the Fetch standard, in CORS requests that are sent by the browser. Note that Swagger UI cannot currently set cookies cross-domain (see swagger-js#1163) - as a result, you will have to rely on browser-supplied cookies (which this setting enables sending) that Swagger UI cannot control.
OptionalrequestEnables the request snippet section. When disabled, the legacy curl snippet will be used.
OptionalshowControls the display of extensions (pattern, maxLength, minLength, maximum, minimum) fields and values for Parameters.
OptionalshowControls the display of vendor extensions (x-) fields and values for Operations, Parameters, Responses, and Schema.
OptionalsyntaxSet to false to deactivate syntax highlighting of payloads and cURL command, can be otherwise an object with the activate and theme properties.
Optionalactivate?: booleanBoolean=true. Whether syntax highlighting should be activated or not.
Optionaltheme?: "agate" | "arta" | "monokai" | "nord" | "obsidian" | "tomorrow-night" | "idea"Highlight.js syntax coloring theme to use. (Only these 7 styles are available.)
OptionaltryControls whether the "Try it out" section should be enabled by default.
If set to true, enables deep linking for tags and operations. See the Deep Linking documentation for more information.