Effect-TS / effect

An ecosystem of tools to build robust applications in TypeScript
https://effect.website
MIT License
7.71k stars 245 forks source link

Expose the OpenApi schema in JSON format at the `/docs/json` URL #3810

Closed KhraksMamtsov closed 1 month ago

KhraksMamtsov commented 1 month ago

Type

Description

Related

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: f59d8128f9c0e20d5213cfa969e6d53154d2f997

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 28 packages | Name | Type | | ------------------------------- | ----- | | @effect/platform | Patch | | @effect/cli | Patch | | @effect/cluster-node | Patch | | @effect/cluster-workflow | Patch | | @effect/cluster | Patch | | @effect/experimental | Patch | | @effect/platform-browser | Patch | | @effect/platform-bun | Patch | | @effect/platform-node-shared | Patch | | @effect/platform-node | Patch | | @effect/rpc-http | Patch | | @effect/rpc | Patch | | @effect/sql-clickhouse | Patch | | @effect/sql-d1 | Patch | | @effect/sql-libsql | Patch | | @effect/sql-mssql | Patch | | @effect/sql-mysql2 | Patch | | @effect/sql-pg | Patch | | @effect/sql-sqlite-bun | Patch | | @effect/sql-sqlite-node | Patch | | @effect/sql | Patch | | @effect/ai | Patch | | @effect/ai-openai | Patch | | @effect/cluster-browser | Patch | | @effect/sql-drizzle | Patch | | @effect/sql-kysely | Patch | | @effect/sql-sqlite-react-native | Patch | | @effect/sql-sqlite-wasm | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

tim-smart commented 1 month ago

You can use this middleware: https://effect-ts.github.io/effect/platform/HttpApiBuilder.ts.html#middlewareopenapi