Skip to content

Commit

Permalink
feat: use yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCassiere committed Jun 23, 2024
1 parent cef0c81 commit f36a937
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/routers/docs/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.get(
pageTitle: "Simple Logging Server API Reference",
theme: "purple",
spec: {
url: "/static/openapi.v2.yml",
url: "/static/openapi.v2.yaml",
},
}),
);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/openapi-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type OpenApiDocTransformer = (dirVersion: string, doc: string) => string;
* Modify the OpenAPI doc with the provided transformers and write the file to the static directory.
*/
export function transformOpenapiYmlDoc(dir_version: string, transformers: OpenApiDocTransformer[] = []): void {
const openapiFilename = `openapi.${dir_version}.yml`;
const openapiFilename = `openapi.${dir_version}.yaml`;

const openapiYmlSourcePath = join(__dirname, "..", "docs", openapiFilename);
const openapiYmlOutPath = join(__dirname, "..", "..", "public", "static", openapiFilename);
Expand Down

0 comments on commit f36a937

Please sign in to comment.