Remove autogenerated operation descriptions from OpenAPI contracts

This commit is contained in:
Mike Cao committed 2026-09-01 16:07:08 -07:00
1 parent e1a4934038
commit 8d0229b598
128 files changed
+1 -490

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ for (const [routeSource, contracts] of byRoute) {
typeof operation.description === 'string' &&
operation.description.startsWith('Generated from')
) {
operation.description = `${operation.summary}. The request and response models are derived from the validated route contract.`;
delete operation.description;
}
return `const operation${index + 1} = defineOperation({\n method: ${serialize(contract.method)},\n path: ${serialize(contract.path)},\n audience: ${serialize(contract.audience)},\n auth: ${serialize(contract.auth)},\n operation: ${serialize(operation)} as ZodOpenApiOperationObject,\n});`;