acacode / acacode/swagger-typescript-api

Rich text description cause error

オープン
#571 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
4.1k
フォーク
436
PR マージ指標
30日以内にマージされた PR はありません

説明

Here's the rich text in description:
```
"description": "\u4f8b\uff1a<span class="colour" style="color: rgb(51, 51, 51);">**\/3.0\/h5FileService\/download\/123\/fdjc34ef**<\/span>",

```
It will cause error like this:
```
SyntaxError: ';' expected. (38:104)
36 | })
37 | /**
> 38 | * @description 例:<span class="colour" style="color: rgb(51, 51, 51);">**/3.0/h5FileService/download/123/fdjc34ef**</span>
|
^
```

Occored in `"swagger": "2.0"`

My environment:
```
swagger-typescript-api: 13.0.2
nodejs: 16.14.0

```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。