-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
openapi-zod-client/lib/src/getZodiosEndpointDefinitionList.ts
Lines 241 to 244 in f71bfa9
| if (options?.withDescription && paramSchema) { | |
| (paramSchema as SchemaObject).description = (paramItem.description ?? "")?.replace("\n", ""); | |
| } | |
as String.prototype.replace replaces at most once, String.prototype.replaceAll needs to be used instead.
however, stripping newlines could cause unexpected behavior. maybe template literal(`) should be used instead?
Metadata
Metadata
Assignees
Labels
No labels