OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.84k stars 6.59k forks source link

[BUG] Unexpected escaped HTML entities in documentation generated via typedoc #6552

Open brendandburns opened 4 years ago

brendandburns commented 4 years ago

Bug Report Checklist

Ref https://github.com/kubernetes-client/javascript/issues/457

Description

There's some (I think) double escaping happening in HTML docs generated by the open api generator.

openapi-generator version

4.0.3

OpenAPI declaration file content or url

https://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/swagger.json

Command line used for generation

Used the maven generator: https://github.com/kubernetes-client/gen/blob/master/openapi/typescript.xml

Steps to reproduce
git clone https://github.com/kubernetes-client/typescript
cd typescript
npm install
npm run generate
Suggest a fix

I think it might be due to double-escaping but it requires further investigation.

DenimTornado commented 2 years ago

Had the same problem but not only in docs. I got it in TS Types files:

export type ChangeFeatureSubjectsPayload = Array<string>;

Is there any update about this?