lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.42k stars 489 forks source link

"$" char percent encoding causes reference and pointer resolving issue #1530

Closed ashe0047 closed 7 months ago

ashe0047 commented 7 months ago

I am using Prisma generated types to generate the swagger document but Prisma generates Enum types using $Enum namespace resulting in the schema name being percent encoded causing reference and pointer resolving error as percent encoding is not decoded by swagger-ui

Sorting

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

Using a type var name with $ character should reproduce the same error

image image

      1. 4.

Context (Environment)

Version of the library: 5.1.1 Version of NodeJS: 20.9.0

Detailed Description

Breaking change?

github-actions[bot] commented 7 months ago

Hello there ashe0047 👋

Thank you for opening your very first issue in this project.

We will try to get back to you as soon as we can.👀

WoH commented 7 months ago

Should be gone in v6.