Skip to content

fix: escape */ in descriptions to avoid closing generated JSDoc early - #659

Merged
rookie-luochao merged 1 commit into
mainfrom
fix/escape-jsdoc-comment-end
Nov 26, 2026
Merged

rookie-luochao merged 1 commit into
mainfrom
fix/escape-jsdoc-comment-end

Conversation

@rookie-luochao

Copy link
Copy Markdown
Member

Descriptions containing / (MIME wildcards like /, globs like src/**/) were inserted verbatim into /** ... / comments, ending the comment early and producing uncompilable output. Add escapeJsDoc (/ -> */), register it as a nunjucks filter and apply it to every JSDoc emission site.

Closes #658

Descriptions containing */ (MIME wildcards like */*, globs like src/**/*)
were inserted verbatim into /** ... */ comments, ending the comment early and
producing uncompilable output. Add escapeJsDoc (*/ -> *\/), register it as a
nunjucks filter and apply it to every JSDoc emission site.

Closes #658

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@changeset-bot

changeset-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 04ed295

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-ts-request Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rookie-luochao
rookie-luochao merged commit 83fa079 into main Nov 26, 2026
1 check passed

@rookie-luochao rookie-luochao left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job

@rookie-luochao
rookie-luochao deleted the fix/escape-jsdoc-comment-end branch November 26, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] */ in OpenAPI descriptions closes generated JSDoc comments early and breaks TypeScript compilation

1 participant