Remove autogenerated operation descriptions from OpenAPI contracts
This commit is contained in:
1 parent
e1a4934038
commit
8d0229b598
128 files changed
+1
-490
No files matched your search
@@ -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});`;
|
||||
|
||||
Reference in new issue
Block a user