Skip to content

Commit

Permalink
Output latest version of spec and add note about types being broken
Browse files Browse the repository at this point in the history
  • Loading branch information
openint-bot committed Feb 13, 2025
1 parent 599b86a commit a37d76c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
18 changes: 5 additions & 13 deletions packages-v1/api-v1/__generated__/openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages-v1/api-v1/scripts/gen-oas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ const dest = path.join(__dirname, '../__generated__', 'openapi.json')
fs.writeFileSync(dest, JSON.stringify(generateOpenAPISpec({}), null, 2))

console.log(`openapi.json written to ${dest}`)
// NOTE: While the openapi spec is valid
// the typescript types generated from it are not due to usage of discrminated union in the oas spec
// @see https://github.com/openapi-ts/openapi-typescript/issues/2149
1 change: 1 addition & 0 deletions packages-v1/api-v1/trpc/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function generateOpenAPISpec({
const oas = generateOpenApiDocument(appRouter, {
title: 'OpenInt',
version: '1.0.0',
openApiVersion: '3.1.0',
baseUrl,
})

Expand Down

0 comments on commit a37d76c

Please sign in to comment.