Skip to content

Commit

Permalink
add example OpenAPI 3.1 petstore
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata committed Sep 10, 2024
1 parent af064f4 commit f6b5f67
Show file tree
Hide file tree
Showing 3 changed files with 1,316 additions and 0 deletions.
13 changes: 13 additions & 0 deletions demo/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,19 @@ const config: Config = {
hideSendButton: false,
showSchemas: true,
} satisfies OpenApiPlugin.Options,
petstore31: {
specPath: "examples/petstore-3.1.yaml",
proxy: "https://cors.pan.dev",
outputDir: "docs/petstore31",
sidebarOptions: {
groupPathsBy: "tag",
categoryLinkSource: "tag",
},
template: "api.mustache", // Customize API MDX with mustache template
downloadUrl: "/petstore-3.1.yaml",
hideSendButton: false,
showSchemas: true,
} satisfies OpenApiPlugin.Options,
cos: {
specPath: "examples/openapi-cos.json",
outputDir: "docs/cos",
Expand Down
Loading

0 comments on commit f6b5f67

Please sign in to comment.