Skip to content

Commit 298159e

Browse files
committed
cleanup ts config
1 parent 0730c36 commit 298159e

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

packages/docusaurus-plugin-openapi-docs/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ custom_edit_url: null
532532
version: version,
533533
label: metadata.label,
534534
baseUrl: metadata.baseUrl,
535+
downloadUrl: metadata.downloadUrl,
535536
});
536537
}
537538

@@ -682,6 +683,7 @@ custom_edit_url: null
682683
delete parentConfig.version;
683684
delete parentConfig.label;
684685
delete parentConfig.baseUrl;
686+
delete parentConfig.downloadUrl;
685687

686688
// TODO: handle when no versions are defined by version command is passed
687689
if (versionId === "all") {

packages/docusaurus-plugin-openapi-docs/src/options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const OptionsSchema = Joi.object({
5959
outputDir: Joi.string().required(),
6060
label: Joi.string().required(),
6161
baseUrl: Joi.string().required(),
62+
downloadUrl: Joi.string(),
6263
})
6364
),
6465
})

packages/docusaurus-plugin-openapi-docs/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface APIVersionOptions {
7070
outputDir: string;
7171
label: string;
7272
baseUrl: string;
73+
downloadUrl?: string;
7374
}
7475

7576
export interface LoadedContent {

0 commit comments

Comments
 (0)