Skip to content

Commit

Permalink
example app openapi test
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Oct 13, 2023
1 parent e3f404b commit d2a8da0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import test from "ava"
import { generateOpenAPI } from "nextlove"

test("should generate openapi", async (t) => {
const openapiJson = JSON.parse(
await generateOpenAPI({
packageDir: ".",
})
)

console.log(openapiJson)
})
1 change: 1 addition & 0 deletions packages/nextlove/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./nextjs-exception-middleware"
export * from "./with-route-spec"
export { wrappers } from "./wrappers"
export * from "./types"
export { generateOpenAPI } from "./generators/generate-openapi"

This file was deleted.

0 comments on commit d2a8da0

Please sign in to comment.