-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated JSON schema description missing some data #568
Comments
@liangskyli for me escaping the |
This is a breaking change introduced in #564 with the upgrade to Typescript v5. It appears that the Typescript API now parses inline tags from jsdoc comments.
[
{
"name": "aaa",
"text": [
{
"text": "/bbb.\nDo not make direct changes to the file.",
"kind": "text"
}
]
}
] Thus leaving [ { text: 'This file was auto-generated by', kind: 'text' } ] Though this seems like wrong behavior, it is probably expected since this is indeed how Typescript parses jsdocs now, for example, in VS Code: In my tests, prefixing /**
* This file was auto-generated by `@aaa/bbb`.
* Do not make direct changes to the file.
*/ |
Cannot leave lone @ in jsdoc comment in typescript-json-schema >= v0.60.0. See: YousefED/typescript-json-schema#568
[email protected] is error, but [email protected] is correct.
error in: description output
Expected output:
"description": "This file was auto-generated by @aaa/bbb.\nDo not make direct changes to the file.",
actual output:
"description": "This file was auto-generated by",
full code:
actual output:
Expected output:
The text was updated successfully, but these errors were encountered: