diff --git a/demo/index.tsx b/demo/index.tsx
index f134eaa797..1e621a45e1 100644
--- a/demo/index.tsx
+++ b/demo/index.tsx
@@ -122,7 +122,7 @@ class DemoApp extends React.Component<
>
);
diff --git a/docs/config.md b/docs/config.md
index 28e24f7eda..b18c6c37fd 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -26,19 +26,7 @@ Sets the minimum amount of characters that need to be typed into the search dial
_Default: 3_
-### expandDefaultServerVariables
-
-Enables or disables expanding default server variables.
-
-### expandResponses
-
-Controls which responses to expand by default. Specify one or more responses by providing their response codes as a comma-separated list without spaces, for example `expandResponses='200,201'`. Special value 'all' expands all responses by default. Be careful: this option can slow down documentation rendering time.
-
-### expandSingleSchemaField
-
-Automatically expands the single field in a schema.
-
-### hideDownloadButton
+### hideDownloadButtons
Hides the 'Download' button for saving the API definition source file. **This setting does not make the API definition private**; it just hides the button.
@@ -78,7 +66,7 @@ Hides the request sample tab for requests with only one sample.
Sets the path to the optional HTML file used to modify the layout of the reference docs page.
-### jsonSampleExpandLevel
+### jsonSamplesExpandLevel
Sets the default expand level for JSON payload samples (response and request body). The default value is 2, and the maximum supported value is '+Infinity'. It can also be configured as a string with the special value `all` that expands all levels.
@@ -102,21 +90,13 @@ If set to `true`, the sidebar uses the native scrollbar instead of perfect-scrol
Shows only required fields in request samples.
-### pathInMiddlePanel
-
-Shows the path link and HTTP verb in the middle panel instead of the right panel.
-
-### payloadSampleIdx
-
-If set, the payload sample is inserted at the specified index. If there are `N` payload samples and the value configured here is bigger than `N`, the payload sample is inserted last. Indexes start from 0.
-
-### requiredPropsFirst
+### sortRequiredPropsFirst
Shows required properties in schemas first, ordered in the same order as in the required array.
-### schemaExpansionLevel
+### schemasExpansionLevel
-Specifies whether to automatically expand schemas in Reference docs. Set it to `all` to expand all schemas regardless of their level, or set it to a number to expand schemas up to the specified level. For example, `schemaExpansionLevel: 3` expands schemas up to three levels deep. The default value is `0`, meaning no schemas are expanded automatically.
+Specifies whether to automatically expand schemas in Reference docs. Set it to `all` to expand all schemas regardless of their level, or set it to a number to expand schemas up to the specified level. For example, `schemasExpansionLevel: 3` expands schemas up to three levels deep. The default value is `0`, meaning no schemas are expanded automatically.
### scrollYOffset
diff --git a/docs/index.md b/docs/index.md
index a98776c210..6e2716e8e1 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -67,7 +67,7 @@ theme:
openapi:
disableSearch: true
expandResponses: 200,202
- jsonSampleExpandLevel: 1
+ jsonSamplesExpandLevel: 1
theme:
sidebar:
diff --git a/src/components/ApiInfo/ApiInfo.tsx b/src/components/ApiInfo/ApiInfo.tsx
index 4e3ce62e2d..7d1f75864e 100644
--- a/src/components/ApiInfo/ApiInfo.tsx
+++ b/src/components/ApiInfo/ApiInfo.tsx
@@ -22,20 +22,14 @@ export interface ApiInfoProps {
@observer
export class ApiInfo extends React.Component {
- handleDownloadClick = e => {
- if (!e.target.href) {
- e.target.href = this.props.store.spec.info.downloadLink;
- }
- };
-
render() {
const { store } = this.props;
const { info, externalDocs } = store.spec;
- const hideDownloadButton = store.options.hideDownloadButton;
-
- const downloadFilename = info.downloadFileName;
- const downloadLink = info.downloadLink;
+ const hideDownloadButtons = store.options.hideDownloadButtons;
+ // FIXME: use downloadUrls
+ const downloadUrls = info.downloadUrls;
+ console.log(downloadUrls);
const license =
(info.license && (
@@ -83,17 +77,22 @@ export class ApiInfo extends React.Component {
{info.title} {version}
- {!hideDownloadButton && (
+ {!hideDownloadButtons && (