Skip to content
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

IJsonSchema.title filling introduced in 5.4.6 is broken for links in the title #976

Closed
1999 opened this issue Feb 23, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@1999
Copy link

1999 commented Feb 23, 2024

Bug Report

Our type contains something like this:

/**
 * This is a subset of the [Collaboration Model](https://domain.atlassian.net/wiki/spaces/COLLAB/pages/123/Collaboration), used here to do smth.
 */
entity?: Entity;

The generated JSON schema contains a title with a cut version of the string:

"title": "This is a subset of the [Collaboration Model](https://domain",

📝 Summary

Title generation is broken when the first line contains a full stop used as a break (inside a link, for example)

image

Also, it would be great to have an option to disable title generation behaviour.

⏯ Playground Link

https://typia.io/playground/?script=JYWwDg9gTgLgBDAnmYBDANHA3g1BzAZzgF84AzKCEOAIiRVRoG4AoF+gUzgDEII4AvNhZw4AegBUEkaIlwAKgAtgRFXFRwANsAB2AawBccRTBhgCBsWI4APVOE0cAdAGMqTuAEEdAEzgEqLhhbeFQiAHcOTU0ZOAkxGQAjVCgjAhgoXTxWYjZ6NCcAKwCdJ1QwMG0XVBhgCB0AHgBtXggAXUwAcgJw-DwOKE7MDIBXDgA+AAoASlYgA

@samchon samchon self-assigned this Feb 23, 2024
@samchon samchon added the bug Something isn't working label Feb 23, 2024
samchon added a commit that referenced this issue Feb 23, 2024
Fix #976 - wrong `IJsonSchema.title` inferencce.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants