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

[Bug]: getDoc mishandled the description if it has a line of description ends with "\" #3646

Open
4 tasks done
qiaozha opened this issue Jun 24, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working compiler:core Issues for @typespec/compiler triaged:core
Milestone

Comments

@qiaozha
Copy link
Member

qiaozha commented Jun 24, 2024

Describe the bug

model Foo {
  /**
   * The embedding vector, which is a list of floats. The length of vector depends on the model as\
   * listed in the [embedding guide](/docs/guides/embeddings).
   */
  embedding: float64[];
}

the getDoc result we have in compiler version v0.56.0 is
image
But it has an additional * in the compiler version 0.57.0 result
image

I feel like the openapi3 emitter result is also incorrect

Reproduction

playground link

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler:core Issues for @typespec/compiler triaged:core
Projects
None yet
Development

No branches or pull requests

2 participants