replace non-ascii glyphs in generated openapi description strings

This commit is contained in:
Jarek Krochmalski committed 2026-09-06 17:38:22 +05:30
1 parent 6893286e04
commit aa30a8dc0a
1 file changed
+2 -2
+2 -2
View File
@@ -40,7 +40,7 @@ export interface BuildSpecInput {
} }
function genericParamDescription(kind: 'path' | 'query', name: string): string { function genericParamDescription(kind: 'path' | 'query', name: string): string {
return `${kind === 'path' ? 'Path' : 'Query'} parameter "${name}" (auto-detected from the handler's source — no @openapi annotation for this parameter yet)`; return `${kind === 'path' ? 'Path' : 'Query'} parameter "${name}" (auto-detected from the handler's source - no @openapi annotation for this parameter yet)`;
} }
export function buildSpec({ routes, fileContents, annotationsByPath, isPublicFn, version }: BuildSpecInput) { export function buildSpec({ routes, fileContents, annotationsByPath, isPublicFn, version }: BuildSpecInput) {
@@ -177,7 +177,7 @@ export function buildSpec({ routes, fileContents, annotationsByPath, isPublicFn,
type: 'object', type: 'object',
properties, properties,
description: description:
'Fields auto-detected from the handler’s destructuring of the request body — generic string type, no @openapi annotation for this body yet.' "Fields auto-detected from the handler's destructuring of the request body - generic string type, no @openapi annotation for this body yet."
} }
} }
} }