We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291cbf7 commit 0901ac5Copy full SHA for 0901ac5
packages/stainless/src/openapiSpec.ts
@@ -46,8 +46,8 @@ export async function openapiSpec(
46
const [httpMethod, path] = route.endpoint.split(" ", 2);
47
const lowerMethod = httpMethod.toLowerCase() as "get" | "post" | "delete";
48
const operation: ZodOpenApiOperationObject = {
49
- summary: "TODO",
50
- description: "TODO",
+ summary: route.summary,
+ description: undefined,
51
requestParams: {
52
path: route.path,
53
query: route.query,
packages/stainless/src/stl.ts
@@ -156,6 +156,7 @@ export interface BaseEndpoint<
156
Response extends z.ZodTypeAny | undefined
157
> {
158
stl: Stl<any>;
159
+ summary?: string;
160
endpoint: MethodAndUrl;
161
response: Response;
162
config: Config;
0 commit comments