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
166166 }),
167167 )
168168 .add(
169− HttpApiEndpoint.post(
170− "removeSourceBinding",
171− "/scopes/:scopeId/openapi/source-bindings/remove",
172− {
173− params: ScopeIdParam,
174− payload: RemoveBindingPayload,
175− success: Schema.Struct({ removed: Schema.Boolean }),
176− error: DomainErrors,
177− },
178− ),
179− )
180−;
169+ HttpApiEndpoint.post("removeSourceBinding", "/scopes/:scopeId/openapi/source-bindings/remove", {
170+ params: ScopeIdParam,
171+ payload: RemoveBindingPayload,
172+ success: Schema.Struct({ removed: Schema.Boolean }),
173+ error: DomainErrors,
174+ }),
175+ );
packages/plugins/openapi/src/api/handlers.ts+3−1
@@ -24,7 +24,9 @@ import { OpenApiGroup } from "./group"; · 23 unmodified lines
2424 // `.addError(InternalError)` on the group — no per-handler translation.
2525 // ---------------------------------------------------------------------------
2626
27−export class OpenApiExtensionService extends Context.Service<OpenApiExtensionService, OpenApiPluginExtension
27+export class OpenApiExtensionService extends Context.Service<
28+ OpenApiExtensionService,
29+ OpenApiPluginExtension
2830 >()("OpenApiExtensionService") {}
2931
3032 // ---------------------------------------------------------------------------