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

Class Group

packages/platform/node/test/OpenApi.test.ts:1180–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178 describe("error option", () => {
1179 it("should deduplicate the descriptions", () => {
1180 class Group extends HttpApiGroup.make("users")
1181 .add(HttpApiEndpoint.post("a", "/a", {
1182 error: HttpApiError.BadRequestNoContent
1183 }))
1184 {}
1185
1186 class Api extends HttpApi.make("api").add(Group) {}
1187 const spec = OpenApi.fromApi(Api)

Callers

nothing calls this directly

Calls 3

addMethod · 0.65
makeMethod · 0.65
annotateMethod · 0.65

Tested by

no test coverage detected