History

fmt

Rhys Sullivan committed 6 months ago

Commit c92c57d1 parent 87ab5c7265 files · +5705 −8140Browse files

Showing the changes to packages/plugins/openapi/src/api (2 of 265 files). Show all

Unified · Split

2 files
  1. packages/plugins/openapi/src/api/group.ts +7 −12
  2. packages/plugins/openapi/src/api/handlers.ts +3 −1
packages/plugins/openapi/src/api/group.ts+7−12
@@ -166,15 +166,10 @@ export const OpenApiGroup = HttpApiGroup.make("openapi") · 165 unmodified lines
166 }),166 }),
167 )167 )
168 .add(168 .add(
169 HttpApiEndpoint.post(169 HttpApiEndpoint.post("removeSourceBinding", "/scopes/:scopeId/openapi/source-bindings/remove", {
170 "removeSourceBinding",170 params: ScopeIdParam,
171 "/scopes/:scopeId/openapi/source-bindings/remove",171 payload: RemoveBindingPayload,
172 {172 success: Schema.Struct({ removed: Schema.Boolean }),
173 params: ScopeIdParam,173 error: DomainErrors,
174 payload: RemoveBindingPayload,174 }),
175 success: Schema.Struct({ removed: Schema.Boolean }),175 );
176 error: DomainErrors,
177 },
178 ),
179 )
180;
packages/plugins/openapi/src/api/handlers.ts+3−1
@@ -24,7 +24,9 @@ import { OpenApiGroup } from "./group"; · 23 unmodified lines
24// `.addError(InternalError)` on the group — no per-handler translation.24// `.addError(InternalError)` on the group — no per-handler translation.
25// ---------------------------------------------------------------------------25// ---------------------------------------------------------------------------
26 26
27export class OpenApiExtensionService extends Context.Service<OpenApiExtensionService, OpenApiPluginExtension27export class OpenApiExtensionService extends Context.Service<
28 OpenApiExtensionService,
29 OpenApiPluginExtension
28>()("OpenApiExtensionService") {}30>()("OpenApiExtensionService") {}
29 31
30// ---------------------------------------------------------------------------32// ---------------------------------------------------------------------------