orval-labs / orval

orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
https://orval.dev
MIT License
3.18k stars 336 forks source link

Sanitize JS Doc strings #1704

Closed DefCon-007 closed 1 week ago

DefCon-007 commented 1 week ago

Status

READY

Description

Fix #1703

if the pattern contains */ then orval produces TS files which have error due invalid comment parsing, these changes ensure to properly escape all JS doc strings .