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

Function getDialect

packages/tools/openapi-generator/src/OpenApiGenerator.ts:1208–1210  ·  view source on GitHub ↗
(spec: OpenAPISpec)

Source from the content-addressed store, hash-verified

1206}
1207
1208function getDialect(spec: OpenAPISpec): "openapi-3.0" | "openapi-3.1" {
1209 return spec.openapi.trim().startsWith("3.0") ? "openapi-3.0" : "openapi-3.1"
1210}
1211
1212/**
1213 * Layer providing an OpenAPI generator for Schema-backed HTTP client and HttpApi output.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected