Skip to content

only first newline is truncated from schema description #170

@scarf005

Description

@scarf005

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions