next-openapi-gen 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,18 +19,18 @@ export class OpenApiGenerator {
19
19
  // @ts-ignore
20
20
  const { apiDir, schemaDir, docsUrl, ui, outputFile, outputDir, includeOpenApiRoutes, schemaType = "typescript", defaultResponseSet, responseSets, errorConfig, debug } = this.template;
21
21
  return {
22
- apiDir,
23
- schemaDir,
24
- docsUrl,
25
- ui,
26
- outputFile,
27
- outputDir,
28
- includeOpenApiRoutes,
22
+ apiDir: apiDir || "./src/app/api",
23
+ schemaDir: schemaDir || "./src",
24
+ docsUrl: docsUrl || "api-docs",
25
+ ui: ui || "scalar",
26
+ outputFile: outputFile || "openapi.json",
27
+ outputDir: outputDir || "./public",
28
+ includeOpenApiRoutes: includeOpenApiRoutes || false,
29
29
  schemaType,
30
30
  defaultResponseSet,
31
31
  responseSets,
32
32
  errorConfig,
33
- debug,
33
+ debug: debug || false,
34
34
  };
35
35
  }
36
36
  generate() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-openapi-gen",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Automatically generate OpenAPI 3.0 documentation from Next.js projects, with support for Zod schemas and TypeScript types.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",