github Effect-TS/effect @effect/platform@0.69.24

latest releases: @effect/sql-sqlite-wasm@0.21.1, @effect/sql-sqlite-bun@0.21.8, @effect/sql-libsql@0.9.8...
7 hours ago

Patch Changes

  • #3939 3cc6514 Thanks @KhraksMamtsov! - Added the ability to annotate the HttpApi with additional schemas
    Which will be taken into account when generating components.schemas section of OpenApi schema

    import { Schema } from "effect"
    import { HttpApi } from "@effect/platform"
    
    HttpApi.empty.annotate(HttpApi.AdditionalSchemas, [
      Schema.Struct({
        contentType: Schema.String,
        length: Schema.Int
      }).annotations({
        identifier: "ComponentsSchema"
      })
    ])
    /**
     {
      "openapi": "3.0.3",
      ...
      "components": {
        "schemas": {
          "ComponentsSchema": {...},
          ...
      },
      ...
      }
     */

Don't miss a new effect release

NewReleases is sending notifications on new releases.