Patch Changes
-
#3939
3cc6514
Thanks @KhraksMamtsov! - Added the ability to annotate theHttpApi
with additional schemas
Which will be taken into account when generatingcomponents.schemas
section ofOpenApi
schemaimport { 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": {...}, ... }, ... } */