Skip to content

Commit 0901ac5

Browse files
authored
feat: Add route summary (#92)
1 parent 291cbf7 commit 0901ac5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/stainless/src/openapiSpec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export async function openapiSpec(
4646
const [httpMethod, path] = route.endpoint.split(" ", 2);
4747
const lowerMethod = httpMethod.toLowerCase() as "get" | "post" | "delete";
4848
const operation: ZodOpenApiOperationObject = {
49-
summary: "TODO",
50-
description: "TODO",
49+
summary: route.summary,
50+
description: undefined,
5151
requestParams: {
5252
path: route.path,
5353
query: route.query,

packages/stainless/src/stl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export interface BaseEndpoint<
156156
Response extends z.ZodTypeAny | undefined
157157
> {
158158
stl: Stl<any>;
159+
summary?: string;
159160
endpoint: MethodAndUrl;
160161
response: Response;
161162
config: Config;

0 commit comments

Comments
 (0)