effect-io-ai

Package: @effect/platform
Module: OpenApiJsonSchema

OpenApiJsonSchema.makeWithDefs

Creates a schema with additional options and definitions.

Options

Signature

declare const makeWithDefs: <A, I, R>(schema: Schema.Schema<A, I, R>, options: { readonly defs: Record<string, any>; readonly defsPath?: string | undefined; readonly topLevelReferenceStrategy?: TopLevelReferenceStrategy | undefined; readonly additionalPropertiesStrategy?: AdditionalPropertiesStrategy | undefined; }) => JsonSchema

Source

Since v1.0.0