MCPcopy Create free account
hub / github.com/Effect-TS/effect / compileSchemas

Function compileSchemas

packages/effect/src/unstable/httpapi/OpenApi.ts:220–228  ·  view source on GitHub ↗
(asts)

Source from the content-addressed store, hash-verified

218) => JsonSchema.MultiDocument<"openapi-3.1">
219
220const compileSchemas: CompileSchemas = (asts) =>
221 JsonSchema.toMultiDocumentOpenApi3_1(
222 InternalToJsonSchemaDocument.toJsonSchemaMultiDocument(
223 InternalToRepresentation.toRepresentations(
224 Arr.map(asts, Schema.toCodecJsonAST),
225 InternalToJsonSchemaDocument.toRepresentationOptions
226 )
227 )
228 )
229
230const cloneOpenAPISpec = <A>(value: A): A => {
231 if (Array.isArray(value)) {

Callers 1

fromApiWithFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected