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

Function convert

packages/effect/test/JsonSchema.test.ts:1935–1949  ·  view source on GitHub ↗
(definitions: JsonSchema.Definitions)

Source from the content-addressed store, hash-verified

1933
1934 it("allocates suffixes deterministically and skips occupied keys", () => {
1935 const convert = (definitions: JsonSchema.Definitions) =>
1936 JsonSchema.toMultiDocumentOpenApi3_1({
1937 dialect: "draft-2020-12",
1938 schemas: [
1939 {
1940 allOf: [
1941 { $ref: "#/$defs/A_B" },
1942 { $ref: "#/$defs/A_B_1" },
1943 { $ref: "#/$defs/A~1B" },
1944 { $ref: "#/$defs/A?B" }
1945 ]
1946 }
1947 ],
1948 definitions
1949 })
1950 const expected: JsonSchema.MultiDocument<"openapi-3.1"> = {
1951 dialect: "openapi-3.1",
1952 schemas: [

Callers 1

JsonSchema.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected